AnsweredAssumed Answered

PROBLEM IN FLEXCAN FD TX

Question asked by mandy l on Dec 14, 2016
Latest reply on Dec 20, 2016 by Petr Stancik

hi, i use the mpc5748 devkit to do some research on CAN FD via S32DS.

i have tried to configure the fd registers and got some problems when debugging.

i import the can0 transmit example   anmake changes on it :use can1 port,add fd function.

then the related codes as,followed:

CAN_1.MCR.B.MIDS=1;

CAN_1.CTRL1.B.CLKSRC=0;

CAN_1.MCR.B.MIDS=0;

WHILE(!CAN_1.MCR.BFRZACK)

{}

CAN_1.CTRL1.R=0X04DB0086;

//ADD BY ME

CAN_1MCR.B.FDEN=1;

CAN_1.FDCTRL.B.MBDSR0=3;

...

CAN_1.FDCBT.R=0X00431863;//500bps

...

//CODE END

 

When i try to debug the project and have a sigle steP the code "CAN_1.FDCTRL...", the mistake happens and the related infomation is in the following accessory.

i cannot find the reason, and will appreciate if anyone sall help me,than you!

Outcomes