Forum: Mikrocontroller und Digitale Elektronik Probleme mit Debugging bei Eclipse GDB Segger M3


von Boris H. (abschaedler)


Lesenswert?

Hallo zusammen,
Ich habe ein Problem mit folgender Entwicklungsumgebung:

Eclipse SDK 4.1.2
Yagarto GDB 7.3.1
Segger J-Link V8.0 S/N: 58004581
Segger J-Link GDB Server V4.42c
Fujitsu SK-FM3-100PMC mit MB9BF506NAPMC

Beim Kompilieren gibt es kein Problem. Ich kann auch problemlos das 
erzeugte Kompilat per JFlashArm auf den Controller flashen und die 
Software läuft. Probleme bekomme ich wenn ich Debuggen möchte. Ich bin 
nach der Fujitsu Anleitung 
http://mcu.emea.fujitsu.com/document/appnotes/Public/FM3/mcu-an-300403-e-fm3_gnu_tool_chain/mcu-an-300403-e-v10-fm3_gnu_tool_chain.pdf 
vorgegangen, und dort bis zur Seite 106 vorangeschritten.
Starte ich das Debugging, so bekomme ich von Eclipse folgende 
Fehlermeldungen:


Error in final launch sequence
 Failed to execute MI command:
  # Set gdb server to little endian
  Error message from debugger back end:
  Undefined command: "".  Try "help". ,Failed to execute MI command:
  # Set JTAG speed to 30 kHz
  Error message from debugger back end:
  Undefined command: "".  Try "help". ,Failed to execute MI command:
  # Reset the chip to get to a known state.
  Error message from debugger back end:
  Undefined command: "".  Try "help". ,Failed to execute MI command:
  # Set JTAG speed in khz
  Error message from debugger back end:
  Undefined command: "".  Try "help". ,Failed to execute MI command:
load
Error message from debugger back end:
No executable file specified.
Use the "file" or "exec-file" command. ,Failed to execute MI command:
# Reset the chip to get to a known state.
Error message from debugger back end:
Undefined command: "".  Try "help".
Failed to execute MI command:
# Set gdb server to little endian
Error message from debugger back end:
Undefined command: "".  Try "help".
Undefined command: "".  Try "help".
Failed to execute MI command:
# Set JTAG speed to 30 kHz
Error message from debugger back end:
Undefined command: "".  Try "help".
Undefined command: "".  Try "help".
Failed to execute MI command:
# Reset the chip to get to a known state.
Error message from debugger back end:
Undefined command: "".  Try "help".
Undefined command: "".  Try "help".
Failed to execute MI command:
# Set JTAG speed in khz
Error message from debugger back end:
Undefined command: "".  Try "help".
Undefined command: "".  Try "help".
Failed to execute MI command:
load
Error message from debugger back end:
No executable file specified.
Use the "file" or "exec-file" command.
No executable file specified.
Use the "file" or "exec-file" command.
Failed to execute MI command:
# Reset the chip to get to a known state.
Error message from debugger back end:
Undefined command: "".  Try "help".
Undefined command: "".  Try "help".

########################################
Der Segger GDB Server gibt dann folgendes aus:

SEGGER J-Link GDB Server V4.42c

JLinkARM.dll V4.42c (DLL compiled Feb 29 2012 09:15:24)

Waiting for J-Link connection...
J-Link is connected.
Firmware: J-Link ARM V8 compiled Feb  8 2012 14:30:39
Hardware: V8.00
S/N: 58004581
Listening on TCP/IP port 2331
Waiting for GDB connection...
Connected to 127.0.0.1

J-Link found 1 JTAG device, Total IRLen = 4
JTAG ID: 0x4BA00477 (Cortex-M3)
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x20008000)
JTAG speed set to 1000 kHz
Select flash device: MB9BF506N
Flash download enabled
Target endianess set to "little endian"
JTAG speed set to 30 kHz
Resetting target
Sleep 10ms
Select auto target interface speed (4000 kHz)
Sleep 100ms
Resetting target
Sleep 10ms

Ich habe schon diverse Foren und FAQ durchwühlt, aber ich habe einfach 
keine Ahnung, was der Fehler sein könnte.
Vielen Dank schonmal im Voraus für eure Hilfe,
Boris

von Required field (Gast)


Lesenswert?

Könnte daran liegen, dass Eclipse den GDB nicht im
'MI' mode startet.

Schau mal unter Run > Debug Configurations, register "Debugger"

Laut GDB Manual wird der MI mode durch die '--interpreter=MI'
Kommandozeilenoption gestartet. Die müsste auch in Deiner
"Launch config" enhalten sein.

Hast Du schon mal erfolgreich den GDB und den GDB Server separat 
gestartet und damit debuggen können?

von Required field (Gast)


Lesenswert?

>Könnte daran liegen, dass Eclipse den GDB nicht im
>'MI' mode startet.

Oder gerade genau umgekehrt.

Hängt wahrscheinlich mit der "Protocol Version" Einstellung
(siehe in dem von Dir erwähnten Manual auf S. 103)
zusammen.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.