- install pymcuprog 'pip install pymcuprog'
- setup PlatformIO CLI and setup a project per their guide.
- Make sure to setup your udev rules and correct access to ports
- Setup atmelmegaavr for platformIO
- For AVR16DD14 need to create custom board json. Example created here boards/avr16dd14.json. Setup following this guide
- Write some code!
- Using the example platformio.ini file, you can upload the code to the device using the following command:
pio run --target upload
Note: Ensure you change the device port to the correct port for your programming device found in the /dev/ directory.
Depends on your setup. For my example I used the following TTL to USB adapter Then connect the following pins: VCC -> VCC GND -> GND TX -> RX with a BAT85 diode in series. Band side towards the TX pin. RX -> UPDI pin
More info Here