AnsweredAssumed Answered

Access OCOTP by M4 on i.mx7d

Question asked by 昶煒 梁 on Apr 14, 2020
Latest reply on Apr 21, 2020 by igorpadykov

Hi all,

I am trying to get the CPU temperature by using the M4 on i.mx7d, so I need to access the OCOTP_ANA1(0x3035_04F0) to calculate the temperature.

However, I couldn't access the OCOTP_ANA1 value by M4. The reading of any register on OCOTP would cause the whole chip A7&m4 crash and reboot.


I thought it may be the access domain issue at first, so I tried to set the access domain of "rdcPdapOcotpCtrl" on M4 by using the API RDC_SetPdapAccess():


RDC_SetPdapAccess(RDC, rdcPdapOcotpCtrl, BOARD_RDC_PERMISSION_ALL_RW, false, false);


But the issue still remain, any advice?