S32K3 Bootloader customization

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

S32K3 Bootloader customization

501 Views
enthuCutlet
Contributor II

How to put the bootloader code in the DFlash memory

0 Kudos
Reply
1 Reply

485 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @enthuCutlet 

it's just necessary to update the linker file in your project. By default, you should see something like this in your linker file:

lukaszadrapa_0-1705992600801.png

All the code resources are forced to program flash like this:

lukaszadrapa_1-1705992646711.png

Just change it to data flash which is already defined in the memory segments.

IVT can be placed also to the data flash, so there's no problem with this:

lukaszadrapa_2-1705992746998.png

And there's one more thing - data flash can be already used like this in default linker file:

lukaszadrapa_3-1705992790858.png

So, you need to update this too. Easiest way is to split the data flash to two segments. Use the first segment as program flash and use the second segment for ROM data.

Regards,

Lukas

 

0 Kudos
Reply