Professional Documents
Culture Documents
WWW Instructables Com Burn A New Bootloader Arduino Pro Mini
WWW Instructables Com Burn A New Bootloader Arduino Pro Mini
WWW Instructables Com Burn A New Bootloader Arduino Pro Mini
Download Favorite
I wanted to re-purpose an Arduino Pro Mini that I hadn't used for a while, so - as I do with
all the Arduinos I re-use - I tried to upload the Blink sketch to return it to a sort of 'default'
state and to prove to myself that it is still working.. This failed miserably, and led to a fair bit
of wasted time checking connections, the voltage of the Pro Mini and using a couple of
di erent programmers, and so on.
So I thought it may be useful to someone if I brie y explained what I did to x the issue I
had, and return the Pro Mini to a working state. It may also be of use if your Pro Mini has
arrived without a bootloader.
Step 1: Stuff
Obviously, an Arduino Pro Mini that you can't upload sketches to
Arduino IDE
I normally upload sketches to to a Pro Mini using a USB-Serial FTDI programmer, and plug
the Pro Mini opposite it on a breadboard. This way, the pins match up and it does away
with any messy cabling. This arrangement has worked without issue numerous times in the
past.
This time, however, when I tried to upload the Blink sketch, the Arduino IDE started
bleating on about the "programmer not responding" and giving an avrdude error:-
I also noticed that the LEDs on the FTDI programmer only ickered a couple of times, when
they normally go berserk during a successful upload.
So, I
Aha. Must be the Pro Mini. I tried to think back to the last time I used this one but it was
more than a day ago, so I had little chance. I was about to resort to the Internet when I did
remember (it works sometimes) that I had an ESP8266 arrive with a corrupted bootloader
and had similar issues. The more I though about it, the more it made sense and tied in with
what i was seeing.
Step 3: Fix
There are a number of ways to burn a bootloader to an Arduino device, but the one I used
(for convenience and speed) was to use an Arduino Uno as an ISP (In-System Programmer).
This is well documented and I've used it a few times for di erent things.
The connections are straightforward and, as can be seen in the photograph, I used a
breadboard. I was going to include a Fritzing diagram, but it was more confusing.
The LEDs on the two Arduinos should now perform a synchronised dance while the
bootloader is written - only takes a few seconds, and then the IDE shows a completed
message.
Fourth step, if you want, is to perform a test upload using your FTDI programmer. If the
new bootloader is working, you should see the LEDs on the FTDI programmer and the Pro
Mini showing activity.
Step 4: Wrap Up
I hope I've made it easy to see that, if you come across an Arduino or similar device whose
bootloader is messed up, it isn't too arduous a task to burn a new one. As long as you have
access to a Uno or similar, the IDE and some cables, you can be on the way to uploading the
sketch for your next Evil Genius weapon or World Domination IoT thing in next to no time.
This is my rst Instructable. I've enjoyed putting it together, and I'd be happy to receive any
constructive comments or criticism.
I Made It!
Recommendations
Solar Powered WiFi Weather Magnetic Rainbow Tail-light for
Station V3.0 by opengreenenergy in Bike Helmet by qubist in LEDs
Arduino
17 8 654 3 8 443
27 Comments
Hello, With your help I was able to reset my Arduino Mini Pro.
After that I directly load the example "blink". It works fine.
But when I want to reload the same program (by changing the timing) the loading doesn't
happen anymore.
Then I have to reset the Mini Pro again in order to be able to reload a program.
Do you have any idea what happens?
Thank you again for your publication.
My best regards.
Dan
I'd like to use a Nano as the ISP, because I do not have a Uno. I assume the same pins will
apply, correct?
1 reply F
JohnN3 4 years ago
Reply / Upvote
6 replies F
After completing the 4th step, the Arduino which was flashed with the new bootloader
from the UNO, now all future uploading of new sketches, you must select "UNO" as you
destination board for your sketches.
Step 5: Change the board: Tools Menu -> Board ->Arduino Uno
Amazing, as I was reading through this, though, familiar with the process because I'm
been researching to do just this, I was thinking what a excellent cleanly written and to the
point article!!! Your use of the KISS principle is spot on.
Thanks to this "I did remember (it works sometimes) that I had an ESP8266 arrive with a
corrupted bootloader and had similar issues", I've understood why one of my Arduino Pro
Mini refuses to upload sketchs.
So I have flashed the bootloader, with an usbasp in my case.
After that it worked. But at next upload, I had the same error.
In fact, after flashing the bootloader, I can upload a sketch only once!
I always need to reflash the bootloader before.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -
C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -
patmega328p -cusbasp -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDA:m -
Ulfuse:w:0xFF:m
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -
C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -
patmega328p -cusbasp -Pusb -
Uflash:w:/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/bootloaders/atmeg
-Ulock:w:0x0F:m
Any idea?
I solved the Pin 11 = MOSI, Pin12 = MISO and Pin 13 - SCLK I think but now I get this error
on the upload.
Nice description and I now have Uno in Arduino ISP mode but the target device is an
Elecrow LoRa Radio Node v1.0, which uses the Arduino Pro or Pro Mini bootloader and
none of the Pins 11, 12, or 13 are labelled! So how to complete the connection between
the Arduino ISP and the Elecrow?
and
MOSI
MISO
SCK
RXI
TXO
DTR
Can any of these be used for the Pin 11, 12, and 13 connections from the Arduino Uno?
Thanks
Hi Mr., thank you by help me, but it don´t work for me with Arduino IDE 1.6..., 1.8...
versions, it works properly when I use 1.05 version. Ok, no problem. Bye...
Nice work. Thank You. helped heaps. BUT.....on first run, error msge:avrdude: Error: Could
not find USBtiny device (0x2341/0x49). Another site suggested select
TOOLS>Programmer:Arduino As ISP. Subtle difference. Now gets to about 10 seconds with
error msge: avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe0 . avrdude:
stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Error while burning bootloader.
1 answer F
laponi 2 years ago
Reply / Upvote
Merci j'ai suivi le tutoriel et tout est correct. merci pour cette application.
1 reply F
Terms of Service | Privacy Statement | Privacy settings | Legal Notices & Trademarks