2024-09-03 02:45 AM - last edited on 2024-09-03 02:59 AM by SofLit
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
Solved! Go to Solution.
2024-09-03 02:59 AM - edited 2024-09-03 03:00 AM
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).
2024-09-03 02:59 AM - edited 2024-09-03 03:00 AM
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).