Hello,
I have been using the SparkFun RedBoard Turbo for the last few months and love it. The power of the SAMD21 and the Arduino form factor is great.
I would now like to create my own SAMD21 Development Board for learning purposes. However, from the datasheet, I can tell that this is a very complex microcontroller. So, I figured that maybe Sparkfun could help me because from my past buying products from them, they have been very helpful and inspirational.
I would really appreciate some help.
First of all, could you explain to me how these boards are boot loaded? The SAMD21 chip from the factory does not come with a boot loader on it, so what files or tools do you need? I have read that many people use the Atmel Ice and Atmel Studio and that you use the pins SWDIO, SWCLK, and RESET, do you guys use this? Is there any tutorial you can direct me to? What boot loader allows the board to work with the Arduino IDE?
Secondly, where do I set the SERCOM Ports? I saw a well explained tutorial that Sparkfun made about setting SERCOMs, however, this took place in the Arduino IDE I believe. Can I set the SERCOMs in the boot loader? If so, how?
Finally, for the project that I am doing, my board needs to connect to many different sensors using up all 6 available SERCOM ports. If I want to use an existing library designed for a different board with the SAMD21, where do you modify what pins are used in a library?
For example, in my project, I am using different sensors to upload data to the cloud. I am using the NINA-W102, similar to what is used on the Arduino MKR WiFi 1010 and Nano 33 IOT. However, I am not using the same SERCOM ports that they are using. So, if I wanted to use their WiFiNINA library to help upload my sensor data, where would I change the SERCOM pins used?
Thank you so much. I feel that this is a very long question, but I would really like some help.
Thanks again