We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Is it possible to instruct the linker (target is an STM32) to place a CRC checksum on the code in the AXF file at a certain location without using any external tools? If yes, what is the crc width, polynomial and start value?
Reason for asking: I am aware that it could be done with using "fromelf" to convert the AXF to .bin and then place a checksum in the file. However this process is a nightmare when handing over an image to production. Working with external tools is always error prone and I'd rather have the Compiler / Linker add the CRC in the binary without any further intervention or use of external tools.
Many thanks in advance.
Christopher Lang
Is it possible ...
As far as I know, no.
However this process is a nightmare when handing over an image to production.
I can see no reason for that.
Working with external tools is always error prone
No, it isn't. If you set it up right, everything works automatically. Automatic processes are not error-prone.
thanks for clarifying. Well, in this case we will set up an automatic post link step and do the .bin conversion and checksum calculation there.
Maybe Keil/ARM could take that as a suggestion for the feature "wishlist". Automatic embedding of a CRC by the linker into the AXF file would be quite useful.
thanks Chris