In s32k118 Cant write FSEC bit Setting using T32

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

In s32k118 Cant write FSEC bit Setting using T32

ソリューションへジャンプ
2,513件の閲覧回数
mose
Contributor I

Hi. nxp team

i'm trying to update FSEC bit to make my MCU jtag locking.

so I attempted startup.s code modifying like this,

mose_0-1665028684866.png

and I checked my sec file that the FSEC register was updated at 400.

mose_1-1665034699679.png

but even after data load on target, FSEC register still 0xFE, not 0xFC

mose_0-1665034637255.png

It seems impossible to change the memory adress 0x0_0400

 

Please help me to resolve this issue.

Thanks,

MOSE

ラベル(1)
0 件の賞賛
返信
1 解決策
2,502件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Mose,

there's a protection against unintended modification of this flash configuration field.

The solution can be found in this file used for programming:

c:\T32\demo\arm\flash\s32k.cmm

 

lukaszadrapa_0-1665076776610.png

 

lukaszadrapa_1-1665076834814.png

Regards,

Lukas

 

元の投稿で解決策を見る

3 返答(返信)
2,503件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Mose,

there's a protection against unintended modification of this flash configuration field.

The solution can be found in this file used for programming:

c:\T32\demo\arm\flash\s32k.cmm

 

lukaszadrapa_0-1665076776610.png

 

lukaszadrapa_1-1665076834814.png

Regards,

Lukas

 

2,460件の閲覧回数
mose
Contributor I

Thank you for your reply.

now i set my mcu to secure, but i have one more problem.. 

i want to unsecure my mcu using masserase in trace32,

so i setup mass erase command, MDM-AP Control Register[0] == 1

Data.Set EDBG:0x40000104 %Long 0x00000001

but it doesn't work. it still locking

Please help me to resolve this issue.

Thanks,

MOSE

0 件の賞賛
返信
2,440件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

I can see two possible reasons:

- the mass erase is disabled in flash configuration field in FSEC by MEEN. This should be reflected also in bit 5 in MDM-AP Status register

- CSEc is enabled. This note can be found in description of Program Partition command:

lukaszadrapa_0-1666021300491.png

Regards,

Lukas

0 件の賞賛
返信