Skip to content

NUCLEO-G431KB ERROR gdb-server.c: cannot recv: -2 #1469

@keck9939

Description

@keck9939
  • Programmer/board type: NUCLEO-G431KB
  • Operating system an version: Linux raspberrypi 6.12.20+rpt-rpi-2712
  • stlink tools version and/or git commit hash: 5259daa
  • stlink commandline tool name: st-util
  • Target chip (and board, if applicable): NUCLEO-G431KB

When remote debugging from Cube IDE 1.18.1 (Windows) to st-util GDB server on a RaspberryPi5, at the IDE I get the error:
Could not verify ST device. Please verify that the latest version of the GDB server is used for the connection.

At the RaspberryPi I get:

keck@raspberrypi:~/git/stlink $ st-util -p 3333
st-util 1.8.0-103-g5259daa
2025-04-22T17:11:06 INFO common_legacy.c: STM32G43x_G44x: 32 KiB SRAM, 128 KiB flash in at least 2 KiB pages.
2025-04-22T17:11:06 INFO gdb-server.c: Listening at *:3333...
2025-04-22T17:11:17 INFO common_legacy.c: STM32G43x_G44x: 32 KiB SRAM, 128 KiB flash in at least 2 KiB pages.
2025-04-22T17:11:17 INFO gdb-server.c: Found 6 hw breakpoint registers
2025-04-22T17:11:17 INFO gdb-server.c: GDB connected.
2025-04-22T17:11:19 ERROR gdb-server.c: cannot recv: -2

and st-util quits.

The tools were built on the Pi following the build instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions