This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm trying to get the C2000 CAN example can_ex5_transmit_receive.c doing what is supposed to do. To ensure no circuitry is messing around, I directly measure at the TX/RX pins of the processor. In the device.h file, I changed the CAN defines accordingly:
#define DEVICE_GPIO_PIN_CANTXA 2U // GPIO number for CANTXA #define DEVICE_GPIO_PIN_CANRXA 3U // GPIO number for CANRXA #define DEVICE_GPIO_CFG_CANTXA GPIO_2_CANA_TX // "pinConfig" for CANA TX #define DEVICE_GPIO_CFG_CANRXA GPIO_3_CANA_RX // "pinConfig" for CANA RX
TX is always high, and no CAN messages are sent.
The only possible bug I found was the Init bit: 0 in CAN_CTL. It stayed high after the configuration was finished.
Kindly asking for any further suggestions,
LW
Hi Lukas,
I strongly suggest to first start with the can_ex1_loopback example. Since you have your own custom board, ensuring that this first example runs on your custom board would confirm that the f28005 device powers up and is clocked correctly and CAN module is correctly configured, then once this is confirmed, you can start running the receive/transmit examples.
Regards,
Joseph
Hi Lukas,
Have not heard back from this post so I am assuming issue is resolved, hence closing this. If you still have issues on this topic, please post to the forum so we can continue with the discussion.
Regards,
Joseph