summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/README.txt b/README.txt
index faa5291..928e0b5 100644
--- a/README.txt
+++ b/README.txt
@@ -1,5 +1,12 @@
-Compile and upload
+Set GPNVM bits to boot from flash0:
+
+# openocd -f openocd-due.cfg
+$ telnet localhost 4444
+ > halt
+ > at91sam3 gpnvm set 1
+ > at91sam3 gpnvm show
+
+Compile and flash
$ arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -T script.ld -nostartfiles -nostdlib -o a.elf main.c
-$ arm-none-eabi-objcopy -O ihex -j .text -j .data a.elf a.hex
-$ avrdude -c arduino -p atmel_sam3x8e -v -b 115200 -U flash:w:a.hex
+# openocd -f openocd-due.cfg -c "program a.elf verify reset exit"