summaryrefslogtreecommitdiffstats
path: root/README.txt
blob: 7b6bfbc64dfeeb8e87d9385fa9e35a49b2e6c978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
# openocd -f openocd-due.cfg -c "program a.elf verify reset exit"