Thanks for the alternative method.... I have been able to upload a hex
toggle quoted messageShow quoted text
file after uploading the old bootloader in the IDE and hitting the
nano reset button. XLoader seems a bit finicky... The examples use
57600 and XLoader defaults to that rate but it didn't work. I
switched to 115200 it uploads OK....
Boy am I glad I am doing this on a spare Nano board.... not the one in my uBITX.
Does plugging / unplugging from the USB port when things are hung up
do any potential damage? I've probably done this 25 times today.
Thanks much for all the help. I'll next try to upload the CEC V1.2 to
my spare board.
73, Dan (W3DF)
On 2/13/20, AndyH <ahecker@...> wrote:
You can also open a command prompt, change to the folder with your .hex
files and the avrdude utility, and type the command string manually as well
- it'll work the same as executing the batch file.
On Thu, Feb 13, 2020 at 01:51 PM, AndyH wrote:
Gah...I lost my entire response because I tried to attach a batch file.
Let's see...what did I type last time? hihi
I can program a nano from the Arduino IDE. Like you, I can no longer
flash that nano with xloader. Crud.
Ok, plan B!
In the folder with xloader you should also see avrdude files. avrdude is
a command line flash utility that works well even when xloader doesn't.
Here's a command string that works:
avrdude -C avrdude.conf -v -p atmega328p -c stk500 -P COM9 -b 57600 -DYou'll need to paste it into notepad (not wordpad or a regular word
process as they include hidden characters), update the COM port number
(mine's 9) and thename of the .hex file you want to upload, then save the
batch file (load.bat, for example) into the same folder/directory as
avrdude. when you edit the file name, make sure the flash:w: remains, as
well as :i at the end. Leave the rest, including the 57600 baud rate.
With this batch file and the .hex file you want to load in the same
as avrdude, open a command prompt. (Search for cmd.exe.) You may have
change to the drive letter your avrdude files are on. Mine are on I:.
Yours might be on C: or D:. To change drives, enter the letter and
and press enter. Then change directories to the avrdude files. You can
start typing and hit tab to auto-complete for long directory names. cd
xloader<enter>. When you think you're in the correct directory, type dir
to see a directory listing. When you know you're in the right place,
the name of your batch file (load.bat, for example) and watch the file
transfer and be verified.