25f8ce61af8cc93a32a3d0e62962704748c5f9a4
[fw/openocd] / tcl / board / arm_musca_a.cfg
1 #
2 # Configuration script for ARM Musca-A development board
3 #
4 # For now we do not support Musca A flash programming using OpenOCD. However, a
5 # work area is configured for flash programming speed up.
6 #
7 # GDB considers all memory as RAM unless target supplies a memory map.
8 # OpenOCD will only send memory map if flash banks are configured. Otherwise,
9 # configure GDB after connection by issuing following commands:
10 # (gdb) mem 0x10200000 0x109FFFFF ro
11 # (gdb) mem 0x00200000 0x009FFFFF ro
12 # (gdb) set mem inaccessible-by-default off
13
14 # ARM Musca A board supports both JTAG and SWD transports.
15 source [find target/swj-dp.tcl]
16
17 # set a safe JTAG clock speed, can be overridden
18 adapter speed 1000
19
20 global _CHIPNAME
21 if { [info exists CHIPNAME] } {
22         set _CHIPNAME $CHIPNAME
23 } else {
24         set _CHIPNAME MUSCA_A
25 }
26
27 if { [info exists CPUTAPID] } {
28         set _CPUTAPID $CPUTAPID
29 } else {
30         set _CPUTAPID 0x6ba00477
31 }
32
33 # Enable CPU1 debugging as a separate GDB target
34 set _ENABLE_CPU1 1
35
36 # Musca A1 has 32KB SRAM banks. Override default work-area-size to 8KB per CPU
37 set WORKAREASIZE_CPU0 0x2000
38 set WORKAREASIZE_CPU1 0x2000
39
40 # Set SRAM bank 1 to be used for work area. Override here if needed.
41 set WORKAREAADDR_CPU0 0x30008000
42 set WORKAREAADDR_CPU1 0x3000A000
43
44 source [find target/arm_corelink_sse200.cfg]