...use the CHECKSUM section in CrossWorks for MSP430?
This applies to release 2.2.0 of CrossWorks for MSP430. The checksum feature of the linker will be removed in later releases and it is best that you design your own checksum algorithms outside of CrossStudio. We would suggest generating a hex file and then iterating over the sections or memory areas you need to checksum by interpreting the contents of the hex file and modifying it appropriately.
To checksum your application:
- Add the sections you want included in the checksumming to the Checksum Sections property in the Linker Options group of the project.
- Import the section placement file because you need to modify it.
- Add a loadable CHECKSUM section to the FLASH group.
checksum.zip
-
One item worth noting is that when performing the CRC check you will want software breakpoints disabled. Otherwise, the image can be "corrupted" by the breakpoint and cause the CRC check function to fail. I believe that software breakpoints are enabled be default, so this may surprise the unwary.
Please sign in to leave a comment.
Comments
1 comment