mpc5674F Bootloader jump

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

mpc5674F Bootloader jump

跳至解决方案
1,850 次查看
pyi285
Contributor II

I am currently using the mpc5674F chip. I saw that the bootloader project was saved in RAM (0x00), and I confirmed that the application project was saved in Flash (0x010000). It seems that this method is currently not working, and if it is not that method
Is there any way to save both codes (Bootloader and application) in Flash and move them to the desired address (0x1000) and execute them?

organize
- Please review the currently uploaded code to find out what the problem is.
- Is there a way to save the two codes to the desired Flash address and jump to the desired address? Even if the stability is poor, that method is necessary.

 

https://community.nxp.com/t5/MPC5xxx/MPC5674F-Bootload/m-p/1637095#M23401

0 项奖励
回复
1 解答
1,838 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @pyi285 

take a look at the original sample projects of bootloader+application. The linker files show what the layout is.

In case of MPC5674F, I would consider layout like this:

lukaszadrapa_0-1686731266527.png

Of course, it depends on your needs. If you do not need Emulated EEPROM or data storage in those 16KB blocks, you can move the bootloader directly to the beginning of the flash.

Important point is that the bootloader/application should be always aligned to partition to avoid read-while-write issues during programming. In suggested layout above the bootloader occupies whole partition 3. Another option is to use only four 16KB blocks for data, so the bootloader can be forced either to partition 1 or 2.

So, layout planning based on your needs should be the first step here.

Regards,

Lukas

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,839 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @pyi285 

take a look at the original sample projects of bootloader+application. The linker files show what the layout is.

In case of MPC5674F, I would consider layout like this:

lukaszadrapa_0-1686731266527.png

Of course, it depends on your needs. If you do not need Emulated EEPROM or data storage in those 16KB blocks, you can move the bootloader directly to the beginning of the flash.

Important point is that the bootloader/application should be always aligned to partition to avoid read-while-write issues during programming. In suggested layout above the bootloader occupies whole partition 3. Another option is to use only four 16KB blocks for data, so the bootloader can be forced either to partition 1 or 2.

So, layout planning based on your needs should be the first step here.

Regards,

Lukas

0 项奖励
回复
1,834 次查看
pyi285
Contributor II

I understood what you mean, but what I want is, is there a code to save and jump to the desired address in the application?

0 项奖励
回复