cancel
Showing results for 
Search instead for 
Did you mean: 

Import CubeIDE FW Example into workspace folder

Marinus
Visitor

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 REPLY 1
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".