2026-01-14 9:45 PM
When I open the official example using the example selector, CubeMX cannot display the graphical configuration of that example. I would like to know if it is possible to display the graphical configuration of the example in CubeMX. Thank you very much, because that would make learning much easier.
2026-01-14 11:03 PM
Hello @stm64 ,
Let me thank you for your post.
For more investigation, could you please provide which example are you using.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-14 11:48 PM
GPIO_IOToggle NUCLEO-C031C6 version:6.12.0
Thanks.
2026-01-15 12:39 AM
Hello @stm64,
Further to your comment, STM32CubeMX 6.16.1 provides an example GPIO_IOToggle with an Ioc.File.
I suggest that you select it and click on start project.
You can access also to the Example under the firmware path:
C:\Users\_\STM32Cube\Repository\STM32Cube_FW_C0_V1.4.0\Projects\NUCLEO C031C6\Examples\GPIO\GPIO_IOToggle
I will be waiting for your feedback.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-15 1:15 AM
This is how I did it. After clicking the steps above, CubeMX opened automatically. As shown in the image below, the CubeMX interface does not display the GPIO configuration.
Although when I import it into cubeIDE later, I can see the GPIO_IOToggle code and the function works normally.
I want to see how the GPIO_IOToggle example is configured graphically in cubeMX, but I can't see it here.
Thanks.
2026-01-15 5:42 AM
There's no way to change how the example is set up, but you can change a pin to be GPIO_Output and it will be initialized as such in the code.
Configuration of the pin is done in user code within the example, not from within STM32CubeMX.
2026-01-15 6:11 AM
Thank you so much.Because I previously used Texas Instruments MCUs, their sample code could be viewed graphically in syscfg (a tool similar to cubeMX) after being imported.Hopefully, CubeMX will be officially upgraded to this level in the future.
Thanks.
2026-01-15 7:25 AM - edited 2026-01-15 7:30 AM
Hello @stm64 ,
STM32CubeMX should display the GPIO Settings such as the case with Nucleo-H7S3L8.
An internal ticket has been raised to the dedicated team (Ticket Number: 225239).
To activate a LED on NUCLEO-C031C6, simply configure PA5 in push-pull output mode and HCLK at 48 MHz, as indicated in the Example Readme File.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-15 7:32 AM
@stm64 wrote:CubeMX cannot display the graphical configuration of that example.
Presumably because that particular example didn't have a graphical project (.ioc file) ?
Not all examples have a .ioc file
How to tell if an example has a .ioc file
2026-01-16 1:54 AM
I know what happened. The GPIO_IOToggle and GPIO_EXIT example files for NUCLEO-C031C6 are corrupted, while the other examples can display the graphical configuration correctly in cubeMX.
Thanks.