Hello guys!
Anyone can share a source code about bootlader using BAM and CAN transceiver to update ram in MPC56?
I will be grateful
Regards
Matt
Thanks
Yeap i have to make a secondary bootlader with load code from CAN. I will try but its not easy for the first time with mpc5.
Regards
Thanks
Did you have any program with source code like this? I want to see how its works.
Regards
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
Thanks for your help
Do you know where i can find this eSL aplication? I cant find it on site and i cant do it.
http://www.nxp.com/assets/documents/data/en/application-notes/AN4674.pdf
Chapter 7.3
http://www.nxp.com/assets/documents/data/en/application-notes/AN4674.pdf
This article can help me?
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
Hello
Thanks for your links
Have you ever do similar project on SPC5 by STMicroelectronics?
Regards
Matt
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
i try to make application, but it hard..
I dont know how to use (active) BAM and update the code. Have you some basic instructions or source code for BAM?
Regards
Matt