Bricked Nano after failed firmware upgrade with 5v FTDI?

247 views
Skip to first unread message

stewlovi...@gmail.com

unread,
May 15, 2014, 11:29:19 PM5/15/14
to safecast...@googlegroups.com

I tried updating firmware to the latest, but I confess I used a 5v FTDI cable.

Xloader started the upload, failed. Nano now powers on, but the display is blank. Blue LED still lights, clicks sound, SD card interface blinks blue periodically, GPS blinks. No data is being logged to the card.

Since the 5v mistake I bought a 3.3v only FTDI from Sparkfun, and reattempted the upload. It flashes the red & green lights for a bit, then fails.

Have I fried the FIO? Suggestions?






Rob Oudendijk

unread,
May 17, 2014, 12:52:02 AM5/17/14
to safecast...@googlegroups.com
Try to upload blink or hello world example from Arduino IDE  and see if that works..

regards
rob

stewlovi...@gmail.com

unread,
Jun 5, 2014, 12:30:24 PM6/5/14
to safecast...@googlegroups.com

a "Hello World" program uploaded from the Arduino IDE works. I can see output on the serial line. So perhaps not all is lost.

In the Arduino IDE I used the following settings:

Board: "Arduino Pro or Pro Mini (3.3v, 8MHz) w/ ATmega328"
Programmer: "AVRISP mkii"

Xloader still fails for me using either of the ATmega328 selectable options, the upload goes for a bit then fails. I am running under Windows; perhaps this is an uncommon environment for Geigie development - are you guys all Mac?

Do I need to go all the way and make a dev environment in the Arduino IDE, or is there another way to upload the .hex file?

- Stewart

stewlovi...@gmail.com

unread,
Jun 5, 2014, 12:56:03 PM6/5/14
to safecast...@googlegroups.com

Did a bit more of my homework and got an avrdude command line for the upload going. Here's the result:

C:\Temp>"C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude.exe" -C"C:\Program Files (x86)\Arduino\hardware/t
ools/avr/etc/avrdude.conf" -v  -patmega328p -carduino -P\\.\COM8 -b57600 -D -Uflash:w:C:\temp\bGeigieNano.hex:i

avrdude.exe: Version 5.11, compiled on Sep  2 2011 at 19:38:36
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"

             Using Port                    : \\.\COM8
             Using Programmer              : arduino
             Overriding Baud Rate          : 57600
             AVR Part                      : ATMEGA328P
             Chip Erase delay              : 9000 us
             PAGEL                         : PD7
             BS2                           : PC2
             RESET disposition             : dedicated
             RETRY pulse                   : SCK
             serial program mode           : yes
             parallel program mode         : yes
             Timeout                       : 200
             StabDelay                     : 100
             CmdexeDelay                   : 25
             SyncLoops                     : 32
             ByteDelay                     : 0
             PollIndex                     : 3
             PollValue                     : 0x53
             Memory Detail                 :

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
               flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
               lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

             Programmer Type : Arduino
             Description     : Arduino
             Hardware Version: 2
             Firmware Version: 1.16
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude.exe: Device signature = 0x1e950f
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
avrdude.exe: safemode: efuse reads as 0
avrdude.exe: reading input file "C:\temp\bGeigieNano.hex"
avrdude.exe: WARNING: no end of file record found for Intel Hex file "C:\temp\bGeigieNano.hex"
avrdude.exe: writing flash (26816 bytes):

Writing | ################################################## | 100% 0.67s

avrdude.exe: 26816 bytes of flash written
avrdude.exe: verifying flash memory against C:\temp\bGeigieNano.hex:
avrdude.exe: load data flash data from input file C:\temp\bGeigieNano.hex:
avrdude.exe: WARNING: no end of file record found for Intel Hex file "C:\temp\bGeigieNano.hex"
avrdude.exe: input file C:\temp\bGeigieNano.hex contains 26816 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 11.31s

avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
             0xff != 0x0c
avrdude.exe: verification error; content mismatch

avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
avrdude.exe: safemode: efuse reads as 0
avrdude.exe: safemode: Fuses OK

avrdude.exe done.  Thank you.


C:\Temp>

All help appreciated.

stewlovi...@gmail.com

unread,
Jun 6, 2014, 12:03:45 AM6/6/14
to safecast...@googlegroups.com

I may not have been clear with my last post -- I still cannot get the upload to work. The verification step is failing in avrdude.

- Stewart

Rob Oudendijk

unread,
Jun 6, 2014, 12:42:39 AM6/6/14
to safecast...@googlegroups.com
Maybe you Hex file is corrupt.
Download again. 

regards
rob

Rob Oudendijk

unread,
Jun 6, 2014, 1:10:39 AM6/6/14
to safecast...@googlegroups.com
avrdude.exe: WARNING: no end of file record found for Intel Hex file "C:\temp\bGeigieNano.hex"

seems to indicate can not upload the file.

regards
rob

stewlovi...@gmail.com

unread,
Jun 6, 2014, 11:52:11 AM6/6/14
to safecast...@googlegroups.com

I just went and tried the whole process on my wife's Mac with the Mac uploader. Worked just fine on the first try, using the same cable.

Then I went back to my PC and had a second look at my .hex file. And you were right Rob - I had the HTML result of the view for the .hex file saved, not the actual .hex file. I don't know why github makes it so damned difficult to download a single file from their web interface.

Once I downloaded the proper .hex file I could repeat a successful flash using my avrdude command line on the PC. (I had to download the entire project to get to it, I'm not finding any link here https://github.com/Safecast/bGeigieNanoKit/blob/master/bGeigieNano.hex to download it directly). I'm sure Xloader would work too.

Anyhow, Nano #2172 is back online, with 1.3.5.

Thanks for the help!

- Stewart

Rob Oudendijk

unread,
Jun 7, 2014, 4:44:24 AM6/7/14
to safecast...@googlegroups.com
Happy to hear it worked out .

regards
rob
Reply all
Reply to author
Forward
0 new messages