Change Memory layout of MCU MKW38 to enable EEPROM Emulation

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

Change Memory layout of MCU MKW38 to enable EEPROM Emulation

ソリューションへジャンプ
245件の閲覧回数
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 解決策
168件の閲覧回数
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 返答(返信)
169件の閲覧回数
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.

243件の閲覧回数
BANGYUD
Contributor II

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

0 件の賞賛
返信