CSEC memory allocation problem

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

CSEC memory allocation problem

1,161 Views
ZEROOO
Contributor IV

Hi

    I have a CSEC memory allocation problem, when I partition flexram, there is a 2kb eeprom, and the size allocated to csec is 512byte, I have a 2kb area in RAM as the mirror area of the 2kb eeprom, the problem is that csec takes up 512 bytes of space. This part is not visible, do I need to allocate image ram to this 512 bytes?

0 Kudos
Reply
3 Replies

1,141 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

what's your target device? 

0 Kudos
Reply

1,137 Views
ZEROOO
Contributor IV

Hi @jiri_kral 

    I used an S32k118.I wonder if I can save the 512 bytes of RAM.

0 Kudos
Reply

1,114 Views
jiri_kral
NXP Employee
NXP Employee

As I understad it - with CSEC module the FlexRAM is used as an Emulated EEPROM - where part is taken for keys (up to 20 keys and up to 512 bytes - based on FCCOB1 register content).

Remaining memory space can be used as regular Emulated EEPROM. You don't need to create your custom mirror of this area and in can be accessed directly (at least that's how I understand it from Reference Manual).