This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[MDK412] Automatic checksum calculation and insertion

I've downloaded the evaluation versin of uVision 4 and wondering if it is suitable for a project that we will be starting soon.

The SRS of the project states that the application must be broken into two parts:
Bootloader(8K Max)
Application(56K Max)

The boot loader must calculate the CRC32 of itself, then the application, and fall into fail safe if the checksum is incorrect.

Can the linker calculate the CRC32 and place the result in the destination executable? Or is there another application that can take the resulting file and calculate the checksum?

Parents
  • Thanks everyone, I wrote a small app which loads a .hex file, pads to the size of the flash in the chip and then enters the checksum in the last 4 bytes.

    Thanks to JTAG, during development only the used part of the code is flashed to the device (happy developer) but release versions gets the full flash + crc.

Reply
  • Thanks everyone, I wrote a small app which loads a .hex file, pads to the size of the flash in the chip and then enters the checksum in the last 4 bytes.

    Thanks to JTAG, during development only the used part of the code is flashed to the device (happy developer) but release versions gets the full flash + crc.

Children
No data