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 :
volatile uint32_t Dummy = 0;
MyCanData = 0x00;
MyCanData = 0X01;
MyCanData = 0x02;
MyCanData = 0x03;
MyCanData = 0x04;
MyCanData = 0x05;
MyCanData = 0x06;
MyCanData = 0x07;
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 ?