Hi,
all I have is very simple application for UART. I'm not author of this code, I got it from somewhere long time ago. See the CSerialBootLoaderDlg::OnBnClickedTest().
In fact, the serial boot itself is very easy. All you have to do is to follow the procedure described in the BAM chapter in reference manual. Send the password, address, byte count and the RAM image and that's all. You just have to wait for echo characters before sending next data.
More difficult is to develop the secondary bootloader - that's the binary image which is loaded by BAM to RAM. This application is supposed to load the code from UART/CAN and then program it to the flash.
This flash resident bootloader could help (it's not loaded by BAM to RAM, it sits in the flash all the time...). Maybe you can reuse some code:
https://community.nxp.com/servlet/JiveServlet/download/427962-1-279359/bootloader.zip
And this is the same for MPC5748G:
http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319.pdf
http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319SW.zip
Regards,
Lukas
Yes, this application note should be useful.
Lukas
Hi Matt,
some basic information:
https://community.nxp.com/message/851961?commentID=851961#comment-851402
https://community.nxp.com/message/851961?commentID=851961#comment-851961
https://community.nxp.com/message/535513?commentID=535513#comment-535513
https://community.nxp.com/thread/320166#comment-384300
If you need more details, just let me know...
Regards,
Lukas
Hi,
the devices were developed by Freescale and ST in JDP program. They are 100% compatible (if you have the same revisions, of couse...).
Regards,
Lukas