S32K148 Flash Config Field can not erase/program

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

S32K148 Flash Config Field can not erase/program

470 Views
nnguye66
Contributor I

Hi,

I am using Lauterbach and try to erase then program the Flash Config Field from unsecure to secure state follow the step in this thread https://community.nxp.com/t5/S32K/s32k144-Backdoor-Key-Access/m-p/1327726#M11768

However, I have the problem that when I erase/program the sector (0x0000-0x1000) which has Flash config Field , only other part in that sector be erased/programmed , the Flash Config Field (0x400-0x40F) is not changed

Could you give us some advise.

Your help will be highly appriciated

Best Regards,

HaiNam

 

0 Kudos
3 Replies

446 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi HaiNam,

As it is stated in the thread you linked here, it is not recommended to reprogram the first sector like that.

Anyway, what error flags does the FTFC set?

 

Thanks,

BR, Daniel

0 Kudos

441 Views
nnguye66
Contributor I

Hi Daniel,

Thank you for your reply.

If I use lauterbach to erase, there are no error flags, sector be erased except Flash config field

If I use code software to erase all (0x44) , then the ACCERR flags set, nothing be erased

nnguye66_0-1668854570958.png

 

Here is the secure state of my testing board

nnguye66_1-1668854637423.png

 

 

0 Kudos

418 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @nnguye66,

How do you erase and program the first sector exactly?

What script do you use?

Is it possible that the script programs the Flash configuration field back?

Is the MCU partitined for CSEc with keys allocated?

 

Thanks,

BR, Daniel

0 Kudos