Use Makefile, conflicts internal Segger command with Cygwin

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Use Makefile, conflicts internal Segger command with Cygwin

      Hello,

      I am trying to integrate our Makefile into Embedded Studio.
      I have done pretty good so far but I am stuck for the clean command.

      In external build command:
      Build command: make (this works good)
      Clean command: make clean -> calls rm -rf _output

      Actually the last command doesnt work since Segger is calling rm from Segger internal binary:

      """
      Running Clean command BLE_nRF52
      rm -rf _make_output
      C:\Program Files\SEGGER\SEGGER Embedded Studio for ARM 5.42b\bin\rm.exe: error: unrecognised option -rf
      """

      Obviously that is not the "rm" command I want to call but the one from the Cygwin binary folder.
      Cygwin has been added to the User Path.

      How can I solve this? By checking Cygwin binary first or ignoring this internal binary folder.

      Best regards.