cancel
Showing results for 
Search instead for 
Did you mean: 

Error in CAN transmission normal mode

SMitt.2
Associate II

I am using 2 microcontrollers STM32F103ZETx as transmitter and STM32F730R8 as reciever. So my CAN is coming into initialization mode but has some issues in CAN normal mode. SLAK=0 , INAK=1(should be 0) and INRQ = 1(should be 0) for can normal mode.

1.How to make INRQ =1 by software.What changes should I do to the code ?

2.my DBF=1.Does it affect CAN normal mode ?

I tried making INRQ =0 which made INAK=0 and SLAK =0 , but TERR became 1 , that is error occurred.

Still TXOK was 0.

1 ACCEPTED SOLUTION

Accepted Solutions
Hoang_Tran
Associate III

you forget HAL_CAN_Start

View solution in original post

3 REPLIES 3
Hoang_Tran
Associate III

you forget HAL_CAN_Start

Imen.D
ST Employee

Hello @SMitt.2​ ,

Did you added the line suggested by @Hoang_Tran​  ? Does it work ?

If yes, please mark his reply as Best answer (click on "Select as Best").

I advise you to refer to the CAN example with STM32Cube MCU package, which can help you as an implementation example to develop your application.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

something worked , thank you !