ST-Link V2 to target SWD connection fails with STM32CUBEIDE under Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-01 04:28 PM
I did a fresh install of STM32CubewMX and STM32CubeIDE. I built a simple program that does nothing except configure an LED to turn on as part of the GPIO initialization. Try as I might, I can program it when trying to debug, but cannot debug. Excerpt of the log below showing GDB server exiting. Any thoughts as to why? Works under windows? I am using an up to date ST-Link device.
I am spending my entire weekend Covid quarantine just trying to debug a simple program with STM32CubeIDE. This can't be that hard.
[2.702] handlePacket(): Hidden/Unsupported v-command 'vKill', see RSP for details
[2.702] write(): <13> Tx: $#00
[2.702] read(): <13> Rx: $k#6b
[2.702] run(): GDB session terminated: Client connection lost
[2.702] handleSessionEvent(): GdbSessionManager, session terminated: 1
[2.735] cleanup(): Cleanup session: 1
[2.735] ~GdbSession(): GDB session disposed: 1
[2.814] stop(): Stopping port 61234
[2.814] WaitConnection(): Received stop for port 61234, not accepting new connections.
[2.814] deInit(): GdbSrv, deInit entry.
[2.814] deInit(): GdbSessionManager, deInit entry.
[2.836] run(): GDB session terminated: Disposed
[2.837] handleSessionEvent(): GdbSessionManager, session terminated: 2
[2.837] ~GdbSession(): GDB session disposed: 2
[2.837] deInit(): GdbSessionManager, deInit exit
[2.837] deInit(): SwvSrv deInit entry
[2.837] stop(): Stopping port 61235
[2.936] WaitConnection(): Received stop for port 61235, not accepting new connections.
[2.937] deInit(): SwvSrv deInit exit
[2.937] closeDevice(): Stm32Device, closeDevice() entry
[3.004] pollAndNotifyRun(): Stm32Device, pollAndNotify stopped
[3.007] closeDevice(): Stm32Device, closeDevice() exit
[3.007] deInit(): Stm32Device, deInit success
[3.007] deInit(): GdbSrv, deInit exit.
- Labels:
-
ST-Link
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-01 10:01 PM
Is your STLINK original ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-06 05:46 PM
It is a V2