FRDM-RW612 RTC GPREG R/W Access

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FRDM-RW612 RTC GPREG R/W Access

2,255 次查看
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 项奖励
回复
7 回复数

2,246 次查看
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Have you already referred to RM00278?

Regards,

Daniel.

0 项奖励
回复

2,242 次查看
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 项奖励
回复

2,212 次查看
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 项奖励
回复

2,208 次查看
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 项奖励
回复

1,878 次查看
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 项奖励
回复

1,992 次查看
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

The internal team is still looking into this.

Sorry for the delay.

0 项奖励
回复

2,167 次查看
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I was able to replicate. Let me check internally.

Regards,

Daniel.