Offline
Full Member
Karma: 0
Posts: 207
|
 |
« on: January 19, 2013, 07:20:48 am » |
Dear friends, http://arduino.cc/en/Tutorial/ArduinoToBreadboardReferring to this article, I downloaded the breadboard.zip file and do as required. I manage to burn the bootloader of atmega 328 on breadboard with 8MHz internal clock files into the chip. However, I face some problem when uploading sketches into the chip. Below is the error message that I get : How to solve it ? Thank you
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6376
|
 |
« Reply #1 on: January 19, 2013, 10:55:23 am » |
That bords.txt file is old enough that it doesn't have a ".build.variant=standard" line. Add this line to the breadboard boards.txt file: atmega328bb.build.variant=standard
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #2 on: January 19, 2013, 11:34:39 am » |
When burning that atmega 328 with internal 8MHz crystal, I have to put an external 16 MHz crystal to the circuit ? if not error bootloading ?
Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #3 on: January 19, 2013, 11:37:08 am » |
That bords.txt file is old enough that it doesn't have a ".build.variant=standard" line. Add this line to the breadboard boards.txt file: atmega328bb.build.variant=standard
Still, the same error. ><
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6376
|
 |
« Reply #4 on: January 19, 2013, 12:00:14 pm » |
Still, the same error. ><
Did you shut down and re-start the Arduino IDE after making the change? The IDE reads all the configuration files when it starts up. When burning that atmega 328 with internal 8MHz crystal, I have to put an external 16 MHz crystal to the circuit ? if not error bootloading ?
If the 386 has been set to use an external 16 MHz crystal then you must provide either the crystal or an external clock signal. AFTER you have set it to use the 8 MHz internal RC oscillator you can remove the 16 MHz crystal.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #5 on: January 19, 2013, 12:06:26 pm » |
Yes, I do you restart the IDE..well, the breadboard file is placed in the hardware folder on the arduino sketches and not in the arduino IDE folder..I am curious that can I just copy the board file for the breadboard zip and paste it to the original board.text file ??? Thanks
|
|
|
|
|
Logged
|
|
|
|
|
South Africa
Offline
Newbie
Karma: 0
Posts: 30
|
 |
« Reply #6 on: January 19, 2013, 12:12:05 pm » |
The following line seems strange: atmega328bb.build.core=arduino:arduino The other entries shipped with my Arduino environment have the following form: atmega328bb.build.core=arduino You may also have to provide the path to the bootloader: atmega328bb.bootloader.path=atmega This plus johnwasser's suggestion should give you a working boards.txt file. I don't think you need a 16MHz crystal on the new chip when burning the bootloader. What errors do you see?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #7 on: January 19, 2013, 12:19:22 pm » |
Not a new chip any more..burnt the arduino uno bootloader before
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #8 on: January 19, 2013, 11:53:24 pm » |
Not even can burn a bootloader now ><
|
|
|
|
|
Logged
|
|
|
|
|
ਪੰਜਾਬ
Offline
Edison Member
Karma: 4
Posts: 1224
WANTED! A Girl with LOVE for me and Arduino!
|
 |
« Reply #9 on: January 20, 2013, 12:13:46 am » |
In order to run a chip on its internal Oscillator the respective Fuses need to be set , Lookonto the datasheet on ATmega328 for its fuses that makes it run on internal oscillator , I do this all the time with an ATmega8.
|
|
|
|
|
Logged
|
"Real Men can Accomplish Anything" - Website - skype : nishants5 ਫ਼ਤੇਹ ਕਰੂਂ !
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #10 on: January 20, 2013, 12:15:31 am » |
Yea, I set it by burning the bootloader into it. Can also right ?
Thanks
|
|
|
|
|
Logged
|
|
|
|
|
ਪੰਜਾਬ
Offline
Edison Member
Karma: 4
Posts: 1224
WANTED! A Girl with LOVE for me and Arduino!
|
 |
« Reply #11 on: January 20, 2013, 12:17:38 am » |
Check the Fuses again and know what they spell? for me I right fuses additionally as I think they are to be written Individually, You have to care for 'hfuse' and 'lfuse'
|
|
|
|
|
Logged
|
"Real Men can Accomplish Anything" - Website - skype : nishants5 ਫ਼ਤੇਹ ਕਰੂਂ !
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 207
|
 |
« Reply #12 on: January 20, 2013, 12:22:42 am » |
Cant find it in the datasheet
|
|
|
|
|
Logged
|
|
|
|
|
ਪੰਜਾਬ
Offline
Edison Member
Karma: 4
Posts: 1224
WANTED! A Girl with LOVE for me and Arduino!
|
 |
« Reply #13 on: January 20, 2013, 12:54:50 am » |
Then you have to get the very CORRECT lfuse and hfuse for the ATmega328 as if wrong fuses are set then they may lock the chip that can never be programmed after that so look for right fuses over the internet
|
|
|
|
|
Logged
|
"Real Men can Accomplish Anything" - Website - skype : nishants5 ਫ਼ਤੇਹ ਕਰੂਂ !
|
|
|
|
South Africa
Offline
Newbie
Karma: 0
Posts: 30
|
 |
« Reply #14 on: January 20, 2013, 02:44:17 am » |
Not even can burn a bootloader now ><
Looking at the error message seems to suggest that the bootloader file is not found. Check that the bootloader hex file is in the path that avrdude is searching, this is printed as part of the output at the bottom of the screen.
|
|
|
|
|
Logged
|
|
|
|
|
|