BOSSA icon indicating copy to clipboard operation
BOSSA copied to clipboard

BOSSA not finding board based on SAMD21J17 (128k/16k) variant

Open andrewjfox opened this issue 5 years ago • 1 comments

Hi, I have a custom board based on the Arduino zero, but with smaller SAMD21J17A (128k/16k) device instead of the 18A used in the zero. I've cloned the zero bootloader andand made all the relevant device specific settings as well as the board config files, the makefile and the linker script but can't get BOSSA to detect the device.

I can confirm that the device enumerates as USB device and appears as Arduino Zero bootloader on COM port.

It's very frustrating since I figure if the BOSSA can detect a zero (samd12x18) it must be able to detect the smaller memory variant. I've tried BOSSA versions from 1.5 - 1.8 but all give same error. If someone can help I'd be truly grateful.

andrewjfox avatar Jul 28 '18 04:07 andrewjfox

Post the output of a debug run of bossac:

bossac.exe -d -i -p COM4 Set binary mode version()=v1.1 [Arduino:XYZ] Mar 13 2018 19:12:33 Connected at 921600 baud readWord(addr=0)=0x2000d6a0 readWord(addr=0xe000ed00)=0x410fc241 readWord(addr=0x4)=0x58d readWord(addr=0x41002018)=0x60060005 write(addr=0x20004000,size=0x34) writeWord(addr=0x20004030,value=0x80) writeWord(addr=0x20004020,value=0x20008000) version()=v1.1 [Arduino:XYZ] Mar 13 2018 19:12:33 readByte(addr=0x804000)=0x39 readByte(addr=0x804001)=0x92 readByte(addr=0x804008)=0xff readByte(addr=0x804009)=0xff readByte(addr=0x80400a)=0xff readByte(addr=0x80400b)=0xff Device : ATSAMD51x19 Version : v1.1 [Arduino:XYZ] Mar 13 2018 19:12:33 Address : 0x0 Pages : 1024 Page Size : 512 bytes Total Size : 512KB Planes : 1 Lock Regions : 32 Locked : none Security : false BOD : false BOR : true

shumatech avatar Aug 25 '18 20:08 shumatech