Hallo!
Ich bin ganz neu in der ARM-Welt und habe (wie sicherlich viele..)
einige Startprobleme.
OpenOCD mit der FDTI-Lib gibt es nicht mehr als exe, man muss es sich
selbst kompelieren. Und nun laufen unter 0.3.0 die Konfigurationskripte
nicht mehr, es kommen viele Hinweise, dass Befehle deprecated sind.
at91sam7s256-armusbocd-flash.cfg
1 | #define our ports
|
2 | telnet_port 4444
|
3 | gdb_port 3333
|
4 |
|
5 | #commands specific to the Amontec JTAGKey
|
6 | interface ft2232
|
7 | ft2232_device_desc "Olimex OpenOCD JTAG A"
|
8 | ft2232_layout "olimex-jtag"
|
9 | ft2232_vid_pid 0x15BA 0x0003
|
10 | jtag_speed 2
|
11 | jtag_nsrst_delay 200
|
12 | jtag_ntrst_delay 200
|
13 |
|
14 | #reset_config <signals> [combination] [trst_type] [srst_type]
|
15 | reset_config srst_only srst_pulls_trst
|
16 |
|
17 | #jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
|
18 | jtag_device 4 0x1 0xf 0xe
|
19 |
|
20 | #daemon_startup <'attach'|'reset'>
|
21 | #daemon_startup reset
|
22 |
|
23 | #target <type> <endianess> <reset_mode> <jtag#> [variant]
|
24 | target arm7tdmi little run_and_init 0 arm7tdmi_r4
|
25 |
|
26 | #run_and_halt_time <target#> <time_in_ms>
|
27 | run_and_halt_time 0 30
|
28 |
|
29 | # commands below are specific to AT91sam7 Flash Programming
|
30 | # ---------------------------------------------------------
|
31 |
|
32 | #target_script specifies the flash programming script file
|
33 | target_script 0 reset script.ocd
|
34 |
|
35 | #working_area <target#> <address> <size> <'backup'|'nobackup'>
|
36 | working_area 0 0x40000000 0x4000 nobackup
|
37 |
|
38 | #flash bank at91sam7 0 0 0 0 <target#>
|
39 | flash bank at91sam7 0 0 0 0 0
|
Und das spuckt OpenOCD aus:
1 | Open On-Chip Debugger 0.3.0-in-development (2009-10-04-16:53) svn:2796
|
2 | $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
|
3 | For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
|
4 | OLD SYNTAX: DEPRECATED - use jtag_khz, not jtag_speed
|
5 | jtag_speed: 2
|
6 | jtag_nsrst_delay: 200
|
7 | jtag_ntrst_delay: 200
|
8 | OLD SYNTAX: DEPRECATED - translating to new syntax
|
9 | jtag newtap CHIP TAP -irlen 4 -ircapture 0x1 -irvalue 0xf
|
10 | Example: STM32 has 2 taps, the cortexM3(len4) + boundaryscan(len5)
|
11 | jtag newtap stm32 cortexm3 ....., thus creating the tap: "stm32.cortexm3"
|
12 | jtag newtap stm32 boundary ....., and the tap: "stm32.boundary"
|
13 | And then refer to the taps by the dotted name.
|
14 | NEW COMMAND:
|
15 | Runtime error, file "D:\Workspace\FirstARMProject/configs/config.cfg", line 24:
|
16 | bad option "arm7tdmi": must be one of count, create, current, names, number, or types
|
Die Seite berlios.de ist nicht erreichbar, sonst finde ich keine
Beispiele zu OpenOCD in der aktuellen Version.
Hat jemand vll ein Beispiel für mich oder kann mir irgendwie mit der
Sache helfen?