Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the entire tinyAVR-2 family #36

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

MCUdude
Copy link
Contributor

@MCUdude MCUdude commented Jan 18, 2022

Support for the entire tinyAVR-2 series is currently missing. This PR solved this.

Closes #25
Closes platformio/platform-atmelavr#268
Closes platformio/platform-atmelavr#263

@valeros valeros merged commit 11007cc into platformio:develop Jan 18, 2022
@valeros
Copy link
Member

valeros commented Jan 18, 2022

Awesome, thanks!

@MCUdude
Copy link
Contributor Author

MCUdude commented Jan 18, 2022

@valeros you're welcome!

BTW the latest avrdude.conf file lacks support for the entire tinyAVR-2 family and the AVR-DDs.
Would be great if you could fix this!

You can find the missing board definitions for the entire tinyAVR-2 and AVR-DD lineup here in the official avrdude.conf file:

https://github.com/avrdudes/avrdude/blob/main/src/avrdude.conf.in

@valeros
Copy link
Member

valeros commented Jan 18, 2022

Could you please point me what MCU are missing exactly?

@MCUdude
Copy link
Contributor Author

MCUdude commented Jan 18, 2022

Could you please point me what MCU are missing exactly?

Sure! Please add these to Avrdude.conf

tinyAVR-2:

  • ATtiny424, ATtiny824, ATtiny1624, ATtiny3224
  • ATtiny426, ATtiny826, ATtiny1626, ATtiny3226
  • ATtiny427, ATtiny827, ATtiny1627, ATtiny3227

AVR-DD:

  • AVR16DD14, AVR16DD20, AVR16DD28, AVR16DD32
  • AVR32DD14, AVR32DD20, AVR32DD28, AVR32DD32
  • AVR64DD14, AVR64DD20, AVR64DD28, AVR64DD32

@MCUdude
Copy link
Contributor Author

MCUdude commented Jan 18, 2022

But really, it isn't necessary to have a separate Avrdude version just for atmelmegaavr targets. Avrdude supports both.

@valeros
Copy link
Member

valeros commented Jan 18, 2022

Thanks, the avrdude packages have been updated to support the latest TinyAVR and AVR-DD targets.

@MCUdude
Copy link
Contributor Author

MCUdude commented Jan 18, 2022

Thank you!

@marco-117
Copy link

Hi,

i tried to build an empty project in platformio for the attiny1624.
I get the error message, that the TCD0 timer for millis dont exist.
According to datasheet ther is no TCD timer available, only TCA and TCB.
After changing the flags to TCB, i can build succesfully, but i dont know witch timer is the correct one for millis.

"extra_flags": "-DARDUINO_attinyxy4 -DMILLIS_USE_TIMERB0 -DUARTBAUD5V",

@MCUdude
Copy link
Contributor Author

MCUdude commented Feb 8, 2022

@marco-117 I've just submitted PR #39 that uses timer TCB1 for millis() instead. This is the default megaTinyCore timer for the tinyAVR-2 series chips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for tinyAVR 2 Series MCU like attiny824 Suppport for ATTINY1624 Support tinyAVR 2 series
3 participants