Question
CubeIDE updated to 1.12.1 and bunch of errors generated
I recently updated CubeIDE from 1.12.0 to 1.12.1 and it requires regenerating code from CubeMX 6.8.1
After generating the code I see bunch of errors like below.
I tried clean and build the project but no success.
Is this known bug for 1.12.1?
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_OC_Start_DMA':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1047: multiple definition of `HAL_TIM_OC_Start_DMA'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1047: first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `TIM_DMADelayPulseHalfCplt':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:6561: multiple definition of `TIM_DMADelayPulseHalfCplt'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:6561: first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_OC_Stop_DMA':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1210: multiple definition of `HAL_TIM_OC_Stop_DMA'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1210: first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_Init':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1315: multiple definition of `HAL_TIM_PWM_Init'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1315: first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_DeInit':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1376: multiple definition of `HAL_TIM_PWM_DeInit'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1376: first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_Start':
stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Start+0x0): multiple definition of `HAL_TIM_PWM_Start'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Start+0x0): first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_Stop':
stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Stop+0x0): multiple definition of `HAL_TIM_PWM_Stop'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Stop+0x0): first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_Start_IT':
stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Start_IT+0x0): multiple definition of `HAL_TIM_PWM_Start_IT'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Start_IT+0x0): first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_Stop_IT':
stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Stop_IT+0x0): multiple definition of `HAL_TIM_PWM_Stop_IT'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Stop_IT+0x0): first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_Start_DMA':
stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Start_DMA+0x0): multiple definition of `HAL_TIM_PWM_Start_DMA'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Start_DMA+0x0): first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_PWM_Stop_DMA':
stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Stop_DMA+0x0): multiple definition of `HAL_TIM_PWM_Stop_DMA'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:stm32f4xx_hal_tim.c:(.text.HAL_TIM_PWM_Stop_DMA+0x0): first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_IC_Init':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1977: multiple definition of `HAL_TIM_IC_Init'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:1977: first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_IC_DeInit':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:2038: multiple definition of `HAL_TIM_IC_DeInit'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:2038: first defined here
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o: in function `HAL_TIM_IC_Start':
project_folder//Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:2113: multiple definition of `HAL_TIM_IC_Start'; ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o:project_folder//Debug/../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:2113: first defined here