CSE PRAM is not writable (S32K146)

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

CSE PRAM is not writable (S32K146)

2,770 次查看
warai
Contributor II

Hi,

Why is address 0x14001000 (CSE PRAM) is non-writable?

Did I messed up my flash partitioning?

Is the location part of the FPROT?

Kind regards,

Marizonne

cse_pram.JPG

0 项奖励
回复
4 回复数

2,740 次查看
warai
Contributor II

Hi Lukas,

The FSTAT has no error flags asserted.

My suspicion is that the board I'm using is partitioned with CSEC Key Size = 0. This is the reason why the PRAM is non-accessible. Is my understanding correct?

0 项奖励
回复

2,733 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

yes, that's correct. The PRAM is available if the CSE is enabled by partitioning - when the number of keys is configured to non-zero value.

Regards,

Lukas

0 项奖励
回复

2,755 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Marizonne,

how did you partitioned the device?

Let me copy here from the reference manual some reasons why the PRAM is locked:

lukaszadrapa_0-1622027606240.png

And:

lukaszadrapa_1-1622027669913.png

So, I would check the content of FSTAT register as a first step.

Regards,

Lukas

 

 

0 项奖励
回复

2,204 次查看
Usernamex
Contributor I

Hi LuKas,

is there any way to unlock the CSE?

i've got the same problem after i called the eraseKeys() API from csec_utils.c.

after that, any write to CSE_PRAM will cause a DefaultISR.

the FSTAT is 0x80; FCSESTAT is 0x40.

0 项奖励
回复