K82: access to System Register File and VBAT register file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K82: access to System Register File and VBAT register file

585 Views
EugeneHiihtaja
Senior Contributor I

Hello !

Could you point me to application/examples for K82 for how-to access to

System Register File 32 byte and 128-byteVBAT register file.

Thank you !

Eugene

0 Kudos
3 Replies

471 Views
EugeneHiihtaja
Senior Contributor I

Hi !

Looks like no any dependencies to RTC clock and line CLOCK_EnableClock(kCLOCK_Rtc0) is not mandatory

for read/write to those Register Files. And there are keep values over reboot operation.

But access with User priviliges cause BusFault.

How ro activate AIPSx type of restriction to those areas and have access with User privileges  and able to write protect it from Supervisor accesses ?

Regards,

Eugene

0 Kudos

471 Views
miduo
NXP Employee
NXP Employee

Hi,

You may would like to look at this post on how to access VBAT register

https://community.nxp.com/message/360029 

0 Kudos

471 Views
EugeneHiihtaja
Senior Contributor I

Hi !

Do I undestand right :

- VBAT and SR addresses window spaces mapped to AIPSx bridge areas directly

- As result access to VBAT&SR can't be protected by MPU or AIPSx bridge settings

  and it is possible to access to those spaces in User execution mode ( And Supervisor as well ) ?

- for enable access to VBAT & SR , bit29 ( RTC access control bit ) should be enabled in SIM_SCGC6 register ?

Regards,

Eugene

0 Kudos