S32K3 Bootloader customization

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

S32K3 Bootloader customization

1,016 次查看
enthuCutlet
Contributor II

How to put the bootloader code in the DFlash memory

0 项奖励
回复
1 回复

1,000 次查看
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 项奖励
回复