cancel
Showing results for 
Search instead for 
Did you mean: 

CAN TX Error

ssalvi
Associate

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

1 REPLY 1
SofLit
ST Employee

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.

 

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.