I would like to know what is the procedure for adding a custom board to the Arduino IDE?
My custom board is similar to the Arduino Zero. Instead of using the ATSAMD21G18, my board is based around the ATSAMC21G18. I also have the Atmel/Microchip SAMC21 Xplained development board.
I have found some open source code where the author has adapted/forked the Arduino SAMD21 code and made it work for the SAMC21 Xplained board (here). The author has stuck to the Arduino hardware folder structure and has added the SAMC21 Xplained to the
As a test, when I install the Arduino SAMD21 from the Arduino Board Manager, I noticed that it installed the hardware files in the following directory:
I have read that to add hardware files to the board manager I need to create a
.json file with the appropriate details. More information here. However, as far as I can tell, this requires me to zip the SAMC21 hardware files into a tarball and provide a URL to that tarball. I also need to generate and insert a SHA in the
Am I on the right path with the
Or should I just download the SAMC21 hardware files and place them in the
%LOCALAPPDATA%\Arduino15\packages\arduino\hardware\samd\ folder next to the
My last resort would be to just copy the files into the existing SAMD21 hardware folder?
I have looked into the following Arduino SE questions but they do not answer the question satisfactorily.
- upload.tool not used in custom boards.txt?
- Arduino Due custom platform for school and library installation (I would prefer not to use the Arduino IDE in portable mode.)