2024-05-15 12:31 AM
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
Solved! Go to Solution.
2024-05-17 02:04 AM
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.
2024-05-15 12:33 AM
2024-05-15 03:13 AM
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
2024-05-15 06:14 AM
Hello,
That's strange.
If you go to the Preprocessor menu, you need to find the flag _GUI_INTERFACE:
I've cloned the project and the define is there.. could you please check in your Preprocessor config?
2024-05-16 06:19 AM
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
2024-05-16 10:23 PM
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?
2024-05-17 01:16 AM
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
2024-05-17 02:04 AM
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.
2024-05-17 02:43 AM
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: