[riot-devel] RIOT on the Arduino M0 Pro

Florian Eich eichf at cip.ifi.lmu.de
Thu Dec 22 17:47:45 CET 2016


Did as suggested using IHex. Output:

```
$ edbg -b -t atmel_cm0p -e -p -v -f hello-world.bin
Debugger: ATMEL EDBG CMSIS-DAP FFFFFFFFFFFFFFFFFFFF 01.1F.0118 (SJ)
Target: SAM D21G18A
Erasing...  done.
Programming..................................... done.
Verification...
at address 0x0 expected 0x00, read 0xff
Error: verification failed
```

Regards
Florian

On Thu, 22 Dec 2016 17:02:51 +0100 Antonio Galea <antonio.galea at gmail.com>
wrote:

> 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
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel


-- 
Florian Eich

Fortnerstr. 20
80933 M√ľnchen

+49 170 3896933
eichf at cip.ifi.lmu.de


More information about the devel mailing list