Hey Everyone,
Over the past month, I have designed and built a custom SAMD21J18A microcontroller board for a home automation project I am working on. I designed this board with the SAMD21J18A because I needed a lot of pins to connect sensors, modules, etc.
Throughout the design process, I expected to have zero issues with using the latest version of the Arduino SAMD Core. Unfortunately, that I not the case.
A lot of my sensors/modules use the SPI and I2C libraries. The major problem that I am having is that when I upload code with these libraries (it always uploads just fine), there is NEVER a response in the serial console.
For example, I just uploaded examples from the Arduino SAMD Core SPI and I2C libraries, and I never got any answer in the serial console.
At first, I thought that maybe the serial console was not working, however, if I write some basic code with Serial.print("hello world"); it works just fine.
Also, before I continue, I wanted to mention that I did modify the SAMD21 bootloader as well as the boards.txt and variants files. I am able to upload simple pieces of code such as blink, but not any code with libraries from the arduino samd core such as SPI, I2C...
If I had to guess, I think that there are some incompatibility issues with the SAMD21J18A, and the standard SAMD21G18A. To further test this, I used a spare Arduino MKR board I had with the SPI and I2C libraries and after uploading, the serial monitor successfully printed information.
What do I need to change to fix these incompatibility issues? I have seen existing libraries forked off from the Arduino SAMD Core but they are all extremely outdated.
I'm sure its possible, and would really appreciate any help.
Thanks again!!
