cancel
Showing results for 
Search instead for 
Did you mean: 

Complaint: Device Configuration Tool does not respect Resource Configurations / Exclude from Build

CKugl.1
Senior II

I'm using u8g2 as a Git Submodule in an STM32CubeIDE project. It has a "sys" subdirectory that contains 87 main.c files. When I save Device Configuration it opens all 87 files, then Device Configuration Tool vanishes. Exclude from Build doesn't help. Marking the files Hidden in Windows file system doesn't help.

Is this expected behavior? Is there a workaround?

2 REPLIES 2
Markus GIRDLAND
ST Employee

Could you provide a step-by-step guide with some screenshots of how the project is structured and imported? Or even a short screen recording of the process?

I did a quick look through the git project and it seems that there are a bunch of main.c files for each different "example" in the project, so the fact that it finds all 87 would probably be expected behavior, but it would help to get a more clear picture of the process.

CKugl.1
Senior II

Sure.

  • Copy an example CubeIDE project
  • At a command line, change to the project's Core directory:
  • cd STM32CubeIDE/workspace_1.8.0/Cube_FatFs_uSD_DMA_RTOS_U8G2/Core
  • git init
  • git submodule add git@github.com:olikraus/u8g2.git
  • In Project Explorer, Resource Configurations, Exclude from Build:
  1. Core\u8g2\tools
  2. Core\u8g2\sys
  • In Project Explorer, Add/Remove include path...
  1. Core\u8g2\csrc
  • In Device Configuration Tool, top menu, Project, Generate Code
  • Build Project
  • In Device Configuration Tool, top menu, Project, Generate Code

0693W00000Nr7DAQAZ.png