Senior
January 8, 2025
Solved
Missing GPIO pin defs after migrating from F4 to H7 dual-core
- January 8, 2025
- 3 replies
- 742 views
Hi,
I have a project that was started on STM32F439 which I'm now migrating to STM32H755.
In my original project I had a number of GPIO assignments for which the code generator was creating definitions in main.h, such as below:
#define LCD_RST_Pin GPIO_PIN_2
#define LCD_RST_GPIO_Port GPIOF
In the above example I've assigned user label LCD_RST to the pin.
Following the same approach on the H7, for the C7 .ioc file I've similarly made my GPIO assignments, however I can't find any generated code relating to them. In this case main.h is much shorter, lacking any #defines relating to GPIOs. I've searched also for the GPIO pin name (such as PB2) but the only instances I can find are in the ioc file.
Any advice would be much appreciated, my ioc is attached.
Thanks in advance.

