Go Down

Topic: Burnt wrong bootloader on ATtiny85 - how to correct? (Read 2308 times) previous topic - next topic

dc42

Why are you burning a bootloader on an ATtiny? The normal approach is just to upload programs to it via ICSP.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

strykeroz

#16
Jan 05, 2013, 02:37 am Last Edit: Jan 05, 2013, 02:03 pm by strykeroz Reason: 1

Why are you burning a bootloader on an ATtiny? The normal approach is just to upload programs to it via ICSP.
Using the burn the boot loader option in the arduino IDE sets the fuses which determine the micro controller clock source.  Factory settings run it at 1MHz so to run at the faster internal clock of 8 needs this step. By selecting an external clock source like the OP did in error the uC becomes unresponsive unless an external clock source is provided.

Same thing happens with the ATMega328 when setting up a standalone board - once the Arduino UNO boot loader is in place the fuses for an external clock are set and you can't get a reaction from the uC without an external clock signal of some type.

Difference here is there's no boot loader as such, so that process only sets the required fuses.

Geoff

Edit: fixed poor punctuation and spelling.
"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

pico


there's no boot loader as such, so that process only sets the required fuses.


Yes, it seems to be an on-going source of confusion for the attiny series, that "burning a bootloader"under the Arduino tools menu is really only setting the fuses. No bootloader as such is written, and subsequently trying to program the device via tx/rx will simply not work.

WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available too.)

Go Up