MCX E24x: Recover the board from error "Flash driver failed to initialize"

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

MCX E24x: Recover the board from error "Flash driver failed to initialize"

MCX E24x: Recover the board from error "Flash driver failed to initialize"

In order to recover your board, you need to accomplish the following:

Ensure that your PC successfully enumerates the LinkServer debugger under the COM ports.

Confirm that you can attach to the running code on the board.

When attempting to program the board, the following error appears:

image (6).png
 
The device stops during initialization because the value of SIM_CHIPCTL is not set to its default after reset. This happens because SRAMU and SRAML are retained across resets, which causes a flash initialization error.

To resolve this issue, modify the debug script to override the SIM_CHIPCTL register with its default value: 0x0030_0000.

Locate the file MCXE24x_connect.scp.
If you are using the default installation path, it should be located at:
C:\NXP\LinkServer_YourVersion\binaries\Scripts
 
Open the file and add the line "Poke32 this 0x40048004 0x00300000" I recommend do it after the "Release NRESET" message.
 
 
carlos_o_2-1761067984849.png

Note: You need to add a number to each line of code 

 

After making this change, you should be able to program your MCX E24x board as usual.

No ratings
Version history
Last update:
Tuesday
Updated by: