Skip to main content
PPopo.1
Senior
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.

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

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

"If you feel a post has answered your question, please click ""Accept as Solution""."
PPopo.1
PPopo.1Author
Senior
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

TDK
TDKBest answer
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.

"If you feel a post has answered your question, please click ""Accept as Solution""."