Clion Embeded debugging - peripherals viewer not working

Hello,

I have followed the instructions on setting up Clion for embedded development and can confirm that Openocd and gdb are probably working as they should. The problem I am having is with viewing the registers. I have the STM32F3 discovery board running a timer in PWM mode. The timer is lit according to duty cycle and I can confirm that all looks good. However, when I start the debug with openocd, I am unable to see anything with the peripherals after using the SVD file for the MCU from ST's website. I can neither see the GPIO register value nor the Timer 1 CNT value.  

The onboard st-link debugger is what I am using. Are there any parameters that need to be passed during compilation or before debugging to be able to view registers?

Any help with figuring this out is appreciated, thank you 

CONSOLE OUTPUT

/usr/bin/openocd -c "tcl_port disabled" -c "gdb_port 3333" -c "telnet_port 4444" -s /usr/share/openocd/scripts -f board/stm32f3discovery.cfg -c "program /home/dnld/embedded/ppm/cmake-build-stm32/ppm.elf" -c "init;reset init;" -c "echo (((READY)))"
Open On-Chip Debugger 0.12.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
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : clock speed 1000 kHz
Info : STLINK V2J45M30 (API v2) VID:PID 0483:374B
Info : Target voltage: 2.906762
Info : [stm32f3x.cpu] Cortex-M4 r0p1 processor detected
Info : [stm32f3x.cpu] target has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32f3x.cpu on 3333
Info : Listening on port 3333 for gdb connections
[stm32f3x.cpu] halted due to breakpoint, current mode: Thread 
xPSR: 0x21000000 pc: 0x080001ea msp: 0x20009f78
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
[stm32f3x.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000448 msp: 0x2000a000
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
** Programming Started **
Info : device id = 0x10036422
Info : flash size = 256 KiB
Warn : Adding extra erase range, 0x08001ef0 .. 0x08001fff
** Programming Finished **
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
[stm32f3x.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08000448 msp: 0x2000a000
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
(((READY)))
Info : tcl server disabled
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Debugger connected to tcp:localhost:3333

 

GDB OUTPUT

GNU gdb (GDB) 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
   <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Note: automatically using hardware breakpoints for read-only addresses.
Reset_Handler () at /home/dnld/embedded/ppm/Core/Startup/startup_stm32f303vctx.s:62
62      ldr   sp, =_estack    /* Atollic update: set stack pointer */

 

 

0

请先登录再写评论。