what is m_flash_config in linker description file

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

what is m_flash_config in linker description file

1,189 Views
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 Kudos
2 Replies

826 Views
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 Kudos

968 Views
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 Kudos