Skip to main content
SMitt.2
Associate
September 22, 2021
Solved

Error in CAN transmission normal mode

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.

This topic has been closed for replies.
Hoang_Tran
Hoang_TranBest answer
Associate III
September 23, 2021

you forget HAL_CAN_Start

3 replies

Hoang_Tran
Hoang_TranBest answer
Associate III
September 23, 2021

you forget HAL_CAN_Start

SMitt.2
SMitt.2Author
Associate
September 23, 2021

something worked , thank you !

ST Technical Moderator
September 23, 2021

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks