aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/SiFive/HiFiveUnleashed.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'debug/targets/SiFive/HiFiveUnleashed.cfg')
-rw-r--r--debug/targets/SiFive/HiFiveUnleashed.cfg18
1 files changed, 9 insertions, 9 deletions
diff --git a/debug/targets/SiFive/HiFiveUnleashed.cfg b/debug/targets/SiFive/HiFiveUnleashed.cfg
index d883914..3aa5538 100644
--- a/debug/targets/SiFive/HiFiveUnleashed.cfg
+++ b/debug/targets/SiFive/HiFiveUnleashed.cfg
@@ -35,11 +35,6 @@ gdb_report_register_access_error enable
# behavior.
riscv expose_csrs 2288
-#>>>
-reset_config trst_and_srst
-adapter_nsrst_assert_width 100
-#<<<
-
flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME_0 0x10040000
init
@@ -53,12 +48,17 @@ foreach t $targets {
$t configure -event gdb-flash-write-end ""
}
-reset
+reset halt
-halt
+# Use a modified bootloader to configure the hardware, especially the DDR controller.
+load_image targets/SiFive/HiFiveUnleashed_setup.bin 0x08000000
+foreach t [target names] {
+ targets $t
+ reg pc 0x08000000
+}
+resume
+wait_halt
# Uncomment this if you want to be able to clobber your SPI Flash, which
# probably you don't since you can do it through Linux
#flash protect 0 0 last off
-
-echo "Ready for Remote Connections"