#34 Help need to configure build and debug in eclipse

Version 1.x
Andrei Zinenko

I use the next set:
Eclipse CDT Kepler(last one - 8.2.1...)
Tool Chain GNU Tools for ARM Embedded Processors (last one - 4.7 2013q3 )
GNU ARM Eclipse Plug-In ( last one - 1.1.6...)

Try to do do:
1. Create C project
2. Executable -> STM32F10x StdPeriph Lib v3.5 C Project -> Cross ARM GCC
3. GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc)
4. C:\Program Files (x86)\GNU Tools ARM Embedded\4.7 2013q3\bin
5. Finish

  1. Build -> OK

  2. Use ST-LINK_gdbserver.exe from latest Atollic Studio instalation

  3. Run ST-LINK_gdbserver.exe

Atollic TrueSTUDIO gdbserver for ST-Link. Version 1.8.0 Pro
Copyright 2010-2013, Atollic AB.

Starting server with the following options:
Persistant Mode : Enabled
LogFile Name : debug_log.txt
Logging Level : 31
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled

Connecting to the ST-Link Debugger... OK
Waiting for debugger connection...

Is this OK?

Next Debug Configuration:

  1. GDB Command: C:\Program Files (x86)\GNU Tools ARM Embedded\4.7 2013q3\bin\arm-none-eabi-gdb.exe

  2. Standard -> Use Remote target -> Generic TCP/IP -> 61234 -> GDB(DSF) Hardware Debb..

  3. Press Debug.
  4. Variant errors:

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:61234

Waiting for debugger connection...Error while waiting for debugger connection, error 37.
Shutting down...
Debugger connection lost.
Shutting down...

The program is not being run.

symbol-file D:\Eclipse\try8\Debug\try8.elf
load D:\Eclipse\try8\Debug\try8.elf
You can't do that when your target is `None'
tbreak main
Cannot access memory at address 0x800038e
The program is not being run.

How to configure my system to have DEBUG work?


    • status: open --> accepted
    • assigned_to: Liviu Ionescu (ilg)
  • Andrei,

    I'm having difficulties to understand your request. It looks like you successfully built the executable, but have difficulties to start the debug session.

    Is this correct?

    The current version of the plug-in handles only the managed build part of the game, so if the executable is there, the plug-in cannot be of more help.

    As far as I know, the 'Atollic TrueSTUDIO gdbserver for ST-Link', does not work outside Atollic.

    Could you try another GDB server? For example the Coocox GDB server for ST? Or the open source st-util recommended at http://www.emb4fun.de/archive/stlink/index.html?

    • Andrei Zinenko
      Andrei Zinenko

      Yes, I can't start debug. I did't know about Atollic. Try CooCox GDB and get this:

      Error: Invalid argument
      usage:C:\CooCox\CoIDE\bin\gdbserver.exe target.ini

      Andrei Zinenko

      Last edit: Liviu Ionescu (ilg) 2013-12-22
  • Unfortunately for ST-LINKv2 there are no so many other options I can recommend. In addition to the open source st-link package from texane, OpenOCD has a configuration for ST-LINKv2 that is known to work.

    I personally use only J-Link from SEGGER, it works on all existing platforms and with all ARM processors known in the galaxy.

  • asier

    New gdb servers form Attolic TrueStudio are protected to use only with original application.. The last version that works outside TrueStudio is ST-LINK_gdbserver.exe ver. 1.4.1 extracted from TrueStudio ver. 2.3.0.

    • ok, thank you for your feedback. as long as it suits your needs, enjoy it.

      otherwise, I personally consider it a dead end, and cannot recommend it as an appropriate solution.

    • Andrei Zinenko
      Andrei Zinenko

      Thanks, I'll try.

      Andrei Zinenko

      Last edit: Liviu Ionescu (ilg) 2013-12-22
      • Andrei, if you post new messages, please do it via the web interface and be sure you do not quote the incoming long messages, and especially do not include graphics.

    • status: accepted --> closed
    • Group: Version 0.5.5 --> Version 1.x