aboutsummaryrefslogtreecommitdiffstats
path: root/support/openocd/flash.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'support/openocd/flash.cfg')
-rw-r--r--support/openocd/flash.cfg6
1 files changed, 5 insertions, 1 deletions
diff --git a/support/openocd/flash.cfg b/support/openocd/flash.cfg
index eceac32..41c6532 100644
--- a/support/openocd/flash.cfg
+++ b/support/openocd/flash.cfg
@@ -63,14 +63,18 @@ set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x5000 -work-area-backup 0
+# TODO: native
+#$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0
flash bank stm32x 0x08000000 0x00020000 0 0 $_TARGETNAME
proc flash_chip {} {
echo "Halting..."
halt
- echo "Erasing 128KB..."
+ echo "Erasing..."
flash erase_address 0x08000000 0x20000
+ # TODO: native
+ #flash erase_address 0x08000000 0x80000
echo "Flashing image..."
flash write_bank 0 build/maple.bin 0
echo "Verifying image..."