Platformio - Proton-Electronics/proton-plc GitHub Wiki

Arduino IDE

Proton Arduino PLC A5

Contents

Hardware

Platform Atmel AVR: Atmel AVR 8-bit MCUs deliver a unique combination of performance, power efficiency and design flexibility. Optimized to speed time to market-and easily adapt to new ones-they are based on the industry’s most code-efficient architecture for C and assembly programming

Microcontroller ATMEGA328P
Frequency 16MHz
Flash 30KB
RAM 2KB
Vendor Arduino

Configuration

Please use nanoatmega328new ID for board option in platformio.ini (Project Configuration File):

[env:nanoatmega328new]
platform = atmelavr
framework = arduino
board = nanoatmega328new

board_build.variants_dir = ${platformio.libdeps_dir}/${this.__env__}
board_build.variant = proton_a5

lib_deps =
  proton_a5= https://github.com/Proton-Electronics/platform_variants

You can override default Arduino Nano ATmega328 (New Bootloader) settings per build environment using board_*** option, where *** is a JSON object path from board manifest nanoatmega328new.json. For example, board_build.mcu, board_build.f_cpu, etc.

[env:nanoatmega328new]
platform = atmelavr
framework = arduino
board = nanoatmega328new
board_build.variants_dir = ${platformio.libdeps_dir}/${this.__env__}
board_build.variant = proton_a5

; change microcontroller
board_build.mcu = atmega328p

; change MCU frequency
board_build.f_cpu = 16000000L

lib_deps =
  proton_a5= https://github.com/Proton-Electronics/platform_variants

Debugging

Debugging - “1-click” solution for debugging with a zero configuration.

Warning

You will need to install debug tool drivers depending on your system. Please click on compatible debug tool below for the further instructions and configuration information.

You can switch between debugging Tools & Debug Probes using debug_tool option in “platformio.ini” (Project Configuration File).

Arduino Nano ATmega328 (New Bootloader) has on-board debug probe and IS READY for debugging. You don’t need to use/buy external debug probe.

Compatible Tools On-board Default
avr-stub Yes Yes
simavr Yes

Frameworks

Name Description
Arduino Arduino Wiring-based Framework allows writing ross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences