Forum: Mikrocontroller und Digitale Elektronik OPENOCD FEHLER WINDOWS


von Tobias H. (Firma: XXX) (toib)


Lesenswert?

Ich habe folgendes Problem wenn ich die exe in der Kommandozeile unter 
windows starten will kommt folgendes Problem

C:\Programme\openocd-r717\bin>openocd-ftd2xx.exe -d 3
Open On-Chip Debugger (2008-06-19 19:00) svn: 717
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk
Debug:   5 0 command.c:432 command_run_line(): script openocd.cfg
Debug:   6 0 configuration.c:87 open_file_from_path(): opened 
openocd.cfg
Debug:   8 0 command.c:432 command_run_line(): telnet_port 4444
Debug:   10 0 command.c:432 command_run_line(): gdb_port 3333
Debug:   12 0 command.c:432 command_run_line(): gdb_memory_map enable
Debug:   14 0 command.c:432 command_run_line(): gdb_flash_program enable
Debug:   16 0 command.c:432 command_run_line(): interface parport
Error:   17 0 jtag.c:1684 handle_interface_command(): No valid jtag 
interface fo
und (parport)
Error:   18 16 jtag.c:1685 handle_interface_command(): compiled-in jtag 
interfac
es:
Error:   19 16 jtag.c:1688 handle_interface_command(): 0: ft2232
Debug:   20 16 command.c:387 find_and_run_command(): Command failed with 
error c
ode -101
Debug:   22 16 command.c:432 command_run_line(): parport_port 0x378
Info:    23 16 options.c:50 configuration_output_handler(): Command 
parport_port
 not found
Debug:   25 16 command.c:432 command_run_line(): parport_cable wiggler
Info:    26 16 options.c:50 configuration_output_handler(): Command 
parport_cabl
e not found
Debug:   28 16 command.c:432 command_run_line(): jtag_speed 0
Debug:   29 16 jtag.c:1863 handle_jtag_speed_command(): handle jtag 
speed
Info:    30 16 options.c:50 configuration_output_handler(): jtag_speed: 
0, 0
Debug:   32 16 command.c:432 command_run_line(): jtag_nsrst_delay 200
Debug:   34 16 command.c:432 command_run_line(): jtag_ntrst_delay 200
Debug:   36 16 command.c:432 command_run_line(): reset_config srst_only 
srst_pul
ls_trst
Debug:   38 16 command.c:432 command_run_line(): jtag_device 4 0x1 0xf 
0xe
Debug:   40 16 command.c:432 command_run_line(): daemon_startup reset
Info:    41 16 options.c:50 configuration_output_handler(): Open On-Chip 
Debugge
r (2008-06-19 19:00) svn: 717
Debug:   43 16 command.c:432 command_run_line(): target cortex_m3 little 
run_and
_halt 0 lm3s
Debug:   45 16 command.c:432 command_run_line(): run_and_halt_time 0 30
Debug:   47 16 command.c:432 command_run_line(): working_area 0 
0x20000000 0x200
0 nobackup
Debug:   49 32 command.c:432 command_run_line(): flash bank stellaris 0 
0 0 0 0
Debug:   51 32 command.c:432 command_run_line(): init
Debug:   52 32 openocd.c:102 handle_init_command(): target init complete
Error:   53 32 jtag.c:1511 jtag_interface_init(): JTAG interface has to 
be speci
fied, see "interface" command
Debug:   54 32 command.c:387 find_and_run_command(): Command failed with 
error c
ode -101


meine Config sieht wie folgt aus :

#daemon configuration
telnet_port 4444
gdb_port 3333

# tell gdb our flash memory map
gdb_memory_map enable
# enable flash programming
gdb_flash_program enable

#interface
interface parport
parport_port 0x378
parport_cable wiggler

jtag_speed 0
jtag_nsrst_delay 200
jtag_ntrst_delay 200

#use combined on interfaces or targets that can't set TRST/SRST 
separately
reset_config srst_only 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 cortex_m3 little run_and_halt 0 lm3s
run_and_halt_time 0 30

working_area 0 0x20000000 0x2000 nobackup
flash bank stellaris 0 0 0 0 0



danke wenn mir wer helfen könnte!


Gruß

von Rufus Τ. F. (rufus) Benutzerseite


Lesenswert?

> Error:   53 32 jtag.c:1511 jtag_interface_init():
>  JTAG interface has to be specified, see "interface" command

Möglicherweise ist "interface parport" in Deiner Konfigurationsdatei 
nicht ausreichend?

von Tobias H. (Firma: XXX) (toib)


Lesenswert?

inwiefern?

auf welchen wert soll ich den , denn sonst setzen?



Gruß

von Rufus Τ. F. (rufus) Benutzerseite


Lesenswert?

Oh, ich hatte die früheren interessanten Fehlermeldungen übersehen:

> Error:   17 0 jtag.c:1684 handle_interface_command():
>    No valid jtag interface found (parport)

Das zusammen mit der folgenden Fehlermeldung

> Error:   18 16 jtag.c:1685 handle_interface_command():
>    compiled-in jtag interfaces:
> Error:   19 16 jtag.c:1688 handle_interface_command():
>    0: ft2232

lässt annehmen, daß Du eine Version verwendest, die nur für das 
ft2232-Interface und ohne Unterstützung des Parallelports übersetzt 
wurde.

von Tobias H. (Firma: XXX) (toib)


Lesenswert?

Okay und wo bekomme ich so eine andere Version her?



bzw nen patch ?



gruß

von Martin T. (mthomas) (Moderator) Benutzerseite


Lesenswert?

Sieht nach dem Paket von Yagarto/Michael Fischer aus. Darin ist eine 
weitere .exe-Datei enthalten. Man schaue in 
C:\Programme\openocd-r717\bin

von Tobias H. (Gast)


Lesenswert?

hm ne leider nicht da ist nur die openocd-ftd2xx.exe drin

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.