STM32CubeMX 6.3.0 -> 6.4.0 migration, some sources missing in C_SOURCES list of the generated makefile
I migrated an STM32F401 project from CubeMX 6.3.0 to CubeMX 6.4.0 (on a Windows 10 machine),
Now, after the migration, I see that some files are missing in the C_SOURCES list in my customized makefile.
All files of the following paths are missing, respectively have been removed by CubeMX 6.4.0 from the previous (working) makefile.
Drivers/STM32F4xx_HAL_Driver/Src/...
Middlewares/Third_Party/FreeRTOS/Source/...
I did a lot of such makefile project migrations in the past, starting from STM32CubeMx 4.x, and I never experienced such a problem till now. (I experienced other issues like CubeMX not correctly initializing variable "uwTickPrio", but that are different stories...)
I also see changes in the generated .mxproject file (by CubeMX 6.4.0), that could be a hint about what's going on here.
1.) There are now backslashes in the paths instead of forward slashes(?)
2.) The HeaderPath and the SourcePath became relative instead of absolute.
excerpt of .mxproject file by CubeMX 6.3.0 (before migration):
[PreviousLibFiles]
LibFiles=Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h
....
[PreviousGenFiles]
HeaderPath=D:/arm-projects/vz_head5/Inc
HeaderFiles=FreeRTOSConfig.h;stm32f4xx_it.h;stm32f4xx_hal_conf.h;main.h;
SourcePath=D:/arm-projects/vz_head5/Src
SourceFiles=freertos.c;stm32f4xx_it.c;stm32f4xx_ ...excerpt of .mxproject file by CubeMX 6.4.0 (after migration):
[PreviousLibFiles]
LibFiles=Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_adc.h;
....
[PreviousGenFiles]
HeaderPath=..\Inc
HeaderFiles=FreeRTOSConfig.h;stm32f4xx_it.h;stm32f4xx_hal_conf.h;main.h;
SourcePath=..\Src
SourceFiles=freertos.c;stm32f4xx_it.c;stm32f4xx_hal_msp.c;stm32f4xx_hal_timebase_tim.c;main.c;I don't know if I missed something when migrating from CubeMX 6.3.0 to 6.4.0, but my makefile is definitely broken after the migration.
Glad to have a working versioning system to quickly and easily revert the changes. :grinning_face_with_sweat:
Would be interesting if someone made a similar experience or knows more about what's going on here.
Thanks in advance and have a nice day!
