Skip to main content
troky
Associate
Question

STM32CubeIDE custom post-build called before hex/bin created

I have post-build step that alters final .hex file (put some metadata inside) but script is called before .hex file s created.

This topic has been closed for replies.

10 replies

McClean
Associate

Yes, i have the same problem too. This bug prevents me using the CubeIDE

Ethan HUANG
ST Employee

This also happened in my case. So, my workaround is to run a script (batch file in my case) in post-build to generate hex from elf by myself (by using objcopy.exe provided by STM32CubeIDE) and then deal with this hex (generating checksum in my case). Please refer to my checksum.bat in the following link:

​https://github.com/ethanhuanginst/STM32CubeIDE-Workshop-2019/tree/master/hands-on/06_F746-DISCO-CRC

McClean
Associate

Hi Ethan,

yes i found this solution too as workaround. I hope this will be fixed in further releases

Steffen

martonmiklos
Senior

Dear ST developers,

Please fix this issue, because it is really annoying.

Thanks in advance!

Mundungus
Associate

Same issue here. What we really need is a post post build step I guess...

Markus GIRDLAND
ST Employee

What version of STM32CubeIDE are you using?

Mundungus
Associate

Version: 1.0.1

Build: 3139_20190612-1256 (UTC)