How to add CRC via linker?

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, I'm trying to add a crc to the end of the files I'm writing to enable the bootloader I wrote to verify them before running them. I know I can use srec_cat to add it to the binaries, but it's a real pain, and it doesn't allow me to debug the code.

 

Is there a way to have the linker calculate and add the CRC? I'd like for it to be added to the .elf files so that I can use them for debugging.