Difficulty porting Keil to CubeIDE, can't add a file
I have a STM32G431 project that was originally created with STM32CubeMX using HAL drivers. I need to port some of this code to another project that was originally built by CubeMX using LL Drivers by another engineer.
The specific problem I have is my initialization of Timer4 is not working in the new project.
I have narrowed this down to stm32g4xx_hal_msp.c is not in my IDE project. This causes __WEAK version of HAL_MspInit() to be called that does nothing, instead of my modified version in stm32g4xx_hal_msp.c.
When I try to add the file to my project using "import"->"General"->"File-System" and selecting the src directory and Application/User as the destination it shows up in the project listing but is greyed out with a line through the icon.
I can click on the file name and it opens but I can intentionally add code errors and the project builds with 0 errors, so the file is not being added to the build list. I've tried refresh and I've tried closing the project and reopening. The results are the same, it is not being build.
Thanks,
Brian
