CubeMX produces missing libraries on Nucleo H755 (CubeIDE2.2.0 - CubeMX6.18.0)
Hi,
I have been using the H755 Nucleo board for some time and always struggled with the firmware/libraries. To make matters worse, there are no examples for this board.
I was using CubeIde 1.15 and decided to upgrade to 2.2.0 to see if the libraries handling improved. I started an empty project with the BSP included and added a simple code on CM7 to blink some leds with a HAL_Delay(), and it worked fine. Later I only added a timer (TIM1) on CubeMX, regenerated the code and now the CM4 does not compile. There is and never was any code added/modified to this core.
The errors I get are related to the inclusion of libraries:
arm-none-eabi-gcc -o "AFE16_Burn-in_Controller_CM4.elf" @"objects.list" -mcpu=cortex-m4 -T"C:\Users\rafael.puyol\Documents\Reliability\afe16_burn-in_controller\AFE16_Burn-in_Controller\CM4\STM32H755ZITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="AFE16_Burn-in_Controller_CM4.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/main.o: in function `main':
C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:86:(.text.main+0x26): undefined reference to `HAL_HSEM_ActivateNotification'
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: (HAL_HSEM_ActivateNotification): Unknown destination type (ARM/Thumb) in ./Core/Src/main.o
C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:86:(.text.main+0x26): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:91:(.text.main+0x2a): undefined reference to `HAL_PWREx_ClearPendingEvent'
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: (HAL_PWREx_ClearPendingEvent): Unknown destination type (ARM/Thumb) in ./Core/Src/main.o
C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:91:(.text.main+0x2a): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:92:(.text.main+0x34): undefined reference to `HAL_PWREx_EnterSTOPMode'
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: (HAL_PWREx_EnterSTOPMode): Unknown destination type (ARM/Thumb) in ./Core/Src/main.o
C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:92:(.text.main+0x34): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:101:(.text.main+0x66): undefined reference to `HAL_Init'
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: (HAL_Init): Unknown destination type (ARM/Thumb) in ./Core/Src/main.o
C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/main.c:101:(.text.main+0x66): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/stm32h7xx_it.o: in function `SysTick_Handler':
C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/stm32h7xx_it.c:188:(.text.SysTick_Handler+0x4): undefined reference to `HAL_IncTick'
C:/ST/STM32CubeIDE_2.2.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: (HAL_IncTick): Unknown destination type (ARM/Thumb) in ./Core/Src/stm32h7xx_it.o
C:/Users/rafael.puyol/Documents/Reliability/afe16_burn-in_controller/AFE16_Burn-in_Controller/CM4/Debug/../Core/Src/stm32h7xx_it.c:188:(.text.SysTick_Handler+0x4): dangerous relocation: unsupported relocation
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:64: AFE16_Burn-in_Controller_CM4.elf] Error 1
"make -j20 all" terminated with exit code 2. Build might be incomplete.
Does anybody know If I should include something else by hand? Why the MX is not able to solve this?
Thanks,
Rafael
