Skip to main content
Mduff.1
Associate
April 22, 2021
Question

Hi I am relatively new to STM32 and Cube MX so was trying to compile the examples from CubeMX. Two issues. Some examples don't compile under CubeMX so had to select run under external IDE. I use CubeIDE be no selectable option so cannot build proj.

  • April 22, 2021
  • 12 replies
  • 2353 views

was specifically interested in the following.

C:\Users\user\STM32Cube\Example\QSPI_perfs

C:\Users\user\STM32Cube\Example\STemWin

C:\Users\user\STM32Cube\Example\TouchGFX

Can get TouchGXX to create and run its own GUI projects. its the stand alone ones that are a problm

This topic has been closed for replies.

12 replies

Khouloud OTHMAN
Associate
April 28, 2021

Hello @Mduff.1​ ,

First let me welcome you to the STM32 Community :smiling_face_with_smiling_eyes:

The issue doesn't seem very clear to me, hence I'll share with you my comprehension to avoid any misunderstanding. So, you're trying to start your project from a selected example using the Example selector feature through STM32CubeMX tool. Please correct me if I misunderstood.

Some of the examples are not STM32CubeMX compatible (which is the case of QSPI_perfs, STemWin and TouchGFX examples). When selecting one those examples, you can only start your project in an external IDE:

0693W00000AMl99QAD.png 

Clicking the Start project in External IDE button, STM32CubeMX allows you to open the newly created project either with:

  • a File explorer
  • one of the supported toolchains (provided the toolchain is already installed on your computer)

0693W00000AMlDpQAL.jpgFor more details about the STM32CubeMX features, you can refer to its User Manual.

I hope this answers your question. If it is the case, please click on the Select as Best button on my reply . This will help other members of the community find this solution more quickly.

Otherwise feel free to raise any feedback.

Khouloud.

Mduff.1
Mduff.1Author
Associate
April 28, 2021
Hello Khouloud
And thank you for your reply.
I have the CubeIDE 6.2.0 installed with software package FW_F7_V1.16.0 for my STM32F746/Disco board.
When CubeMX asks the IDE to export to CubeIDE is not listed. I installed CubeIDE 1.6.0 after CubeMX.
The options for Export Project or Start Project in External IDE.
EWARM
MDK-ARM
SW4STM32
Explorer
I have worked out there is an issue with my PCB software and CubeIDE as they both use .project file extension.
So CubeMX would try and open my PCB software with its .project file. (This is new as previously did nothing before i recently updated my PCB Software version)
The project now opens in CubeIDE but won't build.
It is not an IDE project in the workspace like the others. (Different icon)
I used IDE open project from file and used the Example folder created by CubeMX for QSPI_Perf as the source.
I have sent you the export of workspace project to help visualise the problem as separate file.
I also note there is no IOC file created by CubeMX within the project. Not sure it this is significant.
Any help appreciated as i am a bit lost.
Thanks in advance and kind regards
Mike Duffy
Khouloud OTHMAN
Associate
April 29, 2021

Hi @Mduff.1​ ,

Thanks for the additional inputs.

>When CubeMX asks the IDE to export to CubeIDE is not listed. I installed CubeIDE 1.6.0 after CubeMX.

The options for Export Project or Start Project in External IDE.

EWARM

MDK-ARM

SW4STM32

Explorer

That's true CubeIDE is not listed within the available IDE list but if you select SW4STM32, STM32CubeIDE workspace will be launched automatically and a dialog box asking to confirm the migration of the project from System Workbench to STM32CubeIDE will be displayed:

0693W00000AMsRjQAL.pngFurther on, another dialog box informs that the import was successful and that some manual configuration may be required:

0693W00000AMsp7QAD.png 

Trying with the STemWin example, everything works right and the build finished without problems.

> I have worked out there is an issue with my PCB software and CubeIDE as they both use .project file extension.

So CubeMX would try and open my PCB software with its .project file. (This is new as previously did nothing before i recently updated my PCB Software version)

It is a bit ambiguous for me, I can't get the problem and the relation between the PCB software and CubeMX. Please try to restart from the scratch using a different project location.

> I also note there is no IOC file created by CubeMX within the project. Not sure it this is significant.

In the case of QSPI_perfs, STemWin and TouchGFX examples, no .ioc file will be generated because none of these examples is STM32CubeMX compatible as I have mentioned in my previous reply.

I hope that this clarifies a bit the process.

Khouloud.