Skip to main content
TTeag.1
Associate
June 23, 2020
Question

CubeMX IDE v1.3.1, MacOS 10.14.6, Build fails with "/bin/sh: arm-none-eabi-objcopy.exe: command not found" - the ".exe" is incorrect.

  • June 23, 2020
  • 3 replies
  • 1286 views

The makefile is not correct with: arm-none-eabi-objcopy.exe -O ihex "IOproc.elf" "IOproc.hex", but the IDE is trying to run arm-none-eabi-objcopy.exe.

I just reinstalled the IDE using the Mac installer - no change. How can I get the IDE to generate a makefile that does not have ".exe"?

This topic has been closed for replies.

3 replies

TDK
Super User
June 24, 2020

Not real sure why it's appending the .EXE. It doesn't do this on Windows 10.

You can always add the ELF to HEX conversion as a postprocessing step in project properties -> C/C++ Build -> Settings -> Build steps -> Post-build steps

"If you feel a post has answered your question, please click ""Accept as Solution""."
TTeag.1
TTeag.1Author
Associate
June 24, 2020

Perfect! On the Mac, that step is incorrectly specified. Simply removing the ".exe" in the location mentioned above solved the problem.

Thank you very much.

TDK
Super User
June 24, 2020

Interesting. On my machine, ELF -> HEX generation is done by a checkbox on a different screen. I assumed you were doing the same. Maybe your project file was created for windows and someone added that as a post build step. In any case, glad you got it sorted out.

"If you feel a post has answered your question, please click ""Accept as Solution""."