CSE PRAM is not writable (S32K146)

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

CSE PRAM is not writable (S32K146)

2,775件の閲覧回数
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,745件の閲覧回数
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,738件の閲覧回数
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,760件の閲覧回数
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,209件の閲覧回数
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 件の賞賛
返信