ATtiny2313 and Arduino software - status

I remember 6 or 7 years ago there was some third-party project to add compilation possibility for some ATtiny MCUs with Arduino software, among was 2313. I have found dozen of it in my junk box and I have several simple projects I can use it instead 328p, however with 20MHz crystal.

Anyone is even aware such project still exist and can be used with current Arduino software?

Here is the one you want:

And yes it works great with the current Arduino software.

I have manage to install new version from github and all passed without single problem. It seems that all details regarding settings are now added in the tool submenus...

Looks it is made quite professionally and straight forward and ready for further testings...

Thank you once again.

You're welcome. I'm glad to hear it worked for you. ATTinyCore is really great. SpenceKonde/DrAzzy has done an amazing job at making practically the entire ATtiny family very accessible to the Arduino community.

Yes, I'm glad too that there is still people doing stuff professionally it can be, even for free. I have noticed DrAzzy is a member here, as well.

One interesting minor glitch, BTW...

As noted on the main github page, ATtiny2313 and 4313 doesn't have bootloader. Regarding very limited amount of flash memory I would not use it anyway, however "Burn bootloader" item is still active. Probably a minor glitch or limitation of Arduino software.

One of the things "burn bootloader" does is set the "fuses" on the processor - hardware settings such as whether to use the internal oscillator, and if so what speed.
Usually the chips come with the internal clock enabled; if you want to use an external crystal you have to use this "burn bootloader" option to set it up.

Good to know...

Anyway, required fuses can be set manually, using a progammer. It is a bit unexpected to use "Burn bootloader" in order just to set fuses. Options which set fuses is are involved anytime firmware is burned, I presume.

noob314:
Anyway, required fuses can be set manually

Sure, but that's more complicated and error-prone for beginners and Arduino is all about making things as simple as possible.

noob314:
using a progammer

You still need to use a programmer even to set the fuses with Burn Bootloader.

noob314:
It is a bit unexpected to use "Burn bootloader" in order just to set fuses.

True. It is documented in the ATTinyCore readme though:

When using a chip for the first time, or after changing the clock speed or BOD settings, you must do "burn bootloader" to set the fuses, even if you are not using the chip with a bootloader

noob314:
Options which set fuses is are involved anytime firmware is burned, I presume.

It depends on what you mean by "firmware". When you do a Tools > Burn Bootloader in the Arduino IDE, the fuses are always set according to the configuration of the board you have selected currently. So if you mean the bootloader by "firmware", then yes. However, "firmware" could just as well mean the sketch. When you do an Upload or an Upload Using Programmer in the Arduino IDE the fuses are not set. They are only set by Burn Bootloader.

Hmm...

During upload firmware (which means MCU executable in any sense of that word) it is possible to set/change fuses by avrdude. But that is obviously different with arduino software and probably consequence of security measure if by accident try to upload firmware with chosen MCU from software to another actually connected, in which case incorrect fuses may lock actual MCU...

Thanks anyway, all is clear here.

noob314:
Anyway, required fuses can be set manually, using a progammer. It is a bit unexpected to use "Burn bootloader" in order just to set fuses.

True... so many things that can be done manually, but are so much easier done automated. Like this. I do agree that "burn bootloader" is not the best description in this case, but other than that it works beautifully :slight_smile: