S32K144 change FSEC

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

S32K144 change FSEC

1,588 次查看
pangyun
Contributor II

I am developing on a S32K144 , usually in debug mode with the device unsecured.

I use S32 Design Studio for S32 Platform Version: 3.4 for developing.

The hardware is segger jlink.

In order to secure the device I set the SEC bits of FSEC reg. from "10" to "11" in the starup.S file as below .

pangyun_0-1744182010197.png

 Program the device by s32ds debug ,but I finally found the SEC bits is always 10b.

Please tell me reason and how can I program by S32DS debug with J-LINK to set the SEC bits of FSEC reg. from "10" to "11".

 

标记 (1)
0 项奖励
回复
3 回复数

1,560 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @pangyun

Please look at this community post: Solved: S32K144 Setting FSEC bits to Secure - NXP Community. It mentions the same issues, which was fixed by programming in unsecure and secure modes.

Best regards,
Julián

0 项奖励
回复

1,540 次查看
pangyun
Contributor II
I see that,but he used the Multilink Universal (PEMicro) to program,my device is J-LINK. So please tell me reason and how can I program by S32DS debug with J-LINK to set the SEC bits of FSEC reg. from "10" to "11".
0 项奖励
回复

1,496 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @pangyun,

Are you using S32DS to flash or the J-Link tools (such as J-Flash)?

Modify the FSEC register in startup_S32K144.S file and generated a .hex file with S32DS. Then, select allow security in J-Flash, you should be able to secure it:

Julin_AragnM_0-1745615711405.png

Julin_AragnM_2-1745615742474.png

Best regards,
Julián

0 项奖励
回复