CAN Write State issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 2:45 AM - last edited on ‎2024-09-03 2:59 AM by mƎALLEm
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.
- Labels:
-
CAN
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 2:59 AM - edited ‎2024-09-03 3: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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 2:59 AM - edited ‎2024-09-03 3: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).
