Skip to main content
Explorer
July 30, 2022
Question

How to use CAN Bus on STM32f429 DISCOVERY board

  • July 30, 2022
  • 2 replies
  • 1918 views

Hello,

I am trying to select CAN1/CAN2 peripheral using the STM32CUBEIDE device configuration tool . Even though I disabled LTDC and FMC, it is not allowing me to enable CAN1 or CAN2

I want to understand does this board supports CAN communication. How do I activate CAN?

Thank you very much .

    This topic has been closed for replies.

    2 replies

    Super User
    July 30, 2022

    Hover with the mouse over the peripheral, say CAN2. A window pops up, showing you the conflicts. In case of CAN2, these are PB5, PB6 (PB12) because these pins are still mapped to their alternate function, see pinout view (marked yellow). Go to the pinout view, click PB5 and config it to reset state. Same for PB6. Now, CAN2 can be activated. But, beware that the PCB still connects those pins to the SDRAM. Double check with the schematics, that using CAN2 will not interfere with the SDRAM chip. In fact, both pins are inputs to the SDRAM, so CAN2 should work.

    hth

    KnarfB

    Graduate II
    March 19, 2024

    Hi,

    By only disable peripheral is not sufficient, You need to reset the pin state in configuration tool by left clicking on pin pad and set to "Reset_State" to all yellow colored pins.

     

     

    Thnx