FRDM-RW612 RTC GPREG R/W Access

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

FRDM-RW612 RTC GPREG R/W Access

2,219 Views
aar
Contributor II

I'm working on the FRDM-RW612 eval kit and testing the RTC peripheral.

All the basic RTC operations, including Alarm and Wake-up, seem to be working correctly; however, I'm struggling to get the RTC's general purpose registers to allow me Write Access.

I know from other NXP parts, such as the IMXRT, that privileged access might be required to write/read to/from these registers, but I couldn't find this information for the RW61X.

Is there any special procedure or access requirements to enable R/W access to these registers? If so where can I find the documentation for it?

0 Kudos
Reply
7 Replies

2,210 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Have you already referred to RM00278?

Regards,

Daniel.

0 Kudos
Reply

2,206 Views
aar
Contributor II
Yes! RM00278 and UM11865.

From RM00278 it only has this:
"Data retained during Deep power-down mode or loss of main power as long as VBAT is supplied."

The associated control register description also doesn't mention anything specific about the GPREG.
0 Kudos
Reply

2,176 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Please share with my how you are trying to access those registers and what is your objective by modifying them.

Regards,

Daniel.

0 Kudos
Reply

2,172 Views
aar
Contributor II

I'm using the RTC base pointer to access the GPREG for read and write as follows:

#include "RW612.h"
...
const uint32_t dataWrite{5};
RTC->GPREG[0] = dataWrite;
...
dataRead = RTC->GPREG[0]
...

0 Kudos
Reply

1,842 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi @aar,

 

Sorry for the late reply. There is a typo in the RM.

GPREG offset should be 44. Could you please try modifying the PERI_RTC.h as follows:

uint8_t RESERVED_0[44];

 

This is already reported to the corresponding team.

Regards,

Daniel.

0 Kudos
Reply

1,956 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

The internal team is still looking into this.

Sorry for the delay.

0 Kudos
Reply

2,131 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I was able to replicate. Let me check internally.

Regards,

Daniel.