cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cubeide bug with code generation

PPopo.1
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4
TDK
Guru

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

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

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

Alright, I'll update it