CSE PRAM is not writable (S32K146)

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

CSE PRAM is not writable (S32K146)

2,774 Views
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 Kudos
Reply
4 Replies

2,744 Views
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 Kudos
Reply

2,737 Views
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 Kudos
Reply

2,759 Views
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 Kudos
Reply

2,208 Views
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 Kudos
Reply