In S32k144 Cant Write FSEC, SEC bits using J-LINK

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

In S32k144 Cant Write FSEC, SEC bits using J-LINK

2,684 Views
sandipta_mohan1
Contributor I

Hi,

I am trying to update FSEC register to make my controller Secure.

/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF /* 8 bytes backdoor comparison key */
.long 0xFFFFFFFF /* */
.long 0xFFFFFFFF /* 4 bytes program flash protection bytes */
.long 0xFFFF7FFF /* FDPROT:FEPROT:FOPT:FSEC(0xFF = secured) */

.text
.thumb

Even though; i have updated FSEC register in startup_S32K144.S file; And generated .hex file.

sandipta_mohan1_0-1631018250600.png

But While Software flashing; After doing Software Erase.

FSEC register value automatically updates from 0xFF to 0xFE

 

Please help me to resolve this issue.

Thanks,
Sandipta

0 Kudos
2 Replies

2,674 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Sandipta,

Which IDE are you using?

Modify the FSEC register in startup_S32K144.S file and generated .hex file by using S32 Design Studio for ARM Version 2.2, I was able to see the (0xFF = secured)

And then select allow security in J-Flash, you should be able to secure it.

J-Flash allow security.pngopen hex file.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

2,143 Views
michael_gao
Contributor II

Dear Robin

if the FSEC register is 0xFF , you can't read any memory by J-flash.

Because FSEC register is used to prevent reading.

Maybe you can close the j-flash and open to read ?

Anyway , How can i program by S32DS for ARM 2.2 & J-LINK with the FSEC register 0xby FF ?

I can do it by PE-micro and openSDA.

Thanks.

0 Kudos