cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE custom post-build called before hex/bin created

troky
Associate

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

10 REPLIES 10
McClean
Associate II

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 II

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 II

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

What version of STM32CubeIDE are you using?

Version: 1.0.1

Build: 3139_20190612-1256 (UTC)

This issue is fixed in later versions. You can download the latest version of CubeIDE here.

Let me know if you're still facing any problems in the newer release!

OK thanks. So far we've been horribly afraid of updating, but this is a good reason to finally give it a try.