cancel
Showing results for 
Search instead for 
Did you mean: 

cubeMX:access to example selector

stm64
Associate II

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.

16 REPLIES 16
Mahmoud Ben Romdhane
ST Employee

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.

GPIO_IOToggle NUCLEO-C031C6  version:6.12.0

Thanks.

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.

MahmoudBenRomdhane_0-1768465523572.png

MahmoudBenRomdhane_1-1768466102900.png

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.

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. 

stm64_0-1768468184391.pngstm64_1-1768468198736.png

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.

TDK
Super User

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.

TDK_0-1768484555396.png

 

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

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.

Hello @stm64 ,

 

STM32CubeMX should display the GPIO Settings such as the case with Nucleo-H7S3L8.

MahmoudBenRomdhane_0-1768489978247.png

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.

Andrew Neil
Super User

@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

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

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.