cancel
Showing results for 
Search instead for 
Did you mean: 

Import CubeIDE FW Example into workspace folder

Marinus
Associate

Hello All

I'm working in STMCubeIDE 2.0.0 Windows.

I have downloaded STM32Cube_FW_F4_V1.28.0 package and saved it here: C:\Users\marin\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0

I want to use an example and build a project from the example.

This LCD example: C:\Users\marin\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Projects\STM32F429I-Discovery\Applications\Display\LTDC_Paint.

I don't want to change the original example code, I want to put the example into a new folder and do my changes there.

I saw using "Copy to workspace" when importing is a mess and don't compile:  No rule to make target 'C:/Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c'

 

Do I have to copy the whole directory to a new location?  C:\Users\marin\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Projects\STM32F429I-Discovery\Applications\Display\LTDC_Paint.

 

Please show me a way to copy the example code (Only LTDC_Paint project) to a new location and successfully compile.

 

Marinus

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello TDK

The Example I use LTDC_Paint is not a MX made project, I was hoping there is a way to import the project into workspace, so that a copy of the project will actually reside under workspace 2.0.0 folder.

 

When I import a project, I tried selecting "Copy to workspace", but this project then does not want to build, I think a lot of middleware is not copied.

 

I then resort to keeping a copy of the project inside STM32Cube_FW_F4_V1.28.0 itself.

  • By Copy and paste LTDC_Paint folder, and rename to MyProject.
  • Then open .project and rename the project name to MyProject.
  • Then Delere the Debug & Release folders and delete .launch file
  • I then Rebuild the Debug and the Release.
  • Set the Run and Debug Configurations and all is good.

 

Not sure if this is the right way, but it works.

 

Marinus

View solution in original post

2 REPLIES 2
TDK
Super User

Either:

  • Use the Example Selector in STM32CubeMX to select the example you want to use. It will create it on disk and open it in STM32CubeIDE. This works:
    • TDK_0-1770564982885.png
  • If you have an existing project that you want to copy, copy the entire directory and double click the .project file to open/import it in STM32CubeIDE. This will import it correctly. This also works:
    • TDK_1-1770565075319.png

       

If you feel a post has answered your question, please click "Accept as Solution".

Hello TDK

The Example I use LTDC_Paint is not a MX made project, I was hoping there is a way to import the project into workspace, so that a copy of the project will actually reside under workspace 2.0.0 folder.

 

When I import a project, I tried selecting "Copy to workspace", but this project then does not want to build, I think a lot of middleware is not copied.

 

I then resort to keeping a copy of the project inside STM32Cube_FW_F4_V1.28.0 itself.

  • By Copy and paste LTDC_Paint folder, and rename to MyProject.
  • Then open .project and rename the project name to MyProject.
  • Then Delere the Debug & Release folders and delete .launch file
  • I then Rebuild the Debug and the Release.
  • Set the Run and Debug Configurations and all is good.

 

Not sure if this is the right way, but it works.

 

Marinus