Pages: 1 [2]   Go Down
Author Topic: Burining Bootloader via AVRISP-MKII onto ATMEGA328-AU  (Read 11057 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 2
Posts: 254
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, the Arduino I am using has the ArduinoISP sketch loaded onto it. I am not using the Uno - I am using a Duemilanove clone from NKC Electronics (product page). Do I still need an auto-reset capacitor?

I have been attempting to follow the official instructions here: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
Logged

Grad student, creative technologist, OSHW engineer
http://jason-webb.info

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 96
Why is it so?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

hmm,
haven't tried via the arduino itself as an isp for this edit.
only AVR ISP mkII and the Pocket Programmer from Spark Fun

i will try when i get home this evening
Logged

0
Offline Offline
Sr. Member
****
Karma: 2
Posts: 254
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Any luck? I need to program these chips within the next couple of days :S
Logged

Grad student, creative technologist, OSHW engineer
http://jason-webb.info

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 96
Why is it so?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@h4t

yes, i was able to use the Arduino itself as an ISP.

here is the complete entry in my boards file

Code:
sparky.name=Sparky
sparky.upload.protocol=stk500
sparky.upload.maximum_size=32256
sparky.upload.speed=115200
sparky.bootloader.low_fuses=0xff
sparky.bootloader.high_fuses=0xde
sparky.bootloader.extended_fuses=0x05
sparky.bootloader.path=optiboot
sparky.bootloader.file=optiboot_atmega328.hex
sparky.bootloader.unlock_bits=0x3F
sparky.bootloader.lock_bits=0x0F
sparky.build.mcu=m328au
sparky.build.f_cpu=16000000L
sparky.build.core=arduino

notes
1. using an Arduino Uno with the Opti Boot bootloader.
2. successfully able to bootload the ATMEGA328-AU selecting the board above from the boards list
3. after the success of the bootloader, when i attempt to upload a sketch i get 'm328au' is not a recognized device
4. knowing the bootloader was successful but upload sketch failed i was able to upload a sketch by changing the board to simply Arduino UNO (go figure)
5. this was the same on OSX Lion, Windows 7, Vista 64

hope that helps
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17261
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
4. knowing the bootloader was successful but upload sketch failed i was able to upload a sketch by changing the board to simply Arduino UNO (go figure)

That makes sense to me. Once the bootloader is installed on the chip, it will report itself as a 328p chip to the IDE as the chip signature is coming from the code in the bootloader, not being read from the chip itself. Therefore the IDE must be told to use a Uno board, not the board you added stating it's a 328 chip, that was required just to allow the burn bootloader step, where the signature is being read directly from the chip. The bootloader is effectively lying to the IDE, but because the 328 and 328p are identical from a software aspect it is a innocent 'white lie'.  smiley-wink


Lefty

« Last Edit: August 16, 2011, 09:34:09 am by retrolefty » Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 96
Why is it so?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Therefore the IDE must be told to use a Uno board, not the board you added stating it's a 328 chip, that was required just to allow the burn bootloader step, where the signature is being read directly from the chip.

this is the most accurate and clear explanation i have heard. never thought about it as being a false positive!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi i was try evrithing but when i try upload bootloader  in arduino 1.0 it give me syntax error at C:\arduino\hardware/tools/avr/etc/avrdude.conf:9610 this eroor what im doing  wrong?
Logged

New Zealand
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello I have also followed this whole thread (and checked my work twice). But when trying to upload the boot-loader, i get the following error;

error at \Arduino\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf:9235 unrecognized character: " "

Have i left a space in the avrdude file wrongly? Or is it quotation marks placed wrongly; from what i copied ? And yes I checked there weren't quotation's around what I copied.
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, this saved my day too smiley

@h4t

yes, i was able to use the Arduino itself as an ISP.

here is the complete entry in my boards file

Code:
sparky.name=Sparky
sparky.upload.protocol=stk500
sparky.upload.maximum_size=32256
sparky.upload.speed=115200
sparky.bootloader.low_fuses=0xff
sparky.bootloader.high_fuses=0xde
sparky.bootloader.extended_fuses=0x05
sparky.bootloader.path=optiboot
sparky.bootloader.file=optiboot_atmega328.hex
sparky.bootloader.unlock_bits=0x3F
sparky.bootloader.lock_bits=0x0F
sparky.build.mcu=m328au
sparky.build.f_cpu=16000000L
sparky.build.core=arduino

notes
1. using an Arduino Uno with the Opti Boot bootloader.
2. successfully able to bootload the ATMEGA328-AU selecting the board above from the boards list
3. after the success of the bootloader, when i attempt to upload a sketch i get 'm328au' is not a recognized device
4. knowing the bootloader was successful but upload sketch failed i was able to upload a sketch by changing the board to simply Arduino UNO (go figure)
5. this was the same on OSX Lion, Windows 7, Vista 64

hope that helps
Logged

Pages: 1 [2]   Go Up
Jump to: