Pages: 1 [2]   Go Down
Author Topic: Burnt wrong bootloader on ATtiny85 - how to correct?  (Read 1886 times)
0 Members and 1 Guest are viewing this topic.
United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why are you burning a bootloader on an ATtiny? The normal approach is just to upload programs to it via ICSP.
Logged

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.

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1121
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: January 05, 2013, 08:03:03 am by strykeroz » Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Offline Offline
God Member
*****
Karma: 32
Posts: 828
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

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.)

Pages: 1 [2]   Go Up
Jump to: