Hi
I working on creating a bootloader project, and a App project in S32 DS.
Both of projects are working individually, but now I have to combined them into flash memory.
Here is my procedure:
Bootloader project creates a *.bin file.
Then I merge *.bin file into APP project.
link file just looks like this, how to add bootloader's reset vectors and bootloader.bin?
Anyone can provide example to modify link file?
Thanks,
Hi,
I working on creating a bootloader project, but I have a problem。
Here is my procedure:
could share you bootloader and Application(demo)source code to me.
Hi Xueyuan
My original design is creating bootloader & App in different projects, then merge bootloader elf/bin/srec into App's project, which means bootloader & App are allowed to be flashed into MPC5748G by S32 DS IDE at the same time.
bootloader is also allowed to update Apps F/W via other I/F such as serial etc...
So my first priority concern is that how to add bootloader & App reset vectors in just one linker file(MPC5748G_flash.ld)?
Does it make sense?
In App, there are Boot header and cpu vectors define like this:
flash_rchw : org = 0x00FA4000, len = 0x4
cpu0_reset_vec : org = 0x00FA4000+0x10, len = 0x4
cpu1_reset_vec : org = 0x00FA4000+0x14, len = 0x4
cpu2_reset_vec : org = 0x00FA4000+0x04, len = 0x4
The boot sequence is:
bootloader cpu reset vectors -> bootloader main() jump to -> App's cpu reset vector -> App's main()
To merger bootloader elf or bin (whatever) into App project, how to ensure that bootloader's bootheader and reset vectors also put in the right place?
Hi,
with raw binary file it is bit harder to add it on proper address - I tried find solution, but no success yet. The easiest way is use bootloader .srec file (or .elf) as an additional elf in debug configuration:
Jiri