mpc5674F Bootloader jump

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mpc5674F Bootloader jump

ソリューションへジャンプ
1,504件の閲覧回数
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,492件の閲覧回数
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,493件の閲覧回数
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,488件の閲覧回数
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 件の賞賛
返信