You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble setting up the extension for multicore debugging of the STM32H755ZiQ. I don't think the extension has a bug, I'm more looking for hints on how to debug my issues and adjust the configuration to work correctly...
My reference here is your wiki page regarding multicore debugging and this issue. Debugging the CM7 works just fine, but the attaching the CM4 core crashes the gdb-server immediately.
I saw this statement on your wiki page
If you get Target unknown error 32 on the launch of the second gdbserver, it means the Cortex-M4 did not have time to start the Cortex-M0+.
But unfortunately no hints on how to try to debug this. Would appreciate any pointers on how to debug the issue.
Expected behavior
Launch multi-core debug session
Environment (please complete the following information):
[2024-04-21T16:43:45.402Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.macos64_2.1.100.202310302101/tools/bin/ST-LINK_gdbserver -p 50000 -cp /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.macos64_2.1.100.202311100844/tools/bin --swd --halt -l 1 -m 0 -k -t -s
STMicroelectronics ST-LINK GDB server. Version 7.5.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 50000
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Info : default port : 7184
Info : Remote address: 127.0.0.1
Info : Remote address: 127.0.0.1
Info : STLINKV3 v3J14M5, PID 0x374E
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Error: recv returned 0. Remote side has closed gracefully. Good.
-------------------------------------------------------------------
STM32CubeProgrammer v2.15.0
-------------------------------------------------------------------
Log output file: /tmp/STM32CubeProgrammer_yAYvus.log
ST-Link Server is running on port : 7184
Info : Remote address: 127.0.0.1
Info : STLINKV3 v3J14M5, PID 0x374E
Error: recv returned 0. Remote side has closed gracefully. Good.
Info : Remote address: 127.0.0.1
Info : default port : 7184
Info : Remote address: 127.0.0.1
Info : stlinkserver already running, exit
Info : STLINKV3 v3J14M5, PID 0x374E
ST-LINK SN : 0045004B3532510A31333430
ST-LINK FW : V3J14M5
Info : default port : 7184
Info : Remote address: 127.0.0.1
Info : stlinkserver already running, exit
Board : NUCLEO-H755ZI-Q
Voltage : 3.28V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7/M4
BL Version : 0x91
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_T0ovoR.srec
File : ST-LINK_GDB_server_T0ovoR.srec
Size : 196.55 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:02.507
Verifying ...
Download verified successfully
Error: recv returned 0. Remote side has closed gracefully. Good.
Info : Remote address: 127.0.0.1
Info : STLINKV3 v3J14M5, PID 0x374E
Info : default port : 7184
Info : Remote address: 127.0.0.1
Info : stlinkserver already running, exit
Error: recv returned 0. Remote side has closed gracefully. Good.
-------------------------------------------------------------------
STM32CubeProgrammer v2.15.0
-------------------------------------------------------------------
Log output file: /tmp/STM32CubeProgrammer_TtCNoz.log
ST-Link Server is running on port : 7184
Info : Remote address: 127.0.0.1
Info : STLINKV3 v3J14M5, PID 0x374E
Error: recv returned 0. Remote side has closed gracefully. Good.
Info : Remote address: 127.0.0.1
Info : STLINKV3 v3J14M5, PID 0x374E
Info : default port : 7184
ST-LINK SN : 0045004B3532510A31333430
ST-LINK FW : V3J14M5
Info : Remote address: 127.0.0.1
Info : stlinkserver already running, exit
Info : default port : 7184
Info : Remote address: 127.0.0.1
Info : stlinkserver already running, exit
Board : NUCLEO-H755ZI-Q
Voltage : 3.28V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7/M4
BL Version : 0x91
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_ifhyLd.srec
File : ST-LINK_GDB_server_ifhyLd.srec
Size : 11.33 KB
Address : 0x08100000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 8
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:01.085
Verifying ...
Download verified successfully
Error: recv returned 0. Remote side has closed gracefully. Good.
Info : Remote address: 127.0.0.1
Info : STLINKV3 v3J14M5, PID 0x374E
Info : default port : 7184
Info : Remote address: 127.0.0.1
Info : stlinkserver already running, exit
Info : Remote address: 127.0.0.1
Info : STLINKV3 v3J14M5, PID 0x374E
Error: recv returned 0. Remote side has closed gracefully. Good.
[2024-04-21T16:44:16.454Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.macos64_2.1.100.202310302101/tools/bin/ST-LINK_gdbserver -p 50007 -cp /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.macos64_2.1.100.202311100844/tools/bin --swd --attach --halt -l 1 -m 1 -t -s
STMicroelectronics ST-LINK GDB server. Version 7.5.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 50007
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
Info : default port : 7184
Info : Remote address: 127.0.0.1
Info : stlinkserver already running, exit
Target unknown error 32
Error in initializing ST-LINK device.
Reason: Unknown. Please check power and cabling to target.
[2024-04-21T16:44:17.325Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...
The text was updated successfully, but these errors were encountered:
Hi, I am using an STM32H755 with the extension, I needed to change "-m", "1" in the CM4 config to "-m", "3". As far as I understood, the CM4 is on port 3.
I'm having trouble setting up the extension for multicore debugging of the STM32H755ZiQ. I don't think the extension has a bug, I'm more looking for hints on how to debug my issues and adjust the configuration to work correctly...
My reference here is your wiki page regarding multicore debugging and this issue. Debugging the CM7 works just fine, but the attaching the CM4 core crashes the gdb-server immediately.
I saw this statement on your wiki page
But unfortunately no hints on how to try to debug this. Would appreciate any pointers on how to debug the issue.
Expected behavior
Launch multi-core debug session
Environment (please complete the following information):
Launch.json
Attach text from
Debug Console
The text was updated successfully, but these errors were encountered: