diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-08-31 22:05:39 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-08-31 22:05:39 -0400 |
commit | 0ccec95446d4c7f3ea47a46d267c791fb22bb8d4 (patch) | |
tree | 0ea524020fc464c33b8f988e3f182e908105e1fc /support/openocd | |
parent | 02d7b08f0497096f21e41922e0efb54c4ef33bab (diff) | |
download | librambutan-0ccec95446d4c7f3ea47a46d267c791fb22bb8d4.tar.gz librambutan-0ccec95446d4c7f3ea47a46d267c791fb22bb8d4.zip |
Portability fixes
Still not working but fixed a lot of merge errors
Diffstat (limited to 'support/openocd')
-rw-r--r-- | support/openocd/flash.cfg | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/support/openocd/flash.cfg b/support/openocd/flash.cfg index 25fe23f..fcd9561 100644 --- a/support/openocd/flash.cfg +++ b/support/openocd/flash.cfg @@ -62,6 +62,8 @@ jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 \ 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 @@ -70,7 +72,9 @@ proc flash_chip {} { echo "Halting..." halt echo "Erasing..." - flash erase_address 0x08000000 0x80000 + 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..." |