Skip to main content
Associate III
September 3, 2024
Solved

CAN Write State issue

Dear,

I am trying to run the CAN Communication in STM32F407 discovery board, In CAN_INIT I have made controller state to Ready after that I have changed the controller state from ready to LISTENING in CAN_START function,   but when I am trying to execute Can_Write controller state is going back to RESET mode ,,,what could be the reason behind this and how to recover from this?

B.R

Rohit

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
September 3, 2024

Hello,

If you are using your own implementation as here: https://community.st.com/t5/stm32-mcus-products/inak-bit-is-not-getting-clear-in-stm32f407-discovery-board/td-p/714630

I suggest you to inspire from the HAL implementation, there is no reason to reinvent the wheel.

If you are in Normal mode you need two nodes on the bus with CAN transceivers otherwise you will never succeed a communication even with HAL. So start with one of the test modes (Loopback for example).

 

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

1 reply

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
September 3, 2024

Hello,

If you are using your own implementation as here: https://community.st.com/t5/stm32-mcus-products/inak-bit-is-not-getting-clear-in-stm32f407-discovery-board/td-p/714630

I suggest you to inspire from the HAL implementation, there is no reason to reinvent the wheel.

If you are in Normal mode you need two nodes on the bus with CAN transceivers otherwise you will never succeed a communication even with HAL. So start with one of the test modes (Loopback for example).

 

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