summaryrefslogtreecommitdiffstats
path: root/README.txt
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-09-15 15:11:59 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-09-15 15:11:59 +0800
commitea3f98ea7a8edca201780aac5305f45e1fd81b75 (patch)
treefa022b3ce037b0d6c57d853bcde0b4776a132f89 /README.txt
parent5cc042ad7d1bfb6e37770b8b66315fa396ca9bb8 (diff)
downloadbare-metal-arduino-due-ea3f98ea7a8edca201780aac5305f45e1fd81b75.tar.gz
Readme.
Diffstat (limited to 'README.txt')
-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"