I was looking into using the DCP to efficiently calculate CRC32 checksums. However, I can't really find documentation on how to configure and use this peripheral. The "i.MX RT1060 Processor Reference Manual" has a single paragraph on it in section 7.5, p.182, and in the teensyduino headers there are some defines that refer to enable the clock to the DCP module, but that's it.
Eventually, I stumbled upon this repository: https://github.com/manitou48/teensy4/blob/master/dcptst.ino
The code works, but only for the supplied example with message length of 32. When I try to do a crc on longer sequences, it fails. But without the DCP register descriptions it is hard to follow why/what it is doing. Clearly, some more in-depth documentation must have been used to write this code?
Is there any separate doc's or app notes on the IMXRT DCP?
With a quick CRC check, I would like to verify at startup that some of the data or program sections are correct, in order to add a litle bit of fail-safe behavior.
Eventually, I stumbled upon this repository: https://github.com/manitou48/teensy4/blob/master/dcptst.ino
The code works, but only for the supplied example with message length of 32. When I try to do a crc on longer sequences, it fails. But without the DCP register descriptions it is hard to follow why/what it is doing. Clearly, some more in-depth documentation must have been used to write this code?
Is there any separate doc's or app notes on the IMXRT DCP?
With a quick CRC check, I would like to verify at startup that some of the data or program sections are correct, in order to add a litle bit of fail-safe behavior.