cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE Debug Launch Stuck at 51% (Affects Multiple Boards, Multiple Users)

Screenshot 2025-09-15 143546.png

Dear STMicroelectronics Support Team,

I am writing to report a persistent issue with STM32CubeIDE that is affecting multiple users in our company and blocking our development work.

Issue Description:

When we try to debug any STM32 project, the debugger launch process gets stuck at 51% with the message:

Launching: Initializing debugger services

The issue occurs with different versions of STM32CubeIDE and with multiple target boards.

Steps to Reproduce:

Open STM32CubeIDE and build the project (build succeeds).

Click Debug.

Debugger launch stops at 51% and does not proceed further.

Environment Details:

STM32CubeIDE Versions Tested: 1.9.0 and 1.13.2 (same result)

Operating System: [Windows 10 / Windows 11]

Target Boards Tested:

STM32F429I-DISC1

STM32F407-DISC

ST-LINK Firmware: [if known, mention version]

Actions Taken:

Reinstalled STM32CubeIDE (both versions).

Reinstalled ST-LINK USB drivers.

Verified ST-LINK is detected correctly in Device Manager.

Tried on multiple PCs within our company — all systems show the same behavior.

Despite these actions, the issue persists on all systems and boards.

I have attached a screenshot of the IDE progress bar stuck at 51% for reference.
Could you please investigate this issue and suggest a solution or provide a patch/update if this is a known problem?

This issue is affecting multiple developers in our company, so an urgent resolution would be greatly appreciated.

24 REPLIES 24

still, I am facing same issue my stm32cube-ide not working I uploaded my logfile below check that

rbtmkr42
Associate III

@Souhaib MAZHOUD I have the same issue.  My project is for a NUCLEO-H7S3L8, using an external memory loader to load the application into external FLASH, and bootloader in internal flash.  Based off the ethernet projects here .  We have been programming and testing this code for months, and then all of a sudden I was unable to debug today.

One thought that may not have been addressed in this thread is that the port to talk to GDB may be blocked.  However, I don't see the `arm-none-eabi-gdb` executable running at all.  Or perhaps local antivirus software is preventing it from running?

Unfortunately, this means my project is dead in the water until we can resolve this.  Please escalate, if possible.

 

Here is a co-worker's build output, which is "good":

working.png

Here is MY build output that is "bad". I cannot get the "terminated with code -1" to go away:

broken.png

Your build has not completed successfully, this is why debugging step won't start.

To understand why build fails, please remove temporary -j28 to run only one command at once. See which one fails.

 

I disabled parallel build, but exit code -1 still occurs, see below. Any other ideas? I'm running STM32CubeIDE version 2.0.0.  Perhaps I'll go back to 1.18 or 1.16

rbtmkr42_0-1765810237882.png

rbtmkr42_1-1765810255293.png

 

Ok, so I uninstalled all STMicro applications, then blew away everything on my hard drive that was related to STMicro (Cube IDE, Cube MX, programmer), removed environment variables, and even went through the Windows registry.  I deleted my CubeIDE workspace.  Then rebooted...

Installed CubeMX and CubeIDE again, created a brand new `test` project, attempted to compile and run, and got the same result - launch hangs at 51%, after the build indicates that make terminated with exit code -1.

See the build log below, with parallel compiles disabled:

10:00:50 **** Build of configuration Debug for project test_Appli ****
make all
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_cortex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_cortex.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_cortex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_cortex.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_dma.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_dma.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_dma.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_dma.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_dma_ex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_dma_ex.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_dma_ex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_dma_ex.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_exti.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_exti.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_exti.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_exti.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_flash.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_flash.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_flash.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_flash.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_flash_ex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_flash_ex.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_flash_ex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_flash_ex.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_gpio.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_gpio.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_gpio.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_gpio.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_pwr.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_pwr.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_pwr.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_pwr.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_pwr_ex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_pwr_ex.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_pwr_ex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_pwr_ex.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_rcc.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_rcc.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_rcc.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_rcc.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_rcc_ex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_rcc_ex.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_rcc_ex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_rcc_ex.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_uart.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_uart.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_uart.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_uart.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_uart_ex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_uart_ex.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_uart_ex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_uart_ex.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_usart.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_usart.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_usart.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_usart.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal_usart_ex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_usart_ex.d" -MT"Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_usart_ex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal_usart_ex.o"
arm-none-eabi-gcc "C:/Libraries/test/Drivers/BSP/STM32H7RSxx_Nucleo/stm32h7rsxx_nucleo.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/BSP/STM32H7xx_Nucleo/stm32h7rsxx_nucleo.d" -MT"Drivers/BSP/STM32H7xx_Nucleo/stm32h7rsxx_nucleo.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/BSP/STM32H7xx_Nucleo/stm32h7rsxx_nucleo.o"
arm-none-eabi-gcc -mcpu=cortex-m7 -g3 -DDEBUG -c -x assembler-with-cpp -MMD -MP -MF"Core/Startup/startup_stm32h7s3l8hx.d" -MT"Core/Startup/startup_stm32h7s3l8hx.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Startup/startup_stm32h7s3l8hx.o" "../Core/Startup/startup_stm32h7s3l8hx.s"
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
arm-none-eabi-gcc "../Core/Src/stm32h7rsxx_hal_msp.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/stm32h7rsxx_hal_msp.d" -MT"Core/Src/stm32h7rsxx_hal_msp.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/stm32h7rsxx_hal_msp.o"
arm-none-eabi-gcc "../Core/Src/stm32h7rsxx_it.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/stm32h7rsxx_it.d" -MT"Core/Src/stm32h7rsxx_it.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/stm32h7rsxx_it.o"
arm-none-eabi-gcc "../Core/Src/syscalls.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/syscalls.d" -MT"Core/Src/syscalls.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/syscalls.o"
arm-none-eabi-gcc "../Core/Src/sysmem.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/sysmem.d" -MT"Core/Src/sysmem.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/sysmem.o"
arm-none-eabi-gcc "../Core/Src/system_stm32h7rsxx.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32H7S3xx -DUSE_NUCLEO_144 -c -I../Core/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc -I../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy -I../../Drivers/BSP/STM32H7RSxx_Nucleo -I../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/system_stm32h7rsxx.d" -MT"Core/Src/system_stm32h7rsxx.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/system_stm32h7rsxx.o"
arm-none-eabi-gcc -o "test_Appli.elf" @"objects.list" -mcpu=cortex-m7 -T"C:\Libraries\test\Appli\STM32H7S3L8HX_ROMxspi2.ld" --specs=nosys.specs -Wl,-Map="test_Appli.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
Finished building target: test_Appli.elf

arm-none-eabi-size test_Appli.elf
text data bss dec hex filename
10600 48 1740 12388 3064 test_Appli.elf
Finished building: default.size.stdout

arm-none-eabi-objdump -h -S test_Appli.elf > "test_Appli.list"
Finished building: test_Appli.list

"make all" terminated with exit code -1. Build might be incomplete.

10:01:55 Build Finished. 0 errors, 0 warnings. (took 1m:4s.855ms)

10:01:59 **** Incremental Build of configuration Debug for project test_Appli ****
make all
arm-none-eabi-size test_Appli.elf
text data bss dec hex filename
10600 48 1740 12388 3064 test_Appli.elf
Finished building: default.size.stdout

"make all" terminated with exit code -1. Build might be incomplete.

10:02:01 Build Finished. 0 errors, 0 warnings. (took 2s.492ms)


TDK
Super User

It's odd that the ELF is generated but exit code -1 is reported. This could be a file system issue, maybe insufficient permissions on something it's trying to generate. Does the ELF and LIST file shown in the log exists on disk?

Windows may be objecting to using C:/Libraries as a project directory instead of something within user directory.

Try creating a workspace under C:\Users\%USERNAME%\Documents and generating the project there and building.

If you feel a post has answered your question, please click "Accept as Solution".
Pavel A.
Super User

Ah, so that is launch of the debugger, not of the IDE. 

As a quick workaround, disable automatic build on launch. Of course, verify that the project has been built successfully and the specified elf file exists.

 

PavelA_0-1765928766374.png

 

Very good ideas.  I tried creating an IOC and project in my user directories, but it's still doing the same thing. Here's a screenshot of the permissions for my user directory:

rbtmkr42_0-1765995588057.png

 

I tried a few times in different subdirectories of my user directory.  It's possible that it could be related to security protections on this PC.

Yes - that's right: launch of the debugger. I tried disabling the auto-build, after generating the ELF file. I also tried taking out some of the steps in the makefile such as "secondary-outputs". Still had the same result. I am likely going to migrate to a different PC soon, since this still isn't working.

> It's possible that it could be related to security protections on this PC.

Very possible as well. The debugger uses some ports for communication. If those are disallowed, it will fail.

If you only build the project, do you still get the same exit code -1 message? Doesn't seem like this is related to debugging to me.

If you feel a post has answered your question, please click "Accept as Solution".