Pages: [1]   Go Down
Author Topic: [ISP] Arduino without bootloader  (Read 455 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 20
Prototype Limited Edition owner! lol
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I made a small board to flash my ATMEGA168 chip (with a 16Mhz crystal). Flashing works fine with my USBasp programmer.

I did a Chip Erase, then set the fuses to Low: 0xFF (external crystal), High: 0xDF (only SPI enabled), Extended: 0xF9, and Lock bits to 0xFF (or 0x3F) (No mem restrictions).

To problem is: when i compile the Blink example and flash the blink.hex file, the LED lights up but doesnt go out. It stays lit...

Does Arduino code (hex file) require a bootloader or something that im missing?
Logged

Offline Offline
Jr. Member
**
Karma: 2
Posts: 85
(╯°□°)╯︵ ┻━┻
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can confirm that you don't need the bootloader! Try playing around with the fuses and especially with the "Divide clock by 8 internally" smiley-wink
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 20
Prototype Limited Edition owner! lol
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok i got it 'to work' now. I added my USBasp to Arduino IDE. I then Burned the Bootloader from the menu to get all the Arduino settings (fuses etc).

Also changed Upload.using to USBasp instead of Bootloader. Works fine.

BUT something really wierd. Blink example does not work. But Melody, and BlinkWithOutDelay, work perfect! WTH.....

(Also i find it wierd that the avr still works when the bootloader is gone, but the fuses say 'boot vector enabled, blabla')
« Last Edit: August 24, 2009, 03:57:01 am by Intosia » Logged

Pages: [1]   Go Up
Jump to: