blob: 49e3bc50450a8307bc301a54023de8e370cf3710 (
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"
|