Part Number: LAUNCHXL-F28377S
Tool/software: TI C/C++ Compiler
Hi
There is a new driverlib inside the C2000 Ware package.
From there I took the can_ex1_loopback example and modified it to send a message only if I set a sendMsg flag (over the debugger).
I send it once but it receives endless messages....
I think the NewDat flag will not be reset after reading but I didn't find a way to do this.
Here is the part that I modified.
if(SendMsg) { // // Send CAN message data from message object 1 // CAN_sendMessage(CANA_BASE, 1, MSG_DATA_LENGTH, txMsgData); SendMsg = 0; } // // Delay before receiving the data // DEVICE_DELAY_US(500000); // // Read CAN message object 2 and check for new data // if (CAN_readMessage(CANA_BASE, 2, rxMsgData)) { msgCount++; }