dropped 'gdb' connection (error -400)

Sysprogs forums Forums VisualGDB dropped 'gdb' connection (error -400)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22354
    matiase
    Participant

    Hello,

    I create project according to this tutorial https://visualgdb.com/tutorials/arm/stm32/nucleo411re/.

    I have pcb NUCLEO F103RB. When I try to upload sample HAL project I can’t connect with microcontroller.

    In the attachment I send screen from debugging settings.

    Logs from test debugging:

    C:\Users\MK\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd\bin\openocd.exe -c “gdb_port 54462” -c “telnet_port 54463” -f interface/stlink-v2-1.cfg -f target/stm32f1x.cfg -c init -c “reset init” -c “echo VisualGDB_OpenOCD_Ready”
    Open On-Chip Debugger 0.10.0 (2018-05-24) [https://github.com/sysprogs/openocd]
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    WARNING: interface/stlink-v2-1.cfg is deprecated, please switch to interface/stlink.cfg
    Info : auto-selecting first available session transport “hla_swd”. To override use ‘transport select <transport>’.
    Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
    adapter speed: 1000 kHz
    adapter_nsrst_delay: 100
    none separate
    Info : Unable to match requested speed 1000 kHz, using 950 kHz
    Info : Unable to match requested speed 1000 kHz, using 950 kHz
    Info : clock speed 950 kHz
    Info : STLINK v2 JTAG v28 API v2 SWIM v17 VID 0x0483 PID 0x374B
    Info : using stlink api v2
    Info : Target voltage: 3.265963
    Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
    Info : Listening on port 54462 for gdb connections
    target halted due to debug-request, current mode: Thread
    xPSR: 0x01000000 pc: 0xd0024282 msp: 0x4b044800
    VisualGDB_OpenOCD_Ready
    Info : Listening on port 6666 for tcl connections
    Info : Listening on port 54463 for telnet connections
    Info : accepting ‘gdb’ connection on tcp/54462
    Info : device id = 0x20036410
    Info : flash size = 128kbytes
    Info : dropped ‘gdb’ connection (error -400)

    I tried change interface/stlink-v2-1.cfg to interface/stlink.cfg and speed from 1000 to 950 kHz, but I still have the same problem.

    • This topic was modified 5 years, 6 months ago by matiase.
    • This topic was modified 5 years, 6 months ago by matiase.
    Attachments:
    You must be logged in to view attached files.
    #22358
    support
    Keymaster

    Hi,

    The text you attached doesn’t contain any specific error message, so the problem may not be on the OpenOCD’s side.

    Please describe what exactly you are observing/expecting and also obtain and attach a gdb session log as described here so that we could see what is going on.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.