I created an STM32CubeMX solution targeting a STM32H7 dual core processor. This creates four projects: BSP_CMx and MyProj_CMx.
VisualGDB stuck the STM32CubeMX files in the BSP projects. I put code in the MyProj_ projects. What is the right way to break out of the BSP’s user code? I added source and headers to the MyProj, but I can’t #include them in the USER CODE sections in the BSP. It says “No such file or directory.” VisualGDB seems to recognize this, and the auto header discover stuff pops up when I’m in that file.
So I click “Add to Project Properties…”, and can add it to MyProj_CM7, which solves the error in those source files, but I can’t resolve the error in the BSP_CM7 project. “Add to Project Properties” gives me the option to add the search path to BSP_CM7, but then I get an error from cmake:
” Cannot specify include directories for target “BSP” which is not built by this project.”