2026-06-03 5:45 AM
Follow-on from Is it possible in STM32CubeIDE to set a compiler dependency on ALL sources?
Specifically, this post:
I guess you could do some sort of hash of all the source code?
This wouldn't stop the version.c file getting rebuilt every time, but it would let you see whether the rest of the code actually changed or not.
Or you could take it further: save the hash in a file somewhere, and only do the touch when the hash has changed?
Any suggestions on how to do this "hash" as a pre-build step? Is there anything included within the CubeIDE build stuff that would do this?
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.