Hi,
I just answered similar question from your company via ticket. Let me copy the answer here:
***
There are more options how to implement a bootloader on this device.
If you want to use serial boot mode (using BAM module), there are two ways how to switch to serial boot mode:
- Change BOOTCFG pins as needed. The pins are latched during reset. So, you need to have an option to change this state by hardware (jumpers, pushbutton or whatever).
- Second option is to change the mode by DCF record. See “5.7.1 UTEST Miscellaneous DCF client” in the reference manual for more details.
However, it’s not very common solution to use this serial boot mode. Absolute majority of our customers use rather flash resident bootloader.
We provide Rappid bootloader which can use either UART or CAN. At the beginning, it’s necessary to load RBF file to flash via JTAG. Notice that we do not provide source codes, it cannot be modified:
https://www.nxp.com/webapp/Download?colCode=RAPPID_BOOTLOADER_UTILITY&appType=license
Some custom RBF files can be downloaded here:
https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/RAppID-Bootloader-custom-rbf-files/ta-...
Then we provide application note AN5319 which describes how to develop simple serial bootloader. SW example is included. It’s written for MPC5748G but it’s supposed to be starting point for all MPC57xx devices:
https://www.nxp.com/docs/en/application-note/AN5319.pdf
https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip
If you are looking for out of box solution, you can ask Vector (or other SW vendors) for help:
https://www.vector.com/int/en/products/products-a-z/embedded-components/flash-bootloader#
Regards,
Lukas