CSEC memory allocation problem

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

CSEC memory allocation problem

1,224 次查看
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 项奖励
回复
3 回复数

1,204 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

what's your target device? 

0 项奖励
回复

1,200 次查看
ZEROOO
Contributor IV

Hi @jiri_kral 

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

0 项奖励
回复

1,177 次查看
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).