cancel
Showing results for 
Search instead for 
Did you mean: 

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

Clark Sann
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

13 REPLIES 13
Cartu38 OpenDev
Lead II

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
Senior

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.

Clark Sann
Senior

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.

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.

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.

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?

Yes clean then build is ok.

Mine doesn't. See if you can see what I am doing differently...

0693W000005AicTQAS.png0693W000005AidHQAS.png 

I selected the project, then rename, than I changed the project name. It appeared to work. But when I build it can't find main.c and make all failed. We must be doing something different when we rename....

Thank you again for helping me. With your help, I am making progress!!!

Sounds weird to have lost sources. Such explain build failure but why resources move away ?

Could you share result of right click on main.c file within project tree view asking for properties ?