PlatformIO on CLion for STM32Cube

Actually, I looked at the diffs for H745 and H755, in both their CMSIS device header files and startup files – they barely differ at all. There’s only a slight difference in the Crypto / Hash / RNG perpiheral. Every other peripheral is in the same place. Addresses for RAM / Flash are also the same in the linker script. So, the non-working of this is inexplicable to me right now.

Can you clone this project

and then start debugging. The debugger should halt in the first instruction of the Reset_Handler.

Carefully use the “Step Into”, “Step over” and “Run” buttons to check if the code recahes the here marked points, or whether it crashes and ends up in the Hardfault_Handler.

Hi Max and thanks for your help. Yes, the H745 and H755 are almost identical, i picked the 45 cos the 55 isn’t officially supported by platformio.

Now, I tried to get your linked project to work but I couldn’t.

Can you tell me the exact steps, please?

The only thing I managed to do is build, debugger doesn’t attach and upload fails, just like the previous examples.

Thanks.

PS: it works fine with STM32CubeMX, can upload, debug etc

Log for upload:

pio run -t upload -e nucleo_h755zi_q
Processing nucleo_h755zi_q (platform: ststm32; board: nucleo_h755zi_q; framework: stm32cube)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/nucleo_h755zi_q.html
PLATFORM: ST STM32 (17.6.0) > ST Nucleo H755ZI-Q
HARDWARE: STM32H755ZIT6 480MHz, 512KB RAM, 1MB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, cmsis-dap, jlink)
PACKAGES:
 - framework-stm32cubeh7 @ 1.9.0
 - tool-dfuutil @ 1.11.0
 - tool-dfuutil-arduino @ 1.11.0
 - tool-ldscripts-ststm32 @ 0.2.0
 - tool-openocd @ 3.1200.0 (12.0)
 - tool-stm32duino @ 1.0.2
 - toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 55 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Linking .pio\build\nucleo_h755zi_q\firmware.elf
Checking size .pio\build\nucleo_h755zi_q\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.0% (used 48 bytes from 524288 bytes)
Flash: [          ]   0.3% (used 3076 bytes from 1048576 bytes)
Configuring upload protocol...
AVAILABLE: blackmagic, cmsis-dap, jlink, mbed, stlink
CURRENT: upload_protocol = stlink
Uploading .pio\build\nucleo_h755zi_q\firmware.elf
xPack Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64-dirty (2023-01-30-15:04)
Licensed under GNU GPL v2


For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

srst_only separate srst_nogate srst_open_drain connect_deassert_srst

[stm32h7x.cpu0] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000e34 msp: 0x24080000
[stm32h7x.cpu1] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Warn : Adding extra erase range, 0x08000ec0 .. 0x0801ffff
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
Error: [stm32h7x.cpu1] clearing lockup after double fault
[stm32h7x.cpu0] halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x08000898 msp: 0x2407ffd0
[stm32h7x.cpu1] halted due to debug-request, current mode: Handler HardFault
xPSR: 0x01000003 pc: 0xfffffffe msp: 0xffffffd8
shutdown command invoked
========================================================================================================================================= [SUCCESS] Took 5.31 seconds

Log for debug:

Preparing firmware for debugging...
Processing nucleo_h755zi_q (platform: ststm32; board: nucleo_h755zi_q; framework: stm32cube)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/nucleo_h755zi_q.html
PLATFORM: ST STM32 (17.6.0) > ST Nucleo H755ZI-Q
HARDWARE: STM32H755ZIT6 480MHz, 512KB RAM, 1MB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, cmsis-dap, jlink)
PACKAGES: 
 - framework-stm32cubeh7 @ 1.9.0 
 - tool-ldscripts-ststm32 @ 0.2.0 
 - toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 55 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_adc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_adc_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_cec.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_comp.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_cordic.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_cortex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_crc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_crc_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_cryp.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_cryp_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dac.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dac_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dcmi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dfsdm.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dfsdm_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dma.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dma2d.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dma_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dsi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_dts.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_eth.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_eth_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_exti.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_fdcan.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_flash.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_flash_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_fmac.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_gfxmmu.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_gpio.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_hash.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_hash_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_hcd.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_hrtim.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_hsem.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_i2c.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_i2c_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_i2s.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_i2s_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_irda.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_iwdg.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_jpeg.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_lptim.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_ltdc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_ltdc_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_mdios.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_mdma.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_mmc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_mmc_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_nand.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_nor.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_opamp.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_opamp_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_ospi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_otfdec.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_pcd.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_pcd_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_pssi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_pwr.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_pwr_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_qspi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_ramecc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_rcc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_rcc_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_rng.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_rng_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_rtc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_rtc_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_sai.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_sai_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_sd.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_sd_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_sdram.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_smartcard.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_smartcard_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_smbus.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_spdifrx.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_spi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_spi_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_sram.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_swpmi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_tim.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_tim_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_uart.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_uart_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_usart.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_usart_ex.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_hal_wwdg.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_adc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_bdma.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_comp.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_cordic.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_crc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_crs.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_dac.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_delayblock.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_dma.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_dma2d.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_exti.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_fmac.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_fmc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_gpio.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_hrtim.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_i2c.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_lptim.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_lpuart.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_mdma.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_opamp.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_pwr.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_rcc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_rng.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_rtc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_sdmmc.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_spi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_swpmi.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_tim.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_usart.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_usb.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkHALDriver\Src\stm32h7xx_ll_utils.o
Compiling .pio\build\nucleo_h755zi_q\src\main.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkCMSISDevice\gcc\startup_stm32h755xx.o
Compiling .pio\build\nucleo_h755zi_q\FrameworkCMSISDevice\system_stm32h7xx.o
Archiving .pio\build\nucleo_h755zi_q\libFrameworkCMSISDevice.a
Linking .pio\build\nucleo_h755zi_q\firmware.elf
Checking size .pio\build\nucleo_h755zi_q\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.0% (used 48 bytes from 524288 bytes)
Flash: [          ]   0.3% (used 3312 bytes from 1048576 bytes)
========================= [SUCCESS] Took 8.58 seconds =========================
Reading symbols from C:\Users\giliw\Downloads\pio-nucleo-h755-test-main\pio-nucleo-h755-test-main\.pio\build\nucleo_h755zi_q\firmware.elf...done.
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = stlink
PlatformIO: Initializing remote target...
xPack Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64-dirty (2023-01-30-15:04)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst

Info : tcl server disabled
Info : telnet server disabled
Info : STLINK V3J15M7 (API v3) VID:PID 0483:374E
Info : Target voltage: 3.280851
Info : Unable to match requested speed 1800 kHz, using 1000 kHz
Info : Unable to match requested speed 1800 kHz, using 1000 kHz
Info : clock speed 1000 kHz
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x6ba02477
Info : [stm32h7x.cpu0] Cortex-M7 r1p1 processor detected
Info : [stm32h7x.cpu0] target has 8 breakpoints, 4 watchpoints
Info : [stm32h7x.cpu1] Cortex-M4 r0p1 processor detected
Info : [stm32h7x.cpu1] target has 6 breakpoints, 4 watchpoints
Info : gdb port disabled
Info : starting gdb server for stm32h7x.cpu0 on pipe
Info : starting gdb server for stm32h7x.cpu1 on pipe
Info : accepting 'gdb' connection from pipe
Info : Device: STM32H74x/75x
Info : flash size probed value 2048k
Info : STM32H7 flash has dual banks
Info : Bank (0) size is 1024 kb, base address is 0x08000000
Info : Device: STM32H74x/75x
Info : flash size probed value 2048k
Info : STM32H7 flash has dual banks
Info : Bank (1) size is 1024 kb, base address is 0x08100000
Info : New GDB Connection: 1, Target stm32h7x.cpu0, state: halted
Info : accepting 'gdb' connection from pipe
Info : Device: STM32H74x/75x
Warn : stm32h7x.cpu1 cannot read the flash size register
Info : assuming 2048k flash
Info : STM32H7 flash has dual banks
Info : Bank (2) size is 1024 kb, base address is 0x08000000
Info : Device: STM32H74x/75x
Warn : stm32h7x.cpu1 cannot read the flash size register
Info : assuming 2048k flash
Info : STM32H7 flash has dual banks
Info : Bank (3) size is 1024 kb, base address is 0x08100000
Info : New GDB Connection: 2, Target stm32h7x.cpu1, state: halted
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
undefined debug reason 8 - target needs reset
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: Failed to read memory at 0xfffffffe
Error: GDB missing ack(2) - assumed good
Error: Failed to read memory at 0xfffffffe
0xfffffffe in ?? ()
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
[stm32h7x.cpu0] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000d54 msp: 0x24080000
[stm32h7x.cpu1] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1020 ms). Workaround: increase "set remotetimeout" in GDB
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
Info : Padding image section 0 at 0x08000f90 with 16 bytes (bank write end alignment)
[stm32h7x.cpu0] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000e34 msp: 0x24080000
[stm32h7x.cpu1] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Error: GDB missing ack(2) - assumed good
Error: GDB missing ack(2) - assumed good
[stm32h7x.cpu0] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000e34 msp: 0x24080000
[stm32h7x.cpu0] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000e34 msp: 0x24080000