This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5969: checksum calculation

Part Number: MSP430FR5969
Other Parts Discussed in Thread: MSP-FET

Hi,

I am working on a counter project in this microcontroller, the project is completed we are flashing the program through MSP-FET from CCS to the microcontroller, we want to keep the track of version calculation ,so how i create a hex file and check the checksum in this project

  • Hi Sasi,

    Are you verifying the checksum at production or in your program? 

    The TI MSP430 Linker can calculate a CRC value for a given output section and store it in memory for access by the program. You have to make changes to the Linker command file for this to be active. See section 8.9 of the MSP430 Assembly Language Tools Manual for more information.

    Best Regards,
    Brandon Fisher

  • Hi Brandon

    I need checksum for the total program, since the program is finalized we want to create a hex file for production, thus the program can be verified through checksum

  • Hi Sasi,

    Thank you for explaining.

    I'm not sure if CCS can be made to give you the CRC value  in a nice human readable format for MSP430, but the BSL-Scripter tool can be used with MSP-FET and the CRC_CHECK command to calculate the CRC Value. Once you know the expected value, you could also check against that using the same command.

    See section 2.4.3 of the BSL Scripter User's Guide for more information.

    Best Regards,
    Brandon Fisher

  • Hi Brandon,

    I am using the JTAG programming method and the design is fixed with this, is there any possible way to calculate checksum in JTAG programming method

  • Hi Sasi,

    As far as I know this is not supported with MSP-FET using the tools we have other than BSL-Scripter. Depending on the settings, verification of the code may be done by readback of the memory and CRC/Checksum calculation, but those are not exposed to the user. This is also kind of a different use case than you are discussing, as it just verifies that the firmware was provided was programmed correctly. It would not be useful for checking that the right software version is being loaded.

    If you can try another programmer, the Elpotronic Fet-Pro430 does support JTAG and has some options for CRC calculation which display a raw value you could compare with (See this thread).

    Best Regards,
    Brandon Fisher

**Attention** This is a public forum