Generated Dual-Core CMake project Path typo
Hello,
I've generated code for a dual cure MCU (stm32H755) and tried to build the project (on a unix system). However, I get an error in `mx-generated.cmake` indicating that the startup file cannot be found. I tracked down the issue to the directory for the startup `.s` file being in `startup` all lowercase, while the CMake expects `Startup` (capital S).
Here's an example:
target_sources(${CMAKE_PROJECT_NAME} PRIVATE
./Src/main.c
./Src/stm32h7xx_it.c
./Src/stm32h7xx_hal_msp.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c
../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c
../Common/Src/system_stm32h7xx_dualcore_boot_cm4_cm7.c
./Src/sysmem.c
./Src/syscalls.c
./Startup/startup_stm32h755xx_CM4.s
)
Based on the convention set by the other directories (Drivers, Src, etc.), the the path should start with a capital letter, so the generated startup file should be placed in a different directory, and the generated CMake should not be changed.
I can easily make this change manually, but since this file is generated, I'd rather not have to modify it
