Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse doesn't send halt to GDB stm32F1 project (SOLVED)(Can't pause project from gui (moved back to CDT 9.1))
Eclipse doesn't send halt to GDB stm32F1 project (SOLVED) [message #1753493] Tue, 07 February 2017 07:54 Go to next message
Alexander Shuklin is currently offline Alexander ShuklinFriend
Messages: 3
Registered: February 2017
Junior Member
Good day,
I updated eclipse to Neon.2 Release (4.6.2), CDT and gnuarmeclipse to latest build. And now when I debug stm32f1x project, I can't pause program executing. But when I connect via telnet to openocd, if i write halt, program suspends. So, it looks like, that eclipse doesn't send halt command to openocd.
Can you advice me, where to look at t fix it?

[Updated on: Thu, 09 February 2017 11:41]

Report message to a moderator

Re: Eclipse doesn't send halt to GDB stm32F1 project [message #1753636 is a reply to message #1753493] Wed, 08 February 2017 11:08 Go to previous messageGo to next message
Alex Freidin is currently offline Alex FreidinFriend
Messages: 32
Registered: July 2009
Member
Obvious stuff first:
1. See if it is specific to your program or an issue for anything running, e.g. main() { while(1); }
2. See if other debug commands work, e.g. step, set BPs, run?

I'm not familiar with the inner-workings of gnuarmeclipse, but I would do the following steps to debug the problem:
See if GDB->OpenOCD works OK without Eclipse. I.e. start OpenOCD, connect with GDB and see if you can pause by pressing CTRL+C in GDB and can debug normally.
Check the Eclipse integration:
1. Add "-d" switch in "OpenOCD Setup" > "Other Options" to enable verbose debug dump.
2. Specify the LOG file in "OpenOCD Setup" > "Log file".
3. Inspect "GDB traces" Console view before and after pressing the "pause" button. Check OpenOCD LOG to see that it got the halt request from GDB.
4. Check Eclipse LOG for any exceptions related to debug (<workspace>/.metadata/.log)
Re: Eclipse doesn't send halt to GDB stm32F1 project [message #1753709 is a reply to message #1753636] Thu, 09 February 2017 08:16 Go to previous messageGo to next message
Alexander Shuklin is currently offline Alexander ShuklinFriend
Messages: 3
Registered: February 2017
Junior Member
Hi Alex,
thanks for answer.

A)
1. there no something like main() { while(1); }
2. Everything else work fine (step, set BPs, run), but it can't create BP after I run program. But maybe, because it can't halt core.

B)
when I start openOCD and GDB manualy from console it works fine and CTRL+C pause program.
I'm not sure if I can pass CTRL+C from debugger console in eclipse.
1. I did -d 3 in config options and now have a lot of debug information, but completely nothing happens when I click pause
2. I can't see "Log file" field in openOCD setup pages, or i shoud use some linux ">" stream operator? Anyway, I see debug information in console and when I click pause, nothing happens
3. Can you please tell more, how to get to GDB traces?
4. There's my Eclipse LOG

Quote:

!SESSION 2017-02-09 11:13:32.585 -----------------------------------------------
eclipse.buildId=4.6.2.M20161124-1400
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse.launchbar.core 2 0 2017-02-09 11:13:42.291
!MESSAGE Enablement expression is missing for descriptor type org.eclipse.cdt.debug.core.coreBuildDescriptorType

!ENTRY org.eclipse.launchbar.core 2 0 2017-02-09 11:13:42.294
!MESSAGE Enablement expression is missing for config provider for org.eclipse.cdt.debug.core.coreBuildDescriptorType

!ENTRY org.eclipse.launchbar.core 2 0 2017-02-09 11:13:42.328
!MESSAGE Enablement expression is missing for config provider for org.eclipse.cdt.arduino.core.descriptorType

!ENTRY org.eclipse.cdt.dsf 4 10005 2017-02-09 11:14:26.360
!MESSAGE Request for monitor: 'RequestMonitor (org.eclipse.cdt.dsf.concurrent.RequestMonitor@1e457d63): Status ERROR: org.eclipse.cdt.dsf.gdb code=10004 Suspend operation timeout. null' resulted in an error.
!SUBENTRY 1 org.eclipse.cdt.dsf.gdb 4 10004 2017-02-09 11:14:26.360
!MESSAGE Suspend operation timeout.

[Updated on: Thu, 09 February 2017 08:17]

Report message to a moderator

Re: Eclipse doesn't send halt to GDB stm32F1 project [message #1753715 is a reply to message #1753709] Thu, 09 February 2017 09:20 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
Hi Alexander,

This sounds a lot like a known problem in CDT 9.2, See Bug 509812. It is fixed for 9.2.1 released in a month or so. Your choices are to downgrade CDT to 9.1 or to install the most recent, but unreleased, build of 9.2.1: https://ci.eclipse.org/cdt/job/cdt-9.2/lastSuccessfulBuild/artifact/releng/org.eclipse.cdt.repo/target/org.eclipse.cdt.repo.zip

I hope that helps,

Jonah
Re: Eclipse doesn't send halt to GDB stm32F1 project [message #1753727 is a reply to message #1753715] Thu, 09 February 2017 11:40 Go to previous message
Alexander Shuklin is currently offline Alexander ShuklinFriend
Messages: 3
Registered: February 2017
Junior Member
Aye, I've got back to CDT 9.1 and that works fine,
Thanks very much
Previous Topic:Eclipse C++ IDE for Arduino (Neon) - problems with build
Next Topic:Remote Paths not picked up by indexer
Goto Forum:
  


Current Time: Thu Apr 25 17:22:42 GMT 2024

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

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

Back to the top