Skip to main content
Graduate
August 20, 2024
Solved

stm32cubeide bug with code generation

  • August 20, 2024
  • 1 reply
  • 1095 views

I have found an issue with code generation from .ioc file. Using STM32H7S78 DK when choosing pins for FDCAN2 (I chose pb5 and pb6), after code generation it doesnt set pb 6 as an RX. Even if you manualy add it in the code it will remove it after code generation.

    This topic has been closed for replies.
    Best answer by TDK

    Works for me. Here's the pin initialization code it generated:

     

    TDK_1-1724160749771.png

     

    You're not on the latest STM32CubeIDE version. Could be that. Could also be misreading something.

    1 reply

    Super User
    August 20, 2024

    Attach your IOC file. Are you using the latest STM32CubeIDE or STM32CubeMX version?

    Pins PB5 and PB6 are used by other things on the board by default.

    PPopo.1Author
    Graduate
    August 20, 2024

    I am using STM32CubeIde  Version: 1.16.0 Build: 21983_20240628_1741 (UTC)

     


    @TDK wrote:

    Pins PB5 and PB6 are used by other things on the board by default.


    I have unsoldered some bricks and used them as FDCAN. I have changed their settings from default to FDCAN also

    TDKAnswer
    Super User
    August 20, 2024

    Works for me. Here's the pin initialization code it generated:

     

    TDK_1-1724160749771.png

     

    You're not on the latest STM32CubeIDE version. Could be that. Could also be misreading something.