TCL scripts: replace "puts" with "echo"
[openocd/ntfreak.git] / tcl / board / ethernut3.cfg
blobad455273378346b1abc1ef3c3eb7a12837de0057
2 # Ethernut 3 board configuration file
4 # http://www.ethernut.de/en/hardware/enut3/
7 # AT91R40008-66AU ARM7TDMI Microcontroller
8 # 256kB internal RAM
9 source [find target/at91r40008.cfg]
12 # AT49BV322A-70TU NOR Flash
13 # 2M x 16 mode at address 0x10000000
14 # Common flash interface supported
16 set _FLASHNAME $_CHIPNAME.flash
17 flash bank $_FLASHNAME cfi 0x10000000 0x400000 2 2 $_TARGETNAME
20 # Micrel MIC2775-29YM5 Supervisor
21 # Reset output will remain active for 280ms (maximum)
23 adapter_nsrst_delay 300
24 jtag_ntrst_delay 300
27 arm7_9 fast_memory_access enable
28 arm7_9 dcc_downloads enable
29 adapter_khz 16000
32 # Target events
34 $_TARGETNAME configure -event reset-init { board_init }
36 # Initialize board hardware
38 proc board_init { } {
39         board_remap
40         flash probe 0
43 # Memory remap
45 proc board_remap {{VERBOSE 0}} {
46         # CS0: NOR flash
47         #      16MB @ 0x10000000
48         #      16-bit data bus
49         #      4 wait states
50         #
51         mww 0xffe00000 0x1000212d
53         # CS1: Ethernet controller
54         #      1MB @ 0x20000000
55         #      16-bit data bus
56         #      2 wait states
57         #      Byte select access
58         #
59         mww 0xffe00004 0x20003025
61         # CS2: CPLD registers
62         #      1MB @ 0x21000000
63         #      8-bit data bus
64         #      2 wait states
65         #
66         mww 0xffe00008 0x21002026
68         # CS3: Expansion bus
69         #      1MB @ 0x22000000
70         #      8-bit data bus
71         #      8 wait states
72         #
73         mww 0xffe00010 0x22002e3e
75         # Remap command
76         #
77         mww 0xffe00020 0x00000001
79         if {$VERBOSE != 0} {
80                 echo "0x00000000 RAM"
81                 echo "0x10000000 Flash"
82                 echo "0x20000000 Ethernet"
83                 echo "0x21000000 CPLD"
84                 echo "0x22000000 Expansion"
85         }