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.

Force a CRC fail error

Other Parts Discussed in Thread: HALCOGEN

Hi,

I am using CCS5.4 and the TMS570.  I've used Halcogen to generate code to enable crc and a crc fail interrupt. I'd like to force a crc error so that I can confirm that the interrupt is generated and handled appropriately. 

 

Is there an easy way to do this?

 

Thanks for the help.

  • Hello David,

    Since the CRC Fail interrupt is generated by the comparison of the content of the PSA Sector Signature Register and te CRC Value Register. You simply would need to create a mismatch by corrupting one the datapoints in the memory region you are running the CRC over or by writing the wrong expected value into the CRC Value Register.