The TRNG for the IMXRT1062 is largely undocumented in the reference manual. However, I have been able to implement a driver for the TRNG by using the interface defined in the MCUXpresso SDK, and using the reference manual for the IMXRT1052. The only thing I have struggled with is enabling interrupts: the INT_MASK registers defined in the reference manual for the 1052 cause a hard fault when written to on the 1062. and the MCUXPressoSDK does not provide any asynchronous interface to the TRNG. Is there information anywhere on how to use interrupts for the TRNG on the IMXRT1062?
The goal for this is improving support for the TRNG for the Teensy4 board in TockOS (https://github.com/tock/tock)
Hi @hudayers
RT1062 document have the TRNG description, just you refer to the wrong document, you need to refer to the SRM:
https://www.nxp.com/webapp/sps/download/mod_download.jsp?colCode=IMXRT106XSRM&appType=moderated
Please check the RT1060 SRM about your TRNG again!
If you still have issues about it, please kindly let me know.
Best Regards,
Kerry