STM32CubeIDE compiles main() from the Core folder instead of my user folder.
STM32CubeIDE project skeleton generated, I stuffed main.c (between USER CODE BEGIN/ENDs) with my code. Project is built successfully. When I start debug, it downloads into my custom board through STLink, then stops at an initial breakpoint at HAL_Init(). The only problem, it is not in my main.c, but it loads original empty Project\Core\Src\main.c instead of my Project\Src\main.c. When debug started, only Project/Scr/main.c is opened in editor. When debug stops at HAL_Init() breakpoint, it loads Project/Core/Scr/main.c to a different editor tab. It seems the main() is compiled and linked from the Core folder instead of my user folder. Where to find the setting to avoid this?