My program works using the Arduino IDE and using the Arduino as ISP (AttinyCore). On Platformio it seem program okay and I get no errors but the chip doesn’t seem to program. This is my first time using Platformio so any help would be greatly appreciated.
Bryan
platformio.ini:
[env:attiny167]
platform = atmelavr
board = attiny167
board_build.mcu = attiny167
; change MCU frequency
board_build.f_cpu = 8000000L
framework = arduino
upload_protocol = stk500v1
; each flag in a new line
upload_flags =
-P$UPLOAD_PORT
-b$UPLOAD_SPEED
; edit these lines
upload_port = COM9
upload_speed = 19200
Terminal Output
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/attiny167.html
PLATFORM: Atmel AVR 2.0.0 > Generic ATtiny167
HARDWARE: ATTINY167 8MHz, 512B RAM, 16KB Flash
PACKAGES:
- framework-arduino-avr-attiny 1.3.2
- tool-avrdude 1.60300.190424 (6.3.0)
- toolchain-atmelavr 1.50400.190710 (5.4.0)
Converting RFOG_FIRMWARE_REV_6_.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 11 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\attiny167\src\RFOG_FIRMWARE_REV_6_.ino.cpp.o
Linking .pio\build\attiny167\firmware.elf
Checking size .pio\build\attiny167\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 11.3% (used 58 bytes from 512 bytes)
Flash: [==== ] 35.6% (used 5836 bytes from 16384 bytes)
Configuring upload protocol...
AVAILABLE: stk500v1
CURRENT: upload_protocol = stk500v1
Programming .pio\build\attiny167\firmware.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9487 (probably t167)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file ".pio\build\attiny167\firmware.hex"
avrdude: writing flash (5836 bytes):
Writing | ################################################## | 100% 6.41s
avrdude: 5836 bytes of flash written
avrdude: verifying flash memory against .pio\build\attiny167\firmware.hex:
avrdude: load data flash data from input file .pio\build\attiny167\firmware.hex:
avrdude: input file .pio\build\attiny167\firmware.hex contains 5836 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.58s
avrdude: verifying ...
avrdude: 5836 bytes of flash verified
avrdude: safemode: Fuses OK (E:FF, H:DF, L:62)
avrdude done. Thank you.