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

Cannot upload bootloader to Attiny85 #860

Open
legalmachinery opened this issue May 24, 2024 · 2 comments
Open

Cannot upload bootloader to Attiny85 #860

legalmachinery opened this issue May 24, 2024 · 2 comments

Comments

@legalmachinery
Copy link

Arduino IDE will not upload bootloader to a new Attiny85, returning this error:

free(): invalid next size (normal)
Error while burning bootloader.

The chip is a brand new one from RS-Online.com, set on 1MHz internal with Optiboot and the USBtinyISP from Sparkfun running SLOW.

The system: Debian 12, Arduino IDE 1.8.19 from the package manager. This core is installed via board manager. Just for the record, the D.A. Mellis core will not upload bootloader either. Everything worked fine on a previous system running Debian 11 and the older Arduino version. The programmer does blink but then ends with the above error.
I do appreciate the IDE from the Linux package manager must not be used with this core, but does it mean it will not work at all and under no circumstances? As I prefer installing software from the package manager rather than getting the system messed up with third party blobs. Also have tried other chips with a bootloader already installed on them but to no avail. Thank you

@legalmachinery
Copy link
Author

UPDATE

I have now uploaded a test.hex file to the chip with avrdude and it worked out of the box. Then I exported my sketch in Arduino IDE to a hex file, uploaded with avrdude and it works straight away. What's going on here?

I will now need to investigate how it works with supposedly no bootloader, what clock, fuses etc. It's quite weird as my sketch actually controls an SPI digipot MCP4261 and it works out of the box with no previous testing or fine tuning...

@linxcow
Copy link

linxcow commented Oct 10, 2024

UPDATE

I have now uploaded a test.hex file to the chip with avrdude and it worked out of the box. Then I exported my sketch in Arduino IDE to a hex file, uploaded with avrdude and it works straight away. What's going on here?

I will now need to investigate how it works with supposedly no bootloader, what clock, fuses etc. It's quite weird as my sketch actually controls an SPI digipot MCP4261 and it works out of the box with no previous testing or fine tuning...

There is also an option to check or write fuses using avrdude

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

No branches or pull requests

2 participants