Burning bootloader via avr dude in terminal and usbasp

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello ALL

 

I have setup a bootloader with the 'ATtinycore' library in Arduino (latest version). It works like a charm. However, when I try to upload the hex file 'with_bootloader' (the one Arduino exports) via avrdude in terminal it does not work properly. Although, it uploads... 

 

Anyway, I would like to use the same setting from the Arduino and use it afterwards with the avrdude via terminal. I am using the usbasp programmer and I can upload my hex file just fine.

 

In addition, is it possible that the program is faster uploaded via "Arduino's avrdude" than via "terminal's avrdude"? Indeed, I have not specified the baud rate, however, I am using the USBasp and my code is like this:

 

avrdude -p t45 -c usbasp -U flash:w:(filename).ino.with_bootloader.hex

 

Any suggestions are more than welcome!

 

Best. 

Bravo!!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Mu,

 

I've just burned a bunch of ATTiny85's.  I needed to burn the fuses correctly to indicate internal vs external clock cntrl. If you are buying ATTiny's from a place like Digikey you may find they are fused differently than you expect. Mine were fused externally for 8MHz.

 

Cheers

 

Jeff

J Hutzler
IT/Electronics Teacher

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The Arduino IDE burn bootloader not only uploads the code, but also sets the fuses for the device.

Your manual upload of the code does not. So on a fresh chip you are only half done with the programming.

 

1) Use the Arduino IDE to do the burn bootloader

2) use the command line avrdude to read back the fuse settings that was set in the first step.

 

3) On each new chip upload you program + bootloader, then set the fuses to match those from step 2.

4) repeat step 3 for each fresh new chip you want to program.

 

Jim

 

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello!

 

Thank you both, I am using AVRDUDESS (on PC) and AVRFuses (on MAC) to burn the Flash and FUSES... It seems it works ok, any of you familiar with these two? 

 

Best.

 

 

Bravo!!!