I have a STM32CubeMX VisualGDB project set up for a STM32F407 eval board using the GNUARM toolchain. I have set up the STM32CubeMX configuration and the ioc file is saved in the same directory as the CMakeLists.txt file, but the ‘find_bsp’ function does not appear to be working correctly. I get a CMake error ‘include could not find load file: ../build/VisualGDB/Debug/BSP.cmake’, even though the find_bsp functiuon seems to be pointing at the ioc file. STM32 Devices 2020.10 is installed.
Please make sure you use the new STM32CubeMX Project Wizard as shown in this tutorial. It will setup the necessary files automatically. If it still doesn’t work, please attach the screenshots of all the wizard steps in your setup, as well as any error messages, and we will help you understand what is going on.
Looks like you have created a project in a directory that contains spaces in path (VisualGDB’s project wizards do warn about it). Please use a directory without spaces instead and everything will work out-of-the-box.