]> git.sur5r.net Git - openocd/blob - src/target/target/at91rm9200.cfg
Add warning to generated Doxyfile to edit Doxyfile.in.
[openocd] / src / target / target / at91rm9200.cfg
1
2 reset_config trst_and_srst
3
4 if { [info exists CHIPNAME] } { 
5    set  _CHIPNAME $CHIPNAME    
6 } else {         
7    set  _CHIPNAME at91rm9200
8 }
9
10 if { [info exists ENDIAN] } {   
11    set  _ENDIAN $ENDIAN    
12 } else {         
13    set  _ENDIAN little
14 }
15
16 if { [info exists CPUTAPID ] } {
17    set _CPUTAPID $CPUTAPID
18 } else {
19    set _CPUTAPID 0x05b0203f
20 }
21
22 # Never allow the following!
23 if { $_CPUTAPID == 0x15b0203f } {
24    puts "-------------------------------------------------------"
25    puts "- ERROR:                                              -"
26    puts "- ERROR: TapID 0x15b0203f is wrong for at91rm9200      -"
27    puts "- ERROR: The chip/board has a JTAG select pin/jumper  -"
28    puts "- ERROR:                                              -"
29    puts "- ERROR: In one position (0x05b0203f) it selects the   -"
30    puts "- ERROR: ARM CPU, in the other position (0x1b0203f)   -"
31    puts "- ERROR: it selects boundry-scan not the ARM          -"
32    puts "- ERROR:                                              -"
33    puts "-------------------------------------------------------"
34 }
35
36 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
37
38
39 # Create the GDB Target.
40 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
41 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME 
42 # AT91RM9200 has a 16K block of sram @ 0x0020.0000
43 $_TARGETNAME configure -work-area-virt 0x00200000 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 1
44
45 # This chip has a DCC ... use it
46 arm7_9 dcc_downloads enable
47
48
49
50
51