cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Mduff.1
Associate II

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

12 REPLIES 12

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.

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
Hi
See exported project for reference.
Thanks
Mike

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

Did you sent your project through email ? I actually didn't receive any notification.

Could you please re-check.

Yes i sent it. Almost immediately after the correspondence. Will resend in 1 hr.

Thanks for following up

Regards

mike

The .project extension is registered with windows. Clicking on a .project file opens the application associated with .project.

Previous my DexPcb software was associated with .project.

I have reallocated .project to CubeIDE and the Open project sequence now works and the project opens in CubeIDE.

(Previously it did nothing apart from create the folder in the workspace but not create the .project or .cproject files.

So when i opened CubeIDE it didn't have the info it needed.)​

It was never about the project location.

Regards

mike​

---​

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.

Yes the file was sent with .zip file attachment for the workscope project.

Maybe your system strips the attachments.​ have attached it below.

Hi @Mduff.1​ ,

Please excuse the somewhat late reply.

From my side, the .project extension is associated by default with CubeIDE. Hence everything works as expected.

> I have reallocated .project to CubeIDE and the Open project sequence now works and the project opens in CubeIDE.

So you have successfully opened examples using CubeIDE ?

Khouloud.