platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
78 stars 105 forks source link

Add support for ElectronicCats SAMD/E/R/C boards and Arduino core #155

Open maxgerhardt opened 3 years ago

maxgerhardt commented 3 years ago

Based on https://community.platformio.org/t/platformio-microchip-samr34-lora/10789/12.

The store https://electroniccats.com/store/ sells a few Atmel SAMD/E/R/C based development boards, for example the BastWAN (RAK4260 module with ATSAMR34J18), the Bast Pro Mini M0 (ATSAMD21E18A), CatWAN USB Stick (ATSAMD21E18A) etc.

They have their own Arduino core impelemntation hosted at https://github.com/ElectronicCats/Arduino_Boards_Index with Arduino IDE support.

I have already created a proof of concept by creating a minimal board JSON file for the BastWAN board and new packages for the framework-arduino-samd, framework-cmsis-atmel and tool-bossac (which seems to need their special version) at https://github.com/maxgerhardt/pio-bastwan-test, which was confirmed to be working in the referenced thread.

Their Arduino-core that one gets via their Arduino IDE package is re-uploaded at https://github.com/maxgerhardt/pio-electroniccats-samd and the updated Atmel CMSIS headers they use is at https://github.com/maxgerhardt/pio-cmsis-atmel-samr.git, but the original source seems to be at https://github.com/ElectronicCats/ArduinoCore-samd.

Would be nice to see integration of those boards and that core in PlatformIO :)

maxgerhardt commented 3 years ago

There also seems to be a PR open in the referenced repo at https://github.com/ElectronicCats/ArduinoCore-samd/pull/4 regarding PlatformIO support that turn the Arduino core repository into a platform. No board files though.