cancel
Showing results for 
Search instead for 
Did you mean: 

The build button is greyed

ksale.1
Senior

0693W00000KZkHNQA1.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
mattias norlander
ST Employee

Looking at the screenshot I think this project was incorrectly created or imported.

The Core/Src folders has no "purple c" decoration. Consequently compiler will not look for source code here.

What do I mean with "purple c decoration"? Look at the image below:

0693W00000Ka7ZkQAJ.png

  • Core and Drivers folders are set as source folders. They have purple c in the icon.
    • All sub-folders of a source folder are also included in the build scan.
    • All c-files inside a source folder tree get a different icon vs files that will not be build. Compare the icon for main.c in my screenshot vs yours.
  • Debug is not a configured source folder, since it only contains the artifacts from the build process.

It appears that not a single folder in your project is treated as source folder.

Then there is nothing to build. Why did this happen?

Well the project is either not create or not imported correctly? Maybe the .cproject file is missing in the project root and the project is then not a CDT project, but only a normal Eclipse folder.

It also seem like this is an H7 dual-core project you are playing with. There should be a top-level project called only "khV3". You only seem to have the part for the CM4 and the CM7. Not the top-level one... I recommend you read the app note on H7 dual-core dev in CubeIDE to get started properly:

https://www.st.com/resource/en/application_note/an5361-getting-started-with-projects-based-on-dualcore-stm32h7-microcontrollers-in-stm32cubeide-stmicroelectronics.pdf

View solution in original post

3 REPLIES 3
mattias norlander
ST Employee

Looking at the screenshot I think this project was incorrectly created or imported.

The Core/Src folders has no "purple c" decoration. Consequently compiler will not look for source code here.

What do I mean with "purple c decoration"? Look at the image below:

0693W00000Ka7ZkQAJ.png

  • Core and Drivers folders are set as source folders. They have purple c in the icon.
    • All sub-folders of a source folder are also included in the build scan.
    • All c-files inside a source folder tree get a different icon vs files that will not be build. Compare the icon for main.c in my screenshot vs yours.
  • Debug is not a configured source folder, since it only contains the artifacts from the build process.

It appears that not a single folder in your project is treated as source folder.

Then there is nothing to build. Why did this happen?

Well the project is either not create or not imported correctly? Maybe the .cproject file is missing in the project root and the project is then not a CDT project, but only a normal Eclipse folder.

It also seem like this is an H7 dual-core project you are playing with. There should be a top-level project called only "khV3". You only seem to have the part for the CM4 and the CM7. Not the top-level one... I recommend you read the app note on H7 dual-core dev in CubeIDE to get started properly:

https://www.st.com/resource/en/application_note/an5361-getting-started-with-projects-based-on-dualcore-stm32h7-microcontrollers-in-stm32cubeide-stmicroelectronics.pdf

mattias norlander
ST Employee

Did this solve your problem?

ksale.1
Senior

Thank you @mattias norlander​ well noted. When I started the project from within the CubeIDE (not from CubeMX) things were sorted out and the project tree as described in your answer above.