David Slivka

56F8037 MSCAN QuickStartDemo problem

Discussion created by David Slivka on Jul 14, 2011
Latest reply on Aug 3, 2011 by David Slivka

Hi

I want to use 56F8037 for CAN communication between two 56F8037 EVM boards. If i download mscan_demo into flash it wont work correctly. This demo uses can buffer2 for transmitting variable lenght data through CAN bus (in main while loop), it would be after each transmittion go into interrupt service routine TXfull, but for first time it prepare data prepare buffer2 and sends but no interrupt wont come. For second time it stuck on :

 

while(!ioctl(MSCAN, MSCAN_SELECT_TXBUFF, MSCAN_TXBUFFER2))
;

 

and COP then reset mcu.

probably the buffer is still ful and no data were transmitted.

 

Complete demo code in attach.

 

THX

Outcomes