2024-08-22 03:50 AM - last edited on 2024-08-22 04:22 AM by SofLit
Hi,
I am new to ST, trying CAN TX RX Code.
Every time I Transmit Error frame is getting generated instead of Data .
Please suggest what i am doing wrong in the below code.
I am sharing my main file
Thanks
2024-08-22 04:28 AM - edited 2024-08-22 04:35 AM
Hello @ssalvi and welcome to the community.
As you are using Normal mode, you didn't tell if you already established a CAN bus where at least two nodes (your L4 MCU is among them + a CAN transceiver) are connected to it. Did you do that? if not, you cannot use CAN as UART or SPI to use it in standalone as it is or connect externally CAN_Tx to CAN_Rx. You need to use one of the test modes example the LoopBack mode in that case.