FRDM-RW612 RTC GPREG R/W Access

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRDM-RW612 RTC GPREG R/W Access

2,228件の閲覧回数
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,219件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Have you already referred to RM00278?

Regards,

Daniel.

0 件の賞賛
返信

2,215件の閲覧回数
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,185件の閲覧回数
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,181件の閲覧回数
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,851件の閲覧回数
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,965件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

The internal team is still looking into this.

Sorry for the delay.

0 件の賞賛
返信

2,140件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I was able to replicate. Let me check internally.

Regards,

Daniel.