diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2024-09-15 15:11:59 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2024-09-15 15:11:59 +0800 |
| commit | ea3f98ea7a8edca201780aac5305f45e1fd81b75 (patch) | |
| tree | fa022b3ce037b0d6c57d853bcde0b4776a132f89 /README.txt | |
| parent | 5cc042ad7d1bfb6e37770b8b66315fa396ca9bb8 (diff) | |
| download | bare-metal-arduino-due-ea3f98ea7a8edca201780aac5305f45e1fd81b75.tar.gz | |
Readme.
Diffstat (limited to 'README.txt')
| -rw-r--r-- | README.txt | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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" |
