cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Write State issue

rohitkumarkv07
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.