Skip to content

dist/tools/openocd: cannot debug some stlink based boards #8975

@aabadie

Description

@aabadie

Description

#8856 tries to fix a bug preventing to debug with the b-l072z-lrwan1 board but in fact this problem is more general since it might touch all boards using the stlink programmer.

I tested and noticed the same behaviour with a nucleo-l152, nucleo-f070, nucleo-l476

Steps to reproduce the issue

Example with a nucleo-l073:

    make BOARD=nucleo-l073 -C example default flash debug

Then add a breakpoint in main function using gdb: b main and continue: c

Expected results

The program reaches the main function

Actual results

It hangs after c

Versions

Installed compiler toolchains

         native gcc: gcc (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0
  arm-none-eabi-gcc: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
            avr-gcc: missing
   mips-mti-elf-gcc: mips-mti-elf-gcc (Codescape GNU Tools 2016.05-03 for MIPS MTI Bare Metal) 4.9.2
         msp430-gcc: msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)

riscv-none-embed-gcc: missing
clang: clang version 4.0.1-6 (tags/RELEASE_401/final)

Installed compiler libs

arm-none-eabi-newlib: "2.5.0"
mips-mti-elf-newlib: "2.1.0"
riscv-none-embed-newlib: missing
avr-libc: missing (missing)

Installed development tools

              cmake: cmake version 3.9.1
           cppcheck: Cppcheck 1.80
            doxygen: 1.8.13
             flake8: 3.5.0 (mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.6.0) CPython 3.5.4 on Linux
                git: git version 2.14.1
         coccinelle: spatch version 1.0.4 with Python support and with PCRE support

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: toolsArea: Supplementary toolsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions