MPC56 CAN BAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC56 CAN BAM

2,320 Views
mattrck
Contributor I

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

Labels (1)
0 Kudos
11 Replies

1,706 Views
mattrck
Contributor I

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

0 Kudos

1,706 Views
mattrck
Contributor I

Thanks

Did you have any program with source code like this? I want to see how its works.

Regards

0 Kudos

1,706 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,706 Views
mattrck
Contributor I

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

0 Kudos

1,706 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

see attachment. Unfortunately I do not have the source files. The author of this SW has left the company and the source files are not available...

Regards,

Lukas

0 Kudos

1,706 Views
mattrck
Contributor I
0 Kudos

1,706 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, this application note should be useful.

Lukas

0 Kudos

1,706 Views
mattrck
Contributor I

Hello

Thanks for your links

Have you ever do similar project on SPC5 by STMicroelectronics?

Regards

Matt

0 Kudos

1,706 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,706 Views
mattrck
Contributor I

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

0 Kudos