cancel
Showing results for 
Search instead for 
Did you mean: 

building cloned project

NITHIN
Associate III

Hi Team,

I've recently cloned https://github.com/STMicroelectronics/STM32CubeL5/tree/master/Projects/STM32L562E-DK/Applications/USB-PD/USB-PD_Consumer_1port , for USB PD project.

But when i imported the folder into workspace ,the build option is disabled in the cube ide. I also tried updating the IDE, but the problem remains same.

how to build that file system?

Thanks in advance

Nithin

1 ACCEPTED SOLUTION

Accepted Solutions

Recursively clone

git clone --recursive https://github.com/STMicroelectronics/STM32CubeL5.git

or if you forgot to recursively clone:

git submodule update --init --recursive
click refresh in STM32CubeIDE if you already opened the project

Open the project:

File
Open Projects from File System
Directory
"<YOUR_DIRECTORY>\STM32CubeL5\Projects\STM32L562E-DK\Applications\USB-PD\USB-PD_Consumer_1port\STM32CubeIDE"

Then click on any folder or source file inside the project in the Project Explorer and then the build button is enabled.

unsigned_char_array_0-1715936191224.png

 

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

View solution in original post

8 REPLIES 8
NITHIN
Associate III

Screenshot 2024-05-15 130230.png

Peter BENSCH
ST Employee

You have cloned a project from the repository that has many internal references to library functions within the STM32L5 firmware package. If you download the whole STM32L5 firmware package (via Github or here) and import the project directly from it, you should be able to compile.

Hope that helps?
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.

Hello,

That's strange.

If you go to the Preprocessor menu, you need to find the flag _GUI_INTERFACE:

SofLit_0-1715778782383.png

I've cloned the project and the define is there.. could you please check in your Preprocessor config? 

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.
Nicolas P.
ST Employee

Hello @NITHIN 

Have you cloned the repo using recursive option ?

see main L5 page:

    Important :

    This repository has been created using the git submodule command. Please refer to the "How to use" section for more details.

 

regards,

Nicolas

Hi @Nicolas P. , @Peter BENSCH , @SofLit ,

I've cloned this repository using recursive option and i directly imported the project file "USB-PD_Consumer_1port" only , from "D:\USB_PD\project_1\STM32CubeL5\Projects\STM32L562E-DK\Applications\USB-PD\USB-PD_Consumer_1port"

but i can't build the project ,as the build option is disabled, but I'm able to build other  projects in my ide.

other projects are opening as stm32 project and this one is opening as just a file system, is that the reason?

 

Screenshot 2024-05-17 105125.png

Nicolas P.
ST Employee

Hello @NITHIN 

From the picture it seems you opened the .ioc file. Am I right ?

We wouldn't see the EWARM, MDK-ARM directories because useless when using CubeIDE.

I'm using CubeIDE 1.15.1, and opening the file : STM32CubeL5\Projects\STM32L562E-DK\Applications\USB-PD\USB-PD_Consumer_1port\STM32CubeIDE\.cproject opens the project without issue.

I have no issue compiling too.

Regards,

Nicolas

Recursively clone

git clone --recursive https://github.com/STMicroelectronics/STM32CubeL5.git

or if you forgot to recursively clone:

git submodule update --init --recursive
click refresh in STM32CubeIDE if you already opened the project

Open the project:

File
Open Projects from File System
Directory
"<YOUR_DIRECTORY>\STM32CubeL5\Projects\STM32L562E-DK\Applications\USB-PD\USB-PD_Consumer_1port\STM32CubeIDE"

Then click on any folder or source file inside the project in the Project Explorer and then the build button is enabled.

unsigned_char_array_0-1715936191224.png

 

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
NITHIN
Associate III

Hi @unsigned_char_array  and @Nicolas P. ,

thank you for your guidance....

all the problems are solved and the program built perfectly

Thank you

best regards

NITHIN :raising_hands: