Hi Lukas,
Thanks for the information.
I'm currently trying to get a bootloader/application pair to link as a single .elf file for the MPC5748G.
There's a few issues that I'm a little confused about and would be very grateful if you could provide any guidance with regard to them.
The plan is to always boot the bootloader and then jump to the application if a specific CAN message hasn't been received in the first 10-20 seconds. If a valid CAN message is received, I would then proceed to download the image (via CAN), before erasing the flash memory allocated to the application.
In your 'Serial Bootloader for MPC5748G' document (AN5319), it says that the flash drivers should be copied to RAM before erasing the flash to avoid any conflicts. Is this mandatory, or can the bootloader take care of the erase by residing in a different partition, e.g. bootloader loaded at partition 9 and application at partitions 6,7 and 8 for instance?
The other main query relates to RAM and whether I need to allocate a seperate Heap and Stack for the bootloader and application as well as seperate RAM sections, i.e. .data, .rodata, and .bss sections?
Again, any help you can provide would be most appreciated.
Many thanks
Rob