Добавление переменных в OpenOCD в Eclipse во время отладки - PullRequest
0 голосов
/ 04 декабря 2018

У меня проблемы с Eclipse, GCC ARM и OpenOCD.

Компиляция работает нормально, я в порядке отладки шаг за шагом, но не могу добавить переменную для мониторинга в реальном времени,Ниже приведены некоторые снимки экрана с конфигурациями.

Что я делаю неправильно или что я должен сделать, чтобы иметь предварительный просмотр значений переменных во время отладки?

Я видел и читал много учебников и переменныхпросмотрщик работает нормально во всех случаях, но не в моем.

show configuration
This GDB was configured as follows:
   configure --host=i686-w64-mingw32 --target=arm-none-eabi
             --with-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/arm-none-eabi/share/gdb (relocatable)
             --with-jit-reader-dir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/lib/gdb (relocatable)
             --without-libunwind-ia64
             --without-lzma
             --without-guile
             --with-separate-debug-dir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/lib/debug (relocatable)
             --with-system-gdbinit=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/i686-w64-mingw32/arm-none-eabi/lib/gdbinit (relocatable)
             --without-babeltrace

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
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
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
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 v32 API v2 SWIM v22 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.266094
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006442
Info : flash size = 256kbytes
undefined debug reason 7 - target needs reset
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x08001fa8 msp: 0x20008000
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20008000
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1883). Workaround: increase "set remotetimeout" in GDB
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x08001fa8 msp: 0x20008000

info display
There are no auto-display expressions now.
info source
Current source file is ../main.cpp
Compilation directory is C:\embedded\projekty\snow_meter_mbed\snow_meter_mbed\BUILD
Located in C:\embedded\projekty\snow_meter_mbed\snow_meter_mbed\main.cpp
Contains 76 lines.
Source language is c++.
Producer is GNU C++98 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] -mcpu=cortex-m0 -mthumb -g1 -Os -std=gnu++98 -std=gnu++98 -fno-rtti -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -fno-delete-null-pointer-checks -fomit-frame-pointer.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.
...