summaryrefslogtreecommitdiffstats
path: root/uc_str912/scripts/str91x-configs
diff options
context:
space:
mode:
authorBert Lange <b.lange@fzd.de>2011-11-07 15:41:50 +0100
committerBert Lange <b.lange@fzd.de>2011-11-07 15:41:50 +0100
commitd190f1c37139ec38667a3d6e566dbe1b0549f84d (patch)
tree7885f39318cb7852afc24992dd08cb6bb953ac03 /uc_str912/scripts/str91x-configs
parentacc2681723f43b3c8ccb29055bec9d63cb863c78 (diff)
downloadzpu-d190f1c37139ec38667a3d6e566dbe1b0549f84d.zip
zpu-d190f1c37139ec38667a3d6e566dbe1b0549f84d.tar.gz
initial commit
Diffstat (limited to 'uc_str912/scripts/str91x-configs')
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_flash.gdb6
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_flasherase.ocd6
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_flashprobe.gdb10
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_flashprogram.ocd7
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-erase.cfg43
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-program.cfg43
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_jtagkey.cfg42
-rw-r--r--uc_str912/scripts/str91x-configs/str91x_ram.gdb6
8 files changed, 163 insertions, 0 deletions
diff --git a/uc_str912/scripts/str91x-configs/str91x_flash.gdb b/uc_str912/scripts/str91x-configs/str91x_flash.gdb
new file mode 100644
index 0000000..2c194e2
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_flash.gdb
@@ -0,0 +1,6 @@
+target remote localhost:3333
+monitor reset
+monitor sleep 500
+monitor poll
+monitor soft_reset_halt
+monitor arm7_9 force_hw_bkpts enable
diff --git a/uc_str912/scripts/str91x-configs/str91x_flasherase.ocd b/uc_str912/scripts/str91x-configs/str91x_flasherase.ocd
new file mode 100644
index 0000000..7b998ea
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_flasherase.ocd
@@ -0,0 +1,6 @@
+wait_halt
+str9x flash_config 4 2 0 0x80000
+flash protect 0 0 10 off
+flash erase 0 0 10
+reset
+shutdown
diff --git a/uc_str912/scripts/str91x-configs/str91x_flashprobe.gdb b/uc_str912/scripts/str91x-configs/str91x_flashprobe.gdb
new file mode 100644
index 0000000..aa528d3
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_flashprobe.gdb
@@ -0,0 +1,10 @@
+target remote localhost:3333
+monitor reset
+monitor sleep 500
+monitor poll
+monitor soft_reset_halt
+monitor flash protect 0 0 10 off
+monitor flash probe 0
+monitor flash info 0
+monitor reset run
+monitor sleep 500
diff --git a/uc_str912/scripts/str91x-configs/str91x_flashprogram.ocd b/uc_str912/scripts/str91x-configs/str91x_flashprogram.ocd
new file mode 100644
index 0000000..ad854e1
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_flashprogram.ocd
@@ -0,0 +1,7 @@
+wait_halt
+str9x flash_config 4 2 0 0x80000
+flash protect 0 0 10 off
+flash erase 0 0 10
+flash write 0 main.bin 0
+reset
+shutdown
diff --git a/uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-erase.cfg b/uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-erase.cfg
new file mode 100644
index 0000000..16567d3
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-erase.cfg
@@ -0,0 +1,43 @@
+#daemon configuration
+telnet_port 4444
+gdb_port 3333
+
+
+#interface
+interface ft2232
+ft2232_device_desc "Amontec JTAGkey A"
+ft2232_layout jtagkey
+#jtag_speed 1
+jtag_nsrst_delay 200
+jtag_ntrst_delay 200
+
+
+#use combined on interfaces or targets that can't set TRST/SRST separately
+reset_config trst_and_srst
+
+
+#jtag scan chain
+#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
+jtag_device 8 0x1 0x1 0xfe
+jtag_device 4 0x1 0xf 0xe
+jtag_device 5 0x1 0x1 0x1e
+
+
+#target configuration
+daemon_startup reset
+
+
+#target <type> <startup mode>
+#target arm966e <endianness> <reset mode> <chainpos> <variant>
+target arm966e little reset_init 1 arm966e
+run_and_halt_time 0 30
+
+
+working_area 0 0x50000000 16384 nobackup
+
+
+#flash bank <driver> <base> <size> <chip_width> <bus_width>
+flash bank str9x 0x00000000 0x00080000 0 0 0
+
+#Script used for FLASH erasing
+target_script 0 reset C:\openocd-configs\str91x-configs\str91x_flasherase.ocd
diff --git a/uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-program.cfg b/uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-program.cfg
new file mode 100644
index 0000000..c264096
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_jtagkey-flash-program.cfg
@@ -0,0 +1,43 @@
+#daemon configuration
+telnet_port 4444
+gdb_port 3333
+
+
+#interface
+interface ft2232
+ft2232_device_desc "Amontec JTAGkey A"
+ft2232_layout jtagkey
+#jtag_speed 1
+jtag_nsrst_delay 200
+jtag_ntrst_delay 200
+
+
+#use combined on interfaces or targets that can't set TRST/SRST separately
+reset_config trst_and_srst
+
+
+#jtag scan chain
+#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
+jtag_device 8 0x1 0x1 0xfe
+jtag_device 4 0x1 0xf 0xe
+jtag_device 5 0x1 0x1 0x1e
+
+
+#target configuration
+daemon_startup reset
+
+
+#target <type> <startup mode>
+#target arm966e <endianness> <reset mode> <chainpos> <variant>
+target arm966e little reset_init 1 arm966e
+run_and_halt_time 0 30
+
+
+working_area 0 0x50000000 16384 nobackup
+
+
+#flash bank <driver> <base> <size> <chip_width> <bus_width>
+flash bank str9x 0x00000000 0x00080000 0 0 0
+
+#Script used for FLASH programming
+target_script 0 reset C:\openocd-configs\str91x-configs\str91x_flashprogram.ocd
diff --git a/uc_str912/scripts/str91x-configs/str91x_jtagkey.cfg b/uc_str912/scripts/str91x-configs/str91x_jtagkey.cfg
new file mode 100644
index 0000000..6394ddc
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_jtagkey.cfg
@@ -0,0 +1,42 @@
+#daemon configuration
+telnet_port 4444
+gdb_port 3333
+
+
+#interface
+interface ft2232
+ft2232_device_desc "Amontec JTAGkey A"
+ft2232_layout jtagkey
+#jtag_speed 1
+
+
+#use combined on interfaces or targets that can't set TRST/SRST separately
+reset_config trst_and_srst
+
+
+#jtag scan chain
+#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
+jtag_device 8 0x1 0x1 0xfe
+jtag_device 4 0x1 0xf 0xe
+jtag_device 5 0x1 0x1 0x1e
+
+
+#target configuration
+daemon_startup reset
+
+
+#target <type> <startup mode>
+#target arm966e <endianness> <reset mode> <chainpos> <variant>
+target arm966e little reset_halt 1 arm966e
+run_and_halt_time 0 30
+
+
+working_area 0 0x50000000 16384 nobackup
+
+
+#flash bank <driver> <base> <size> <chip_width> <bus_width>
+flash bank str9x 0x00000000 0x00080000 0 0 0
+
+
+# For more information about the configuration files, take a look at:
+# http://openfacts.berlios.de/index-en.phtml?title=Open On-Chip Debugger
diff --git a/uc_str912/scripts/str91x-configs/str91x_ram.gdb b/uc_str912/scripts/str91x-configs/str91x_ram.gdb
new file mode 100644
index 0000000..de9e060
--- /dev/null
+++ b/uc_str912/scripts/str91x-configs/str91x_ram.gdb
@@ -0,0 +1,6 @@
+target remote localhost:3333
+monitor reset
+monitor sleep 500
+monitor poll
+monitor soft_reset_halt
+monitor arm7_9 sw_bkpts enable
OpenPOWER on IntegriCloud