AnsweredAssumed Answered

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

Question asked by aurelienturban on Oct 26, 2016
Latest reply on Nov 4, 2016 by Lukas Zadrapa

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

Outcomes