MCXN user Registers

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

MCXN user Registers

1,241 次查看
VGJ
Contributor I

Hi everyone

I'm testing with the FRDM-MCXN947 development board. For my application I need to save a unique 8-byte number as a constant somewhere in the flash on the first boot. I had thought about the GPREG registers but I don't know if it's possible and if it would conflict with other functions of the micro. Could you tell me if there is a small free space in memory for the user program?

Thanks in advance
Victor

标签 (1)
0 项奖励
回复
5 回复数

1,196 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @VGJ 

The register GPREG is used within the PowerQuad MAC engines. How about using the last few bytes of flash?

 

BR

Alice

 

 

0 项奖励
回复

1,142 次查看
VGJ
Contributor I

Hi Alice, thanks a lot for your help.

I would prefer not to have to reserve space on the Flash, especially since I'm going to use dual-bank mode and don't want to complicate the structure for such a small space. I won't be using the RTC in principle, could I use the alarm logs for this purpose?

Thanks and best regards

0 项奖励
回复

1,042 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @VGJ 

Could you please describe more about your application purpose?

What application do you want to use this space for?

 

BR

Alice

0 项奖励
回复

1,030 次查看
VGJ
Contributor I

Yes, of course. In the manufacturing process of our devices, more specifically in the test phase, if everything has worked correctly, a unique 8-byte number is recorded to the micro via uart. Thus, at the next start-up it goes into working state.

In our previous design we used an LPC1778 and we had an internal EEPROM that we used for this purpose. We even used some RTC registers for other purposes since it offered a lot of flexibility.

But this series lacks an internal EEPROM and we do not want to use the program flash to store this simple number. We are also interested in that this number is stored in the uC itself and not in an external EEPROM that can be manipulated

I hope this explanation can guide you in what we are looking for

Thanks and best regards
Victor

0 项奖励
回复

905 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @VGJ 

If you can implement it using the RTC on the LPC1778, you can also use the RTC of the MCXN.

 

BR

Alice

0 项奖励
回复