GDB Hardware Debugging using OpenOCD for stm32f1x [message #1849250] |
Mon, 10 January 2022 11:18 |
Indira Karkala Messages: 1 Registered: January 2022 |
Junior Member |
|
|
Hi All,
I am trying to setup a GDB hardware Debug Configuration for my stm32 board, I am using an STLINK v2 debugger and configured the debug configuration in eclipse in the below way :
GDB Hardware Debugging
Main:
Project: your_project
C/C++ Application: Serach Project --> YourFile.elf
Debugger:
GDB Command: C:\CodeSourcery\Sourcery G++ Lite\bin\arm-none-eabi-gdb.exe
Command Set: Standard
[x] Use Remote target:
JTAG Device: OpenOCD(via socket)
Host name or IP address: localhost
Port Number: 3333
Startup:
[x] Reset and Delay: 3 seconds
[x] Halt
[x ] Load Image
[ x] Load Symbols
[ ] Set program couter at ...
[x] Set breakpoint at main
[x] Resume
The configuration files i am using are : stlink-v2.cfg and stm32f1x.cfg
On starting the debug perspective the breakpoint is hit at main and the perspective is immediately terminated
getting the below errors :
In Eclipse Debug Console :
GNU gdb (Sourcery G++ Lite 2009q3-68) 6.8.50.20090630-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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=i686-mingw32 --target=arm-none-eabi".
For bug reporting instructions, please see:
In the cmd window of the Open OCD :
C:\CatIndia\svn_view\FW-P9000-0004-CiosApplications\Src\CIOS_DOUT4\DevEnv>"C:\Program Files\openocd-0.8.0\bin-x64\openocd.exe" -s "C:\Program Files\openocd-0.8.0" -f cios-stlinkv2.openocd.cfg
Open On-Chip Debugger 0.9.0-dev-00105-ge1bc7f4-dirty (2014-08-13-16:28)
Licensed under GNU GPL v2
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.239050
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x21000000 pc: 0x080240b4 psp: 0x20005c8c
Error: gdb requested a non-existing register
Info : dropped 'gdb' connection
Kindly advice / help me understand what I am missing or doing wrong to get the debug working ??
Thanks in advance
Best,
Indira
|
|
|
Powered by
FUDForum. Page generated in 0.03057 seconds