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.

TMS320F28335: CRC Calculation and Storage at End of Flash on TMS320F28335 Using CCS

Part Number: TMS320F28335

Tool/software:

Hello,

I’m working on a project using the TMS320F28335 DSP and Code Composer Studio. I need to calculate a CRC over the flash memory (e.g., from 0x3D8000 to 0x3F7FF7) and store the CRC value at the end of flash.

My goal is to:

  1. Calculate the CRC either during build time or runtime.
  2. Store the CRC at a fixed location at the end of flash.
  3. Verify the CRC during boot to ensure flash integrity.

I have a few questions:

  • Is there a way to use the linker-generated CRC feature in CCS for a custom memory range?
  • If not, what is the recommended method to calculate and store the CRC at the end of flash?
  • Are there any example projects or scripts available for this use case?

Any guidance or example or suggestions would be greatly appreciated.

Thanks in advance!