mpc5674F Bootloader jump

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

mpc5674F Bootloader jump

Jump to solution
1,503 Views
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 Kudos
Reply
1 Solution
1,491 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,492 Views
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 Kudos
Reply
1,487 Views
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 Kudos
Reply