Forum: Mikrocontroller und Digitale Elektronik Probleme mit OpenOCD Phytec lpc2294


von Thomas (Gast)


Lesenswert?

Hallo Zusammen,

ich bin noch recht neu auf dem Gebiet und habe die Anleitung auf der 
Yagarto-Seiten versucht nachzuvollziehen. Beim Kompilieren des Beispiels 
LPC2294Test hat auch alles noch geklappt. Als ich dann jedoch den 
Debugging-Teil probieren wollte habe ich folgende Meldung bekommen:
Ich habe das "External Tools" konfiguriert, die gleiche Meldung bekomme 
ich allerdings auch unter der Dos-Shell. Ich würde mich über Hilfe an 
der Stelle freuen....

beste Grüße und vielen Dank

Thomas

OpenOCD-Version: r520
Yagarto: 4.2.2 vom 01.02.2008
Yagarto IDE
lpc2294 von Phytec

Hier die Ausgabe des OpenOCD:
-----
Open On-Chip Debugger (2008-03-22 12:00 CET) svn: r520
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/
Error:   lpc2000.c:393 lpc2000_flash_bank_command(): unknown LPC2000 
variant
Error:   flash.c:257 handle_flash_bank_command(): 'lpc2000' driver 
rejected flash bank at 0x00000000
Info:    jtag.c:1329 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f 
(Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Warning: jtag.c:902 jtag_add_reset(): requested reset would assert trst
-----
Anschließend habe ich dann den Debugger gestartet, aber ich konnte nicht 
wirkliche debuggen:

----
No symbol table is loaded.  Use the "file" command.
target remote localhost:3333
0x80001180 in ?? ()
monitor reset
requested reset would assert trst
monitor sleep 500
monitor poll
target state: halted
target halted in Thumb state due to debug request, current mode: User
cpsr: 0x20000010 pc: 0x8000138c
monitor soft_reset_halt
requesting target halt and executing a soft reset
target was already halted
monitor arm7_9 sw_bkpts enable
software breakpoints enabled
monitor mww 0xE01FC040 0x0002
monitor mdw 0xE01FC040
0xe01fc040: 00000002
break main
No symbol table is loaded.  Use the "file" command.
load
No executable file specified.
Use the "file" or "exec-file" command.
continue
----


ich verwende folgendes cfg-file zur Kommunikation über den 
Parallel-Port:
#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0

#use combined on interfaces or targets that can't set TRST/SRST 
separately
reset_config trst_and_srst srst_pulls_trst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30

working_area 0 0x40000000 0x40000 nobackup

#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank cfi 0x80000000 0x400000 2 2 0

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

von Markus Müller (Gast)


Lesenswert?

Nimm die OpenOCD Version r247 und versuchs dann nochmal.

Gibts in diesem Thread:
Beitrag "Re: OpenOCD mit AT91SAM7X-EK und Wiggler aus einem Batch oder aus Eclipse"

von Thomas (Gast)


Lesenswert?

Danke,
 damit funktioniert es jetzt.
beste Grüße
Thomas

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.