Skip to main content
troky
Associate
May 16, 2019
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
May 24, 2019

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

Ethan HUANG
ST Employee
May 27, 2019

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
May 28, 2019

Hi Ethan,

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

Steffen

martonmiklos
Senior
June 7, 2019

Dear ST developers,

Please fix this issue, because it is really annoying.

Thanks in advance!

Mundungus
Associate
September 30, 2020

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

Markus GIRDLAND
ST Employee
October 2, 2020

What version of STM32CubeIDE are you using?

Mundungus
Associate
October 2, 2020

Version: 1.0.1

Build: 3139_20190612-1256 (UTC)