So this is about adding support for that in https://github.com/platformio/platform-atmelmegaavr/.
Board support is added in the form of JSON files in the boards/
folder of the platform. We already have AVR32DA28.json and similiar. The AVR32DD14 was once mentioned in https://github.com/platformio/platform-atmelmegaavr/pull/36. It also supported in the SpenceKondeDxCode:
So judging from that, we can just create a AVR32DD14.json
file like this
Sadly this also needs a newer toolchain version with AVR32DD14 support. Taking the exact same one from https://drazzy.com/package_drazzy.com_index.json, we need version 7.3.0-atmel3.6.1-azduino6
, the downlink URLs being
URLS
"name": "avr-gcc",
"version": "7.3.0-atmel3.6.1-azduino6",
"systems": [
{
"size": "38098458",
"checksum": "SHA-256:75b9740cf47d41177aff14f9674e25ad378e29fae7633920cdcc7b056e8e9fbe",
"host": "aarch64-pc-linux-gnu",
"archiveFileName": "avr-gcc-7.3.0-atmel3.6.1-azduino6-aarch64-pc-linux-gnu.tar.bz2",
"url": "https://spencekondetoolchains.s3.amazonaws.com/avr-gcc-7.3.0-atmel3.6.1-azduino6-aarch64-pc-linux-gnu.tar.bz2"
},
{
"size": "34520389",
"checksum": "SHA-256:b41a827e92f6a87c45f2e37029865b6bbd57e0eeadb639be66416b89e8f77b78",
"host": "arm-linux-gnueabihf",
"archiveFileName": "avr-gcc-7.3.0-atmel3.6.1-azduino6-arm-linux-gnueabihf.tar.bz2",
"url": "https://spencekondetoolchains.s3.amazonaws.com/avr-gcc-7.3.0-atmel3.6.1-azduino6-arm-linux-gnueabihf.tar.bz2"
},
{
"size": "37148876",
"checksum": "SHA-256:24fc6bcd0786d3015346342a2fea5701a0ce11eeea178bac1c1d2b6a9e6d6d03",
"host": "i686-pc-linux-gnu",
"archiveFileName": "avr-gcc-7.3.0-atmel3.6.1-azduino6-i686-pc-linux-gnu.tar.bz2",
"url": "https://spencekondetoolchains.s3.amazonaws.com/avr-gcc-7.3.0-atmel3.6.1-azduino6-i686-pc-linux-gnu.tar.bz2"
},
{
"size": "37715121",
"checksum": "SHA-256:7c4cc781343cbae77328e7d69433458c105d1efca87a56863947cb73966fe821",
"host": "x86_64-apple-darwin14",
"archiveFileName": "avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-apple-darwin14.tar.bz2",
"url": "https://spencekondetoolchains.s3.amazonaws.com/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-apple-darwin14.tar.bz2"
},
{
"size": "37714803",
"checksum": "SHA-256:3a4be4dde46b9ee5af1d89fb50512dea0a1c49fca5f2b18357bd5fd12d6c330d",
"host": "x86_64-pc-linux-gnu",
"archiveFileName": "avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2",
"url": "https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2"
},
{
"size": "44740781",
"checksum": "SHA-256:4b4a25ca7935402998b27befd9439300ad642c4e21b0becb3f945748090c7c74",
"host": "i686-w64-mingw32",
"archiveFileName": "avr-gcc-7.3.0-atmel3.6.1-azduino6-i686-w64-mingw32.tar.bz2",
"url": "https://spencekondetoolchains.s3.amazonaws.com/avr-gcc-7.3.0-atmel3.6.1-azduino6-i686-w64-mingw32.tar.bz2"
}
]
So, if you want to test this out, you can download this repo and try to build + upload.
For setting the uploader (default: jtag2updi), please also see here.