Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Breakpoints not working(Debugging embedded ARM project not working properly)
Breakpoints not working [message #1868964] Fri, 26 July 2024 15:02
Alan Rouse is currently offline Alan RouseFriend
Messages: 15
Registered: July 2009
Junior Member
For many years I have been developing and debugging a project on custom hardware, using an STM32 ARM processor. All has been well for the last few months so I haven't had to work on it. However I now want to add an enhancement so I'm trying to get the development system working again.

I use the embedded C/C++ version of eclipse with an Olimex ARM-USB-OCD interface adaptor. Eclipse has updated to Version 2024-06, and I used xpacks to install arm-none-eabi-gcc V10.3.1-2.3.1, windows-build-tools V4.4.1-2.1 and OpenOCD V0.12.0-2.1. The project uses the FreeRTOS operating system. I'm not aware that anything has changed since I last successfully worked on the project.

I can build the project in debug mode and run it on the target hardware exactly the same as before. I can suspend it then single step through it, but breakpoints aren't working properly. If I set a breakpoint near the start of the programme it doesn't stop the target. However if I set a breakppont within one of the tasks that are subsequently run it does work.

I have numerous archived versions of the project so I've tried reverting back but they exhibit the same issue.

I assume the problem is with OpenOCD so I tried reverting to an earlier version but it made no difference.

The Console shows the commands sent to the Olimex interface but I'm not sure they are right. I think they previously ended showing the register contents but now they are :
xPack Open On-Chip Debugger 0.12.0+dev-01312-g18281b0c4-dirty (2023-09-04-22:32)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x06430041 (mfg: 0x020 (STMicroelectronics), part: 0x6430, ver: 0x0)
Info : [stm32f1x.cpu] Cortex-M3 r1p1 processor detected
Info : [stm32f1x.cpu] target has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32f1x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006430
Info : flash size = 512 KiB
undefined debug reason 8 (UNDEFINED) - target needs reset
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x06430041 (mfg: 0x020 (STMicroelectronics), part: 0x6430, ver: 0x0)
[stm32f1x.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x080001e4 msp: 0x200007d8
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x06430041 (mfg: 0x020 (STMicroelectronics), part: 0x6430, ver: 0x0)
[stm32f1x.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x080001e4 msp: 0x200007d8, semihosting
Info : Padding image section 0 at 0x0803e418 with 1000 bytes
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x06430041 (mfg: 0x020 (STMicroelectronics), part: 0x6430, ver: 0x0)
[stm32f1x.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x080001e4 msp: 0x200007d8, semihosting
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x06430041 (mfg: 0x020 (STMicroelectronics), part: 0x6430, ver: 0x0)
[stm32f1x.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08007200 psp: 0x20007878, semihosting
Previous Topic:isExtensionElement check missing in Tool.needsRebuild
Next Topic:Include paths does not change on compile
Goto Forum:
  


Current Time: Thu Oct 10 01:20:42 GMT 2024

Powered by FUDForum. Page generated in 0.05542 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top