platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
138 stars 105 forks source link

Error compiling for ATmega324PB #152

Closed MCUdude closed 5 years ago

MCUdude commented 5 years ago

Hi! I have a project where PlatformIO is used to program an ATmega324PB. After I upgraded the toolchain I now get this error:

Processing MightyCore (framework: arduino; platform: atmelavr; board: mightycore324)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/mightycore324.html
PLATFORM: Atmel AVR 1.14.0 > MightyCore ATmega324
HARDWARE: ATMEGA324PB 8MHz, 2KB RAM, 31.50KB Flash
PACKAGES: toolchain-atmelavr 1.50400.180928 (5.4.0), framework-arduinoavr 4.0.0
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Wire> 1.0
|   |-- <Wire1> 1.0
|-- <EEPROM> 2.0
Compiling .pio\build\MightyCore\src\leds.cpp.o
Compiling .pio\build\MightyCore\src\main.cpp.o
Compiling .pio\build\MightyCore\src\settings.cpp.o
avr-g++: error: device-specs/specs-atmega324pb: No such file or directory

I looked in the device-specs folder, and the file is indeed missing. Can you fix this soon? 🙂

MCUdude commented 5 years ago

turns out iom324pb.h is also missing.

It also seems like MightyCore v2.0.2 isn't available in my current installation. How can I add this version to PlatformIO? v2.0.2 brings printf support to the print class (Serial.printf is now a thing, at least in my Arduino cores), and I need this for the project I'm working on.

MCUdude commented 5 years ago

@ivankravets could you look into this?

ivankravets commented 5 years ago

Thanks! Please re-run pio update.

MCUdude commented 5 years ago

Cool! Everything seems to work fine now!

Thanks!