S32K144 FlexRAM (EEPROM)partition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 FlexRAM (EEPROM)partition

688 Views
emb02
Contributor V

Hi,

I'm using S32K144 controller and I want to use FlexRAM memory for EEPROM storage.

I'm using 3 sections - Primary bootloader, secondary bootloader and firmware, so I want to partition FlexRAM memory for these 3 sections.

Eg.

In S32K144 Total 4KB memory is available for FlexRAM.

For primary bootloader - 512 Bytes 

For Secondary bootloader - 512 Bytes

For Firmware - 3 KBytes

I'm using 3 projects for this configuration so I'm not getting how to configure FlexRAM in each project.

Is there any reference code available for this?

 

Tags (3)
0 Kudos
Reply
1 Reply

653 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@emb02

First, the partitioning operation cannot divide the FlexRAM into multiple independent areas. In other words, you cannot perform three different partition operations on the MCU for three different projects; you can only perform a partition operation once. The partitioning operation will erase the contents of the E-Flash.

You can partition all 64KB of FlexNVM as E-Flash, allowing different projects to access FlexRAM.

Demo code:

1.you can find demo in S32 DS

2.AN11983

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2194034%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K144%20FlexRAM%20(EEPROM)partition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194034%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%20using%20S32K144%20controller%20and%20I%20want%20to%20use%20FlexRAM%20memory%20for%20EEPROM%20storage.%3C%2FP%3E%3CP%3EI'm%20using%203%20sections%20-%20Primary%20bootloader%2C%20secondary%20bootloader%20and%20firmware%2C%20so%20I%20want%20to%20partition%20FlexRAM%20memory%20for%20these%203%20sections.%3C%2FP%3E%3CP%3EEg.%3C%2FP%3E%3CP%3EIn%20S32K144%20Total%204KB%20memory%20is%20available%20for%20FlexRAM.%3C%2FP%3E%3CP%3EFor%20primary%20bootloader%20-%20512%20Bytes%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20Secondary%20bootloader%20-%20512%20Bytes%3C%2FP%3E%3CP%3EFor%20Firmware%20-%203%20KBytes%3C%2FP%3E%3CP%3EI'm%20using%203%20projects%20for%20this%20configuration%20so%20I'm%20not%20getting%20how%20to%20configure%20FlexRAM%20in%20each%20project.%3C%2FP%3E%3CP%3EIs%20there%20any%20reference%20code%20available%20for%20this%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194737%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K144%20FlexRAM%20(EEPROM)partition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194737%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3Eemb02%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFirst%2C%20the%20partitioning%20operation%20cannot%20divide%20the%20FlexRAM%20into%20multiple%20independent%20areas.%20In%20other%20words%2C%20you%20cannot%20perform%20three%20different%20partition%20operations%20on%20the%20MCU%20for%20three%20different%20projects%3B%20you%20can%20only%20perform%20a%20partition%20operation%20once.%20The%20partitioning%20operation%20will%20erase%20the%20contents%20of%20the%20E-Flash.%3C%2FP%3E%0A%3CP%3EYou%20can%20partition%20all%2064KB%20of%20FlexNVM%20as%20E-Flash%2C%20allowing%20different%20projects%20to%20access%20FlexRAM.%3C%2FP%3E%0A%3CP%3EDemo%20code%3A%3C%2FP%3E%0A%3CP%3E1.you%20can%20find%20demo%20in%20S32%20DS%3C%2FP%3E%0A%3CP%3E2.AN11983%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E