Hallo zusammen, ich habe ein minimal_Startupprogramm auf at91sam7x256 via arm-usb-tiny-h geladen. Ich benutze: . SAM7-EX256 Board . ARM-USB-TINY-H . Olimex tool including (Eclipse, Yagarto, Openocd) ich kann aber mein Programm nicht gebuggen. ich habe hier reingeguckt: http://www.yagarto.de/howto/yagarto2/index.html trozdem kriege ich als meldung host 3333 kann nicht erreichen und minitor befehl ist nicht suportet und noch, dass das programm kann nicht gestertet werden (vom Debugger) habe ich etwas nicht installiert? ich verstehe das nicht richtig!!! Danke im Voraus
Du sollst "gerhard" suchen der kennt sich gut damit aus;)
das ist meine Commands: target remote localhost:3333 monitor reset init monitor sleep 500 monitor poll monitor soft_reset_halt #monitor arm7_9 sw_bkpts enable monitor gdb_breakpoint_override hard monitor arm7_9 dbgrq enable # RSTC_CR : Reset peripherals monitor mww 0xfffffd00 0xa5000004 # disable watchdog monitor mww 0xfffffd44 0x00008000 # enable user reset monitor mww 0xfffffd08 0xa5000001 # CKGR_MOR : enable the main oscillator monitor mww 0xfffffc20 0x00000601 monitor sleep 10 # CKGR_PLLR: 96.1097 MHz monitor mww 0xfffffc2c 0x00481c0e monitor sleep 10 # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz monitor mww 0xfffffc30 0x00000007 monitor sleep 10 # MC_FMR: flash mode (FWS=1,FMCN=73) monitor mww 0xffffff60 0x00490100 monitor sleep 100 set mem inaccessible-by-default off load break main continue
und kriege diese Meldung: target remote localhost:3333 localhost:3333: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht ordnungsgem\344\337 reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat. monitor reset init "monitor" command not supported by this target. monitor sleep 500 "monitor" command not supported by this target. monitor poll "monitor" command not supported by this target. monitor soft_reset_halt "monitor" command not supported by this target. monitor gdb_breakpoint_override hard "monitor" command not supported by this target. monitor arm7_9 dbgrq enable "monitor" command not supported by this target. monitor mww 0xfffffd00 0xa5000004 "monitor" command not supported by this target. monitor mww 0xfffffd44 0x00008000 "monitor" command not supported by this target. monitor mww 0xfffffd08 0xa5000001 "monitor" command not supported by this target. monitor mww 0xfffffc20 0x00000601 "monitor" command not supported by this target. monitor sleep 10 "monitor" command not supported by this target. monitor mww 0xfffffc2c 0x00481c0e "monitor" command not supported by this target. monitor sleep 10 "monitor" command not supported by this target. monitor mww 0xfffffc30 0x00000007 "monitor" command not supported by this target. monitor sleep 10 "monitor" command not supported by this target. monitor mww 0xffffff60 0x00490100 "monitor" command not supported by this target. monitor sleep 100 "monitor" command not supported by this target. set mem inaccessible-by-default off load You can't do that when your target is `exec' break main Breakpoint 1 at 0x100f48: file main.c, line 131. continue The program is not being run.
CanNotOpenOCD;-) schrieb: > target remote localhost:3333 > localhost:3333: Ein Verbindungsversuch ist fehlgeschlagen, da die > Gegenstelle nach einer bestimmten Zeitspanne nicht ordnungsgem\344\337 > reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der > verbundene Host nicht reagiert hat. GDB kann sich nicht mit dem OpenOCD verbinden, steht doch da. Entweder läuft OpenOCD nicht oder es hört auf einen anderen Port. Natürlich geht dann alles andere auch nicht. Versuch erst mal, OpenOCD alleine zum Laufen zu bekommen (also von der Kommandozeile zu starten).
vielen Dank erstmal, dass du dich gemeldet hast Andreas . ich kann OpenOCD starten und Kann damit das Program auf dem Flash laden. und kriege diese Meldung: Open On-Chip Debugger 0.4.0 (2010-11-23-14:20) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html Warn : Interface already configured, ignoring srst_only srst_pulls_trst srst_gates_jtag srst_open_drain 1000 kHz Info : max TCK change to: 30000 kHz Info : clock speed 1000 kHz Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3) Info : Embedded ICE version 1 Info : sam7x256.cpu: hardware has 2 breakpoint/watchpoint units Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3) Warn : srst pulls trst - can not reset into halted mode. Issuing halt after reset. target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x60000053 pc: 0x00100c9c Warn : NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'. Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'. at91sam7 gpnvm <bit> <set | clear> dcc downloads are enabled background polling: on TAP: sam7x256.cpu (enabled) target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x60000053 pc: 0x00100c9c flash 'at91sam7' found at 0x00100000 auto erase enabled auto unlock enabled wrote 16384 bytes from file at91sam7x_getting_started_flash.bin in 4.250000s (3.765 kb/s) Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3) Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'. shutdown command invoked Das problem habe ich nur in der Configuration des Debuggers
CanNotOpenOCD;-) schrieb: > shutdown command invoked Und da wird er wieder beendet. Ich kenne mich mit OpenOCD über Eclipse nicht aus, aber irgendwo muss beim Debugger definiert werden, dass auch beim Starten des Debuggers OpenOCD mitgestartet werden muss, oder es muss schon separat gestartet sein. Aber die Kommunikation läuft über TCP-Sockets (deshalb kann man Debugger und OpenOCD prinzipiell auch auf verschiedenen Rechnern laufen lassen), unter Windows kann ich mir deshalb gut vorstellen, dass da eine treudoofe Firewall reinpfuscht und das blockiert.
ich versteh nicht warum Monitor Befehl nicht supported ist. muss ich eine Datei zum Projekt einfügen?
CanNotOpenOCD;-) schrieb: > ich versteh nicht warum Monitor Befehl nicht supported ist. muss ich > eine Datei zum Projekt einfügen? Sie ist supported bei einem Remote Target. Du hast keine Verbindung zum Remote Target (in dem Fall OpenOCD) aufbauen können aber das Skript arbeitet trotzdem stur weiter und damit ist der Rest des Logs hinfällig. "target remote localhost:3333" ist fehlgeschlagen weil OpenOCD nicht läuft oder weil die Verbindung blockiert wird. Das ist das ganze Problem. Solange das nicht gelöst ist, geht gar nichts.
ich danke dir mehr mals ich habe den Befehl schutdown weg gelassen und das tut. Danke
Hallo, ich bin wieder hier. ich habe ein (Startupprogram + SPI) Programm auf meinem Board. ich Starte mein Clock im SPI_INIT trotzdem ist auf dem PIN SPI1_Clock nichts zu sehen? //enable the clock of SPI s_pPMC->PMC_PCER = 1 << AT91C_ID_SPI1; das reicht oder?
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
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.