cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link v2 connection to STM32H723ZG

itxs
Associate II

Hello, I just got my PCB+A from factory, and have some trouble with it when attempt to connect to stm32h723zg located on my pcb with st-link v2 debugger (latest firmware update) and openOCD v0.10.0. But if I use compiled binaries from https://github.com/stlink-org/stlink, everything is ok (with same wiring, same pcb, etc.), but I dont know how to connect that binaries to my IDE, I think it needs a lot of work.

Here is full verbose debug output from openocd:

https://pastebin.com/rnNm0NgE

Here is short tail from that debug output:

Info : 346 292 server.c:100 add_connection(): accepting 'gdb' connection on tcp/57524
Debug: 347 292 breakpoints.c:383 breakpoint_clear_target_internal(): Delete all breakpoints for target: stm32h7x.cpu0
Debug: 348 292 breakpoints.c:523 watchpoint_clear_target(): Delete all watchpoints for target: stm32h7x.cpu0
Debug: 349 292 target.c:1804 target_call_event_callbacks(): target event 22 (gdb-attach) for core stm32h7x.cpu0
Debug: 350 292 target.c:4849 target_handle_event(): target(0): stm32h7x.cpu0 (hla_target) event: 22 (gdb-attach) action: halt 1000
Debug: 351 292 command.c:146 script_debug(): command - halt 1000
Debug: 353 293 target.c:3239 handle_halt_command(): -
Debug: 354 293 hla_target.c:418 adapter_halt(): adapter_halt
Debug: 355 293 hla_target.c:421 adapter_halt(): target was already halted
Debug: 356 294 hla_target.c:602 adapter_read_memory(): adapter_read_memory 0x5c001000 4 1
Debug: 357 297 target.c:2566 target_read_u32(): address: 0x5c001000, value: 0x10016483
Debug: 358 297 stm32h7x.c:769 stm32x_probe(): device id = 0x10016483
Info : 359 297 stm32h7x.c:781 stm32x_probe(): Device: STM32H72x/73x
Debug: 360 297 stm32h7x.c:793 stm32x_probe(): flash_regs_base: 0x52002000
Debug: 361 297 hla_target.c:602 adapter_read_memory(): adapter_read_memory 0x1ff1e880 2 1
Debug: 362 298 target.c:2590 target_read_u16(): address: 0x1ff1e880, value: 0x0400
Info : 363 298 stm32h7x.c:801 stm32x_probe(): flash size probed value 1024
Info : 364 298 stm32h7x.c:842 stm32x_probe(): STM32H7 flash has a single bank
Info : 365 298 stm32h7x.c:854 stm32x_probe(): Bank (0) size is 1024 kb, base address is 0x08000000
Debug: 366 298 gdb_server.c:1015 gdb_new_connection(): New GDB Connection: 1, Target stm32h7x.cpu0, state: halted
Debug: 367 298 gdb_server.c:3292 gdb_input_inner(): received packet: 'g'
Debug: 368 299 gdb_server.c:1055 gdb_connection_closed(): GDB Close, Target: stm32h7x.cpu0, state: halted, gdb_actual_connections=0
Debug: 369 299 target.c:1804 target_call_event_callbacks(): target event 8 (gdb-end) for core stm32h7x.cpu0
Debug: 370 299 target.c:1804 target_call_event_callbacks(): target event 23 (gdb-detach) for core stm32h7x.cpu0
Debug: 371 299 server.c:609 sig_handler(): Terminating on Signal 21
Info : 372 299 server.c:576 server_loop(): dropped 'gdb' connection (error -400)
Debug: 373 299 command.c:146 script_debug(): command - shutdown
User : 375 300 server.c:755 handle_shutdown_command(): shutdown command invoked
Debug: 376 300 target.c:2151 target_free_all_working_areas_restore(): freeing all working areas
Debug: 377 300 hla_interface.c:117 hl_interface_quit(): hl_interface_quit
Debug: 378 300 stlink_usb.c:1323 stlink_usb_exit_mode(): MODE: 0x02

0 REPLIES 0