X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=oocd_flash_lpc2148.script;fp=oocd_flash_lpc2148.script;h=8ec897b43823a69a5fa1d56dff4fc190c3adcbbd;hb=221783226c8f457e094a04c5f4da9e2e3e7e8b42;hp=0000000000000000000000000000000000000000;hpb=d2311161540192cbc06d5bb19f3767bfc80274c2;p=fw%2Fopenalt diff --git a/oocd_flash_lpc2148.script b/oocd_flash_lpc2148.script new file mode 100644 index 0000000..8ec897b --- /dev/null +++ b/oocd_flash_lpc2148.script @@ -0,0 +1,26 @@ +# +# The following commands will be executed on +# reset (because of run_and_init in the config-file) +# - wait for target halt +# - erase memory +# - flash content of file main.bin into target-memory +# - shutdown openocd +# +# created by Martin Thomas +# http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects +# based on information from Dominic Rath +# +arm7_9 dcc_downloads enable +wait_halt +sleep 10 +poll +flash probe 0 +# erase first bank only: +flash erase 0 0 26 +flash write 0 lpc2148.bin 0x0 +#flash write 0 scripts/lpc2148_freertos.bin 0x0 +#flash write 0 scripts/main.bin 0x0 +reset run +sleep 10 +shutdown +