MPC56xxF boot assist module via CAN : what differences from flash resident program ?

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

MPC56xxF boot assist module via CAN : what differences from flash resident program ?

652 Views
aurelienturban
Contributor I

Good morning,

 

I'm a bit frustrated and lost with BAM via CAN.

First, the upload sequence works and is done correctly.

I'm uploading to 0x40000000 (begining of SRAM) , my loader does not use VLE, loader size is 0x5000.

My program start with __start , which is located at 0x40000000.

My start function is the one provided in codewarrior for my processor.

My main looks very simple :

 

int main(void)

{

volatile uint32_t Dummy = 0;

DisableWatchdog();
FlexCAN_Init();

MyCanData[0] = 0x00;
MyCanData[1] = 0X01;
MyCanData[2] = 0x02;
MyCanData[3] = 0x03;
MyCanData[4] = 0x04;
MyCanData[5] = 0x05;
MyCanData[6] = 0x06;
MyCanData[6] = 0x07;

for(;;)
{
CAN_send(&MyCanData[0],8);
Dummy++;
}

return 0;
}

 

But still, it does not works. 

Note : CAN_ID for TX is set in my can transmit function. 

 

My questions :

1° Should I setup PLL ?

2° Should I really init CAN ? In the upload sequence with the autobaud,etc, I tend to think can registers are allready set up ?

3° Is there anything else I should init ?

 

Kind regards

Labels (1)
Tags (2)
0 Kudos
1 Reply

495 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

take a look at this thread:

https://community.nxp.com/thread/320166#comment-384300 

I have described there how to create a RAM image which can be loaded to RAM by BAM. Have you followed all the steps?

For test purposes, you can use some minimalist code which just toggles a LED or something like that. Just to make sure, the image is correctly loaded to RAM and that main function is reached.

If you run the RAM application using debugger, is it working?

Regards,

Lukas

0 Kudos