what is m_flash_config in linker description file

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

what is m_flash_config in linker description file

1,206 次查看
momo12
Contributor III

What is this section about?

  m_flash_config        (RX)  : ORIGIN = 0x00000400, LENGTH = 0x00000010

readout protection? Apparently during development of a bootloader I wrote to this adress and now my s32k is locked.

How can I unlock it?

Where in the documentation can I read details about this?

Thx

0 项奖励
2 回复数

843 次查看
lee_ys
Contributor I

I am going through the same situation.(m_flash_config        (RX)  : ORIGIN = 0x00000400, LENGTH = 0x00000010

readout protection? Apparently during development of a bootloader I wrote to this adress and now my s32k is locked.)

 

answer : (If the MCU is secure and mass erase is disabled, the MCU is bricked, unfortunately.)

What is the more detailed situation for the above answer?

0 项奖励

985 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
Please have a look at Section 36.4.1 Flash configuration field description in the S32K1xx RM, rev.8

pastedImage_1.png

And the Flash Security Register (FSEC) description, Section 36.4.4.1.4.

The FSEC register is loaded from the Flash Configuration Field out of reset.

If the MCU is secure and mass erase is disabled, the MCU is bricked, unfortunately.

 

In S32DS, the field can be configured in startup_S32K144.S file:

pastedImage_2.png

Regards,

Daniel

0 项奖励