Hi all,
I have a project that using a custom board based on Arduino Zero and the ATSAMD21G18A. Given the current shortage on IC's I bought a batch of ATSAMD21G16B, knowing that I have more limited memory and flash space but it's ok.
So I did an Arduino bootloader version for this, based on the standard Zero bootloader which I was using already with the other chip.
I did the memory modifications in the linker script , had to change the compiler CMSIS and include paths in the makefile (since the "B" versions of the SAMD21 are not included in the libraries for the Arduino package), and project compiles in ATmel studio and gets in debug mode with a Jlink probe.
However, when It comes to the part that the USB starts, it always shows as unidentified device. Seems the descriptor is not properly handshaked between the PC host and the device.
Here I attach the full project, I was considering doing it as a fork in Github but for the time being, as it is.
Is there any particular change that is needed to allow USB to work properly? I havent changed anything from the hardware that was working for the G18A. Using a 32 Khz crystal, PLL to 48 MHz, USB clock derived from that.
Any help is appreciated