Skip to main content
Explorer
September 3, 2024
Solved

CAN Write State issue

  • September 3, 2024
  • 1 reply
  • 795 views

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.
    Best answer by mƎALLEm

    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).

     

    1 reply

    mƎALLEmAnswer
    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).