First of all: Arduino rules ... including the website arduino.cc and especially the people who spend their spare time to develop arduino. Thank you very much!
However like most other people I post to this forum because I need help...
Just like described in the following post
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1164357893
I am unable to flash over an old sketch. This happened suddenly and I don't know which of my actions could have caused this problem.
The only difference to the other thread: I have a arduino mini (atmega 168) with Firmware Version: 1.15
Everything seems to upload perfectly - a small sketch takes less long to flash than a big one - however 10 seconds after the process is complete the old scetch starts.
What shall I do? Shall I try to burn a new bootloader as described in the above mentioned thread? What other options do I have?
Yes, the computer and the setup is the same. Hm, it might be that the board recieved less than 5 volts while running the old program for a while (low batteries). However I am sure that it did not receive more than 5 Volts at any time, because I always use a voltage regulator (and big capacitors).
... I am sure that the environment was set to atmega168 at all times.
The old program runs perfectly (It is pretty big - all parts of it work normally)
Could it be that this strange behavior results from bad soldered contacts, or is the programming done all "in-chip"?
You can get the source code from http://www.arduino.ws/: go to Upload, then Software, bootloader_v5 (m168) and download the zip. You'll need to use avrdude to burn it.
However I needed to specify the -F switch, because avrdude complained with the following message:
avrdude: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
<\quote>
Everything seems to work fine - but the board worked fine before, so I am not sure if flashing was successful (phew - At least I didn’t brick it)
–
Now I would like to do the same thing with the arduino mini-board. However the sck-pin (pin 17) of the atmega168 seems not to be soldered to any pin of the mini-board. Do I have to contact the pin directly on the chip?
Is the following command correct for flashing the bootloader onto the atmega 168?
Then I used the 0007er to upload the led-blink scratch - it still does not work - uploading seems to work, however after the reset, the old scratch still executes.
I tried to upload from completely different machines - the scratch remains flashed...
What do you think... shall I dispose of this mini and buy another one?
lg, Mr.M
Edit: I used avrdude again and tried to erase the chip - without success. The old bootloader is still there. So avrdude did not write the new bootloader to flash as I thought.