Skip to main content
Clark Sann
Associate III
November 8, 2020
Solved

How do I import the GPIO_IOToggle example project for the STM32F103RB-Nucleo into CubeIDE?

  • November 8, 2020
  • 13 replies
  • 2775 views

I've spent several hours trying to do this. None of the articles from the web are working for me. Something is always screwed up. Either there is no source code or there are compile errors.

I've also wasted hours trying to get the Target Selector to work, only to eventually find it is not compatible with STM32F1 series. Great.

Can someone please give me suggestions on how to proceed?

I am beginning to wonder if I have made the right choice in moving from TI to STM. The TI IDE is very easy to use. Am I just experiencing new user problems or is this IDE as buggy as it appears to be?

This topic has been closed for replies.
Best answer by Cartu38 OpenDev

Definitively weird.

I see you're working on MacOS. Myself relying on Win10 OS.

So just got a try on my iMac ... leading to same trouble as you :( ... sounds Eclipse behavior not same at all doing project renaming if MacOS.

Doing renaming based on a Linux VM is doing same as Win10.

13 replies

Cartu38 OpenDev
Graduate II
November 8, 2020

All such is just working like a charm ... 2 clicks button process ... sorry.

My guess is: you cannot compare a solution you've habit about vs. one you're just discovering ... please be fair !

File > Import ...

0693W000005Ahw8QAC.jpgOr File > Open Projects From File System even easier ...

0693W000005AhwrQAC.jpg 

0693W000005AhvyQAC.jpg 

Clark Sann
Associate III
November 8, 2020

Thank you so much for your help. It indeed works if you import using the two methods you described as long as you create a new workspace for every example project. My problem was that I kept trying to import using "Existing Projects into Workspace" and "Import STM32Cube Example". Those certainly don't work. Thanks again!

The problem remains that you cannot import another example project into the workspace because the names of all the projects are the same. I wonder why since I was importing "GPIO_IOToggle" that CubeIDE changed the project name to "STM32F103RB". If you try to import another example project it will not do so because that project name already exists.

I also tried to rename the project to GPIO_IOToggle. The project no longer builds when I do that. This appears to be a bug in CubeIDE.

Do you have any suggestions on how to get past these problems?

Once again, I REALLY appreciate you taking the time to help me. I'm finding it very frustrating getting started with CubeIDE but you are right, some of it is caused by just being new at this IDE.

Cartu38 OpenDev
Graduate II
November 8, 2020

Here I agree. 2 examples cannot be imported within same workspace but not IDE issue ... STM32Cube example one. Most of examples (old series in fact sounds ST has done some progress here if new ones) are packaged a way which is definitively not so nice. It's a pain.

Good news is renaming on such old series is quite smooth. Once you have imported your project, have a try to rename it doing project entry root selection within your Project Explorer view. "Rename" contextual menu is doing the job.

0693W000005AiUZQA0.jpgHere i've x2 F1 projects imported from examples.

Clark Sann
Associate III
November 8, 2020

Yes, that is what I did. It appears the rename is successful. But when I clean and build, it won't build. Does yours build ok?

Clark Sann
Associate III
November 8, 2020

I have just discovered that trying to rename the project screwed up the project in the repository. Once you attempt a rename, the project cannot be built and deleting the project and importing again does not work because the repository itself was changed. There are a bunch of hidden files that probably need to be deleted. Rather than try that I will delete my F1 MCU package and reinstall it.

In case anyone from STM is monitoring this, when you install a MCU pack on MacOS, the progress dialog box is not given focus so it is hidden behind several other windows. This make it difficult to know that something is actually happening.

Cartu38 OpenDev
Graduate II
November 8, 2020

Please proceed renaming thru UI as shared above. Renaming from file system is doable but need to takes care to some metadata.

I confirm some "on top" dialog issues ... not so nice.