Skip to main content
maelli
Associate
March 23, 2020
Solved

How do I import an example project from stm32cube_fw_l4 into the STM32Cube IDE?

  • March 23, 2020
  • 3 replies
  • 5678 views

I tried: import/general/existing projects from workspace, then

choose nucleo-l452re/examples/gpio/pgio_iotoggle,

I get the whole file structure, get my main.c, see the file, however, the "hammer" is greyed out. Cannot be built.

What is wrong with these examples?

(b.t.w. building my own littlle projects with cube-mx works like a charm)0693W000000UXiwQAG.png

Best answer by Cartu38 OpenDev

See my comment to post https://community.st.com/s/question/0D53W000000YdBNSA0/stm32cubeide-build-problem

Just in case let's share back. My post is WB serie related but same applies to all. Your main issue is most probably not relying on proper feature and/or not promoting correct path (you have to promote up to IDE's project folder path not example root folder).

If only SW4STM32 examples available for some device(s) STM32CubeIDE is fully supporting SW4STM32 projects.

Please enjoy your WB BLE example ... only requires 3 steps ...

0693W000000UKcjQAG.png0693W000000UKd8QAG.png0693W000000UKdDQAW.png

3 replies

Cartu38 OpenDev
Cartu38 OpenDevBest answer
Graduate II
March 23, 2020

See my comment to post https://community.st.com/s/question/0D53W000000YdBNSA0/stm32cubeide-build-problem

Just in case let's share back. My post is WB serie related but same applies to all. Your main issue is most probably not relying on proper feature and/or not promoting correct path (you have to promote up to IDE's project folder path not example root folder).

If only SW4STM32 examples available for some device(s) STM32CubeIDE is fully supporting SW4STM32 projects.

Please enjoy your WB BLE example ... only requires 3 steps ...

0693W000000UKcjQAG.png0693W000000UKd8QAG.png0693W000000UKdDQAW.png

Associate
June 22, 2024

Hello Cartu38,
How do I import when there is no SW4STM32 folder in the project folder?
Please help.Screenshot 2024-06-22 112556.png

Peter BENSCH
Technical Moderator
July 5, 2024

As mentioned here - IAR projects you can only import manually.

Regards
/Peter

In order 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.
maelli
maelliAuthor
Associate
March 24, 2020

works a treat!

Thanks a lot for helping me.

maelli
maelliAuthor
Associate
March 29, 2020

sometimes it works, sometimes not: I do:

>import ac6 system workbench for stm32 project

then I get this:

> import as eclipse project

(cannot choose anything)

I click ok and then nothing gets converted.

Then I, deleted the files, try again,  

then it complains:

> Folder already imported

Even though I DELETED the damn thing. (and it is also not on the list).

What a frustrating experience when not even the "delivered examples" work.

I am using: l152 discovery board,  stm32cubeide version 1.3.0, Linux ubuntu 18.04.4 lts.