summaryrefslogtreecommitdiffstats
path: root/README.txt
blob: 928e0b578e724e573e924633eb5ffc1a70a29fda (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"