Change Memory layout of MCU MKW38 to enable EEPROM Emulation

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

Change Memory layout of MCU MKW38 to enable EEPROM Emulation

跳至解决方案
241 次查看
BANGYUD
Contributor II

Dear NXP, I have a question regarding my memory configuration layout design, here my memory configuration layout design is like this below :

BANGYUD_0-1755158098770.png

BANGYUD_1-1755158123692.png

My question is , Is it possible to change memory layout like below :

BANGYUD_2-1755158195636.png

The reason I’m asking is because I would like to enable the EEPROM emulation feature, using 4 KB of FlexRAM for emulation and 64 KB of FlexNVM as the backup memory.

If this configuration is possible, could you please advise on how to implement it within the current memory layout?

The existing memory layout—without EEPROM emulation—has already been finalized and is currently in production. However, based on the application build results, there is a 64 KB unused space in the Program Flash.

Can this space be used as the backup memory for EEPROM emulation?

BANGYUD_3-1755158915474.png

 

Thank you.



0 项奖励
回复
1 解答
164 次查看
sofiaurueta
NXP Employee
NXP Employee

Hello,

Hope you are doing well.

 

According to the MKW39/38/37 Reference Manual, the FlexRAM and FlexNVM blocks can be split into partitions.  You would have to modify the EEERST, EEESIZE, DEPART values according to your specifications. See the Program Partition command described in section 30.4.11.16.

 

For EEPROM partition (EEESIZE), up to 8 KB can be configured for EEPROM, '0010' = 4,096 Bytes.

As for Data flash partition (DEPART) and FlexNVM EEPROM partition, '0100' = 192 Kbytes of Data flash Size and 64 Kbytes of EEPROM-backup Size

 

See 30.3.4 Data flash 0 IFR map and 30.4.3 FlexNVM Description for more information.

 

Best Regards,

Ana Sofia.

在原帖中查看解决方案

2 回复数
165 次查看
sofiaurueta
NXP Employee
NXP Employee

Hello,

Hope you are doing well.

 

According to the MKW39/38/37 Reference Manual, the FlexRAM and FlexNVM blocks can be split into partitions.  You would have to modify the EEERST, EEESIZE, DEPART values according to your specifications. See the Program Partition command described in section 30.4.11.16.

 

For EEPROM partition (EEESIZE), up to 8 KB can be configured for EEPROM, '0010' = 4,096 Bytes.

As for Data flash partition (DEPART) and FlexNVM EEPROM partition, '0100' = 192 Kbytes of Data flash Size and 64 Kbytes of EEPROM-backup Size

 

See 30.3.4 Data flash 0 IFR map and 30.4.3 FlexNVM Description for more information.

 

Best Regards,

Ana Sofia.

239 次查看
BANGYUD
Contributor II

currently I'm using mkw38 mcu series , that has 256 p-flash and 256 flexNVM memory

0 项奖励
回复