[riot-devel] RIOT on the Arduino M0 Pro

Antonio Galea antonio.galea at gmail.com
Thu Dec 22 17:02:51 CET 2016


On Thu, Dec 22, 2016 at 4:43 PM, Florian Eich <eichf at cip.ifi.lmu.de> wrote:
>
> thank you very much for your time. I tried with edbg, as suggested, and I am getting
>
> ```
> $ edbg -bv -t atmel_cm0p -e -f ~/workbench/RIOT/examples/hello-world/bin/arduino-zero/hello-world.elf
> Debugger: ATMEL EDBG CMSIS-DAP FFFFFFFFFFFFFFFFFFFF 01.1F.0118 (SJ)
> Target: SAM D21G18A
> Erasing...  done.
> Verification...
> at address 0x0 expected 0x7f, read 0xff
> Error: verification failed
> ```
> Now it seems to me that at least the erase was successful, but the error for `BOARD=arduino-zero make flash` remains unchanged.

Try like this:

  edbg -b -t atmel_cm0p -e -p -v -f filename.bin

in order to do a full erase/program/verify cycle. To produce a .BIN
file, you need to convert the .hex - for instance with ihex.py
(https://github.com/ant9000/IHex/):

  python ihex.py file.hex > file.bin

Antonio


More information about the devel mailing list