Go Down

Topic: Strange problem with DIY arduino (Read 1 time) previous topic - next topic

Max89

I have two arduinos, one Uno and one made by myself using Atmega8 and http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard scheme.

I turn Uno to ISP programmer using proper sketch and disabling auto reset using a cap between reset and gnd pins.
And problems begins... I burn bootloader on second board without problems, next I used blink to see some effects :) After that I use sketch that  give HIGH to all digital ports (to test solders and connections)... but all circuit is dead. I burn bootloader once more, use Blink and it works... till next upload.. It seems that cotroller wipe bootloader from memory.
Some advices ?
I have solution !
But it involves spherical chickens in frictionless vacuum...

spycatcher2k

Hi MAX - the fault you are discribing is normaly caused by wrong lock bits being set.

How are you burning the boot loader?
here is my setup :


atmega8.name=ATmega8

atmega8.upload.protocol=stk500
atmega8.upload.maximum_size=7168
atmega8.upload.speed=19200
atmega8.bootloader.low_fuses=0xdf
atmega8.bootloader.high_fuses=0xca
atmega8.bootloader.path=atmega8
atmega8.bootloader.file=ATmegaBOOT.hex
atmega8.bootloader.unlock_bits=0x3F  <---- open for programming bootloader
atmega8.bootloader.lock_bits=0x0F     <---- Lock the area used by the bootloader
atmega8.build.mcu=atmega8
atmega8.build.f_cpu=16000000L
atmega8.build.core=arduino


Hope this helps

Drew.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Max89

I use settings from arduino 0022 software. I did not change anything in bootloader settings
I have solution !
But it involves spherical chickens in frictionless vacuum...

johnwasser

The Breadboard Arduino doesn't have an auto-reset circuit.  Are you holding the Reset button until you see the "Binary sketch size:" message?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Max89

#4
Aug 11, 2011, 07:45 am Last Edit: Aug 11, 2011, 11:34 pm by Max89 Reason: 1
Hmm...nope...
I only use slave reset from ISP-arduino (lead from 10-th pin to first leg of IC )

Burn bootloader dump :
http://dl.dropbox.com/u/35963789/Bootloader.txt

First blink-scheme uploaded without problems... second (on 12-th pin) faill hard...

Data from uploadnig blink sketch without reset button tricks
http://dl.dropbox.com/u/35963789/blink.rtf
I have solution !
But it involves spherical chickens in frictionless vacuum...

spycatcher2k

Try updating your boards.txt

atmega8.name=ATmega8

atmega8.upload.protocol=stk500
atmega8.upload.maximum_size=7168
atmega8.upload.speed=19200
atmega8.bootloader.low_fuses=0xdf
atmega8.bootloader.high_fuses=0xc8
atmega8.bootloader.path=atmega8
atmega8.bootloader.file=ATmegaBOOT.hex
atmega8.bootloader.unlock_bits=0x3F
atmega8.bootloader.lock_bits=0x0F
atmega8.build.mcu=atmega8
atmega8.build.f_cpu=16000000L
atmega8.build.core=arduino

It updated the bootloader protected area size.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Max89

#6
Aug 13, 2011, 10:35 am Last Edit: Aug 13, 2011, 10:43 am by Max89 Reason: 1
Still same....
Bootloader is burned properly , first upload ok, second fail.
Maybe I try avoid bootloader using hex files ?

Or simply I can't use this arduino as ISP.... http://arduino.cc/en/Tutorial/ArduinoISP "Currently, you cannot use an Arduino Uno as an ISP programmer because the optiboot bootloader does not support this sketch. A revision for this is in progress"
I have solution !
But it involves spherical chickens in frictionless vacuum...

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy