A quick version of avrdude method for Windows users - tinyG firmware download

146 views
Skip to first unread message

Carl McGrath

unread,
Jul 17, 2015, 1:21:11 AM7/17/15
to devT...@googlegroups.com
This quick How-to is based on https://github.com/synthetos/TinyG/wiki/TinyG-Updating-Firmware
It uses one of the described methods and a quick directory structure.
  1. Using Windows Explorer, create a directory "flash_tinyg"
  2. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/avrdude.exe
  3. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/libusb0.dll
  4. Download file https://dl.dropboxusercontent.com/u/50261731/avrdude.conf
    1. I had a difficult time downloading this file directly, thus you are getting it from my Dropbox
  5. Download file http://synthetos.github.io/binaries/tinyg-master-440.16.hex
  6. Move these four files to your directory "flash_tinyg"
  7. Check that your file sizes are same as shown below, to ensure you got the correct files.
  8. Open a CMD window and navigate to your flash_tinyG directory
  9. Copy, then paste this cmd string(without the quotes): "avrdude -p x192a3 -c avr109 -b 115200 -P COM1 -e -U flash:w:tinyg-master-440.16.hex"  , replacing COM1 with your tinyG COM port
  10. Hit the reset button on your tinyG, then Enter on keyboard to execute the avrdude command while the SPinCwCCW led is still flashing (bootloader running)
  11. The download should proceed and complete
As you see below, avrdude fails because I have no tinyG - so this procedure is somewhat untested but should work.

Please provide feedback, preferably with a screenshot of your CMD window.

Good Luck!

Here is what my directory structure looks like


Here is my CMD window(I edited properties of this window to make it 120 characters wide - easier to Read

:


Carl McGrath

unread,
Jul 17, 2015, 9:29:49 AM7/17/15
to devT...@googlegroups.com
A user over at TinyG Forum has run this procedure successfully.

Here is the CMD Window Screen Scrape, what you should expect to see.

---------

C:\flash_tinyg>avrdude -p x192a3 -c avr109 -b 115200 -P COM4 -e -U flash:w:tinyg
-master-440.16.hex

Connecting to programmer: .
Found programmer: Id = “XBoot++”; type = S
Software Version = 1.7; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=512 bytes.

Programmer supports the following devices:
Device code: 0x7b

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% -0.00s

avrdude: Device signature = 0x1e9744
avrdude: erasing chip
avrdude: reading input file “tinyg-master-440.16.hex”
avrdude: input file tinyg-master-440.16.hex auto detected as Intel Hex
avrdude: writing flash (119014 bytes):

Writing | ################################################## | 100% 18.63s

avrdude: 119014 bytes of flash written
avrdude: verifying flash memory against tinyg-master-440.16.hex:
avrdude: load data flash data from input file tinyg-master-440.16.hex:
avrdude: input file tinyg-master-440.16.hex auto detected as Intel Hex
avrdude: input file tinyg-master-440.16.hex contains 119014 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 17.75s

avrdude: verifying …
avrdude: 119014 bytes of flash verified

avrdude done. Thank you.

--------------

Jesse Hughson

unread,
Jul 25, 2015, 3:29:21 PM7/25/15
to TinyG Development, cmcgra...@gmail.com
Here's what I get:

C:\Users\T410\Desktop\flash_tinyg>avrdude -p x192a3 -c avr109 -b 115200 -P COM7
-e -U flash:w:tinyg-master-440.16.hex

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not respondi
ng

C:\Users\T410\Desktop\flash_tinyg>

>>>>>

No dice.




On Friday, July 17, 2015 at 1:21:11 AM UTC-4, Carl McGrath wrote:

Carl McGrath

unread,
Jul 25, 2015, 5:32:57 PM7/25/15
to TinyG Development
I assume you are sure COM7 is the correct port.

You did hit the reset button on tinyG, correct? (Then start avrdude...)
When you hit reset button, does the SpinCW/CCW led flash (that is the  boot loader running)?

Jesse Hughson

unread,
Jul 25, 2015, 5:59:45 PM7/25/15
to devT...@googlegroups.com

Got it now.  Yeah I missed the step about putting the tinyg in bootloader mode or how to.  I don't think that's outlined in the synthetos wiki or some of the other walkthroughs.  But I'm a notorious skimmer so I could be wrong.

Firmware updated!

--
You received this message because you are subscribed to a topic in the Google Groups "TinyG Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/devTinyG/B9xSJaupzNQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to devTinyG+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carl McGrath

unread,
Jul 25, 2015, 7:47:51 PM7/25/15
to devT...@googlegroups.com
Great!

Put in bootloader mode is there, but does not take many words :-)

Carl McGrath

unread,
Jul 27, 2015, 11:46:40 PM7/27/15
to TinyG Development, cmcgra...@comcast.net
A new version of tinyG Master has been posted.
This includes a bug fix for "parameter changes requiring a tinyG reset to be committed to EEPROM".
I modified the procedure below to pull in the new file.

REMINDER - BACK UP YOUR PARAMETERS, the UPGRADE WILL RESET THEM.

This quick How-to is based on https://github.com/synthetos/TinyG/wiki/TinyG-Updating-Firmware
It uses one of the described methods and a quick directory structure.
  1. Using Windows Explorer, create a directory "flash_tinyg"
  2. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/avrdude.exe
  3. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/libusb0.dll
  4. Download file https://dl.dropboxusercontent.com/u/50261731/avrdude.conf
    1. I had a difficult time downloading this file directly, thus you are getting it from my Dropbox
  1. Move these four files to your directory "flash_tinyg"
  2. Check that your file sizes are same as shown below, to ensure you got the correct files.
  3. Open a CMD window and navigate to your flash_tinyG directory
  1. Copy, then paste this cmd string(without the quotes): "avrdude -p x192a3 -c avr109 -b 115200 -P COM1 -e -U flash:w:tinyg-master-440.16.hex"  ,replacing COM1 with your tinyG COM port
  1. Hit the reset button on your tinyG, then Enter on keyboard to execute the avrdude command while the SPinCwCCW led is still flashing (bootloader running)
  2. The download should proceed and complete
  1. Re-enter parameters for your machine

Carl McGrath

unread,
Aug 2, 2015, 10:16:53 AM8/2/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
UPDATED FOR 440.18: A quick version of avrdude method for Windows users - tinyG firmware download
Other recipients: cmcgra...@comcast.net
New versions of tinyG Master and Edge have been posted as of August 2, 2015.

Master is the more stable branch, with minor on-going tweaks.
Edge has master tweaks plus work focussed on Arc move issues (G2 and G3)

I modified the procedure below to pull in the new files.

REMINDER - BACK UP YOUR PARAMETERS, the UPGRADE WILL RESET THEM.

This quick How-to is based on https://github.com/synthetos/TinyG/wiki/TinyG-Updating-Firmware
It uses one of the described methods and a quick directory structure.
  1. Using Windows Explorer, create a directory "flash_tinyg"
  2. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/avrdude.exe
  3. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/libusb0.dll
  4. Download file https://dl.dropboxusercontent.com/u/50261731/avrdude.conf
    1. I had a difficult time downloading this file directly, thus you are getting it from my Dropbox
  1. Move these four files to your directory "flash_tinyg"
  2. Check that your file sizes are same as shown below, to ensure you got the correct files.
  3. Open a CMD window and navigate to your flash_tinyG directory
  1. Copy, then paste this cmd string(without the quotes): 
  1. "avrdude -p x192a3 -c avr109 -b 115200 -P COM1 -e -U flash:w:tinyg-master-440.18.hex"  replacing COM1 with your tinyG COM port
    or 
     "avrdude -p x192a3 -c avr109 -b 115200 -P COM1 -e -U flash:w:tinyg-edge-442.04.hex"   replacing COM1 with your tinyG COM port 

John Lauer

unread,
Aug 2, 2015, 11:49:19 AM8/2/15
to devT...@googlegroups.com, Carl McGrath, Carl McGrath
What's the difference between 440.18 and 442.04?

--
You received this message because you are subscribed to the Google Groups "TinyG Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devTinyG+u...@googlegroups.com.

Riley Porter

unread,
Aug 2, 2015, 11:55:49 AM8/2/15
to devT...@googlegroups.com, Carl McGrath, Carl McGrath
440.18 has the arc fixes. 442.04 is an experimental build that is incorporating features developed on g2 - and will continue to evolve. We recommend using Master.   

ril3y

Carl McGrath

unread,
Aug 2, 2015, 12:11:14 PM8/2/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
UPDATED FOR 440.18: A quick version of avrdude method for Windows users - tinyG firmware download
Other recipients: cmcgra...@comcast.net
New versions of tinyG Master and Edge have been posted as of August 2, 2015.

Master is the more stable branch, with minor on-going tweaks and refinements to arc handling. 
Edge is w.i.p. backporting some tinyG2 features to tinyG. Considered edgy at this stage

I modified the procedure below to pull in the new files.

REMINDER - BACK UP YOUR PARAMETERS, the UPGRADE WILL RESET THEM.

This quick How-to is based on https://github.com/synthetos/TinyG/wiki/TinyG-Updating-Firmware
It uses one of the described methods and a quick directory structure.
  1. Using Windows Explorer, create a directory "flash_tinyg"
  2. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/avrdude.exe
  3. Download file https://github.com/synthetos/arduino-flash-tools/blob/master/tools_windows/avrdude/bin/libusb0.dll
  4. Download file https://dl.dropboxusercontent.com/u/50261731/avrdude.conf
    1. I had a difficult time downloading this file directly, thus you are getting it from my Dropbox
  5. Download file http://synthetos.github.io/binaries/tinyg-master-440.18.hex 
    or the 
    file http://synthetos.github.io/binaries/tinyg-edge-442.04.hex
  6. Move these four files to your directory "flash_tinyg"
  7. Check that your file sizes are same as shown below, to ensure you got the correct files.
  8. Open a CMD window and navigate to your flash_tinyG directory
  9. Copy, then paste this cmd string(without the quotes): 
    "
    avrdude -p x192a3 -c avr109 -b 115200 -P COM1 -e -U flash:w:tinyg-master-440.18.hex"  replacing COM1 with your tinyG COM port 
    or 
     "avrdude -p x192a3 -c avr109 -b 115200 -P COM1 -e -U flash:w:tinyg-edge-442.04.hex"   replacing COM1 with your tinyG COM port 
  10. Hit the reset button on your tinyG, then Enter on keyboard to execute the avrdude command while the SPinCwCCW led is still flashing (bootloader running)
  11. The download should proceed and complete
  12. Re-enter parameters for your machine

Carl McGrath

unread,
Aug 15, 2015, 9:08:16 AM8/15/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
Made a minor edit to step 4


On Sunday, August 2, 2015 at 12:11:14 PM UTC-4, Carl McGrath wrote:
UPDATED FOR 440.18: A quick version of avrdude method for Windows users - tinyG firmware download
Other recipients: cmcgra...@comcast.net
New versions of tinyG Master and Edge have been posted as of August 2, 2015.

Master is the more stable branch, with minor on-going tweaks and refinements to arc handling. 
Edge is w.i.p. backporting some tinyG2 features to tinyG. Considered edgy at this stage

I modified the procedure below to pull in the new files.

REMINDER - BACK UP YOUR PARAMETERS, the UPGRADE WILL RESET THEM.

This quick How-to is based on https://github.com/synthetos/TinyG/wiki/TinyG-Updating-Firmware
It uses one of the described methods and a quick directory structure.
Message has been deleted

Thomas Krammer

unread,
Aug 15, 2015, 3:52:48 PM8/15/15
to TinyG Development
Thank you very much for you post. I finally got my TinyG updated and 1 step closer to getting my CNC mill up and running!
Message has been deleted

Carl McGrath

unread,
Aug 15, 2015, 6:35:14 PM8/15/15
to TinyG Development

Synthetos, LLC

unread,
Aug 19, 2015, 7:31:08 PM8/19/15
to devT...@googlegroups.com
Carl!

Thanks for this great post.

riley

--
You received this message because you are subscribed to the Google Groups "TinyG Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devTinyG+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,

Riley Porter
Managing Member, Synthetos LLC

Craig C

unread,
Aug 21, 2015, 5:24:09 PM8/21/15
to TinyG Development
Thank you.

Mel Ristau

unread,
Aug 26, 2015, 1:54:11 PM8/26/15
to TinyG Development
Recently new to Windows 8 and now using 10.... 
Not seeing how to create a directory in Edge. (help!)
  1. ?
  2. Done
  3. Done
  4. Done
  5. Done
  1. (Moved these four files to FOLDER? "flash_tinyg" created in my downloads folder)
  2. Done
  3. (Opened Command Prompt app and navigated to flash_tinyG FOLDER?)
  4. UNDERSTAND
  5. UNDERSTAND
just not getting there. something simple i expect. 

Carl McGrath

unread,
Aug 26, 2015, 2:06:15 PM8/26/15
to devT...@googlegroups.com
Edge is a browser, correct?

You create a directory in file manager, or whatever they call it in Win10.
or, you can use the 'mkdir flash_tinyG' in cmd window after navigating the where you want to put it with 'cd' commands
--
You received this message because you are subscribed to a topic in the Google Groups "TinyG Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/devTinyG/B9xSJaupzNQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to devTinyG+u...@googlegroups.com.

Mel Ristau

unread,
Aug 26, 2015, 7:47:06 PM8/26/15
to devT...@googlegroups.com
Mel Ristau
Ristau Sculpture, LLC
8001 Country Farms Ct.
Fort Collins, CO. 80528
Mountain Standard Time
File Manager is now called "File Explorer"

Thanks for help Carl but still not there...

I've recreated the flash_tinyg folder/directory on my desktop:

(I copied and saved content of

https://dl.dropboxusercontent.com/u/50261731/avrdude.conf

to my flash_tinyg folder as a text file.)


edited command for COM3:

avrdude -p x192a3 -c avr109 -b 115200 -P COM3 -e -U flash:w:tinyg-master-440.18.hex


I open my flash_tinyg folder, open Command Prompt app and send (within 3 seconds of resetting board):
avrdude -p x192a3 -c avr109 -b 115200 -P COM3 -e -U flash:w:tinyg-master-440.18.hex

Carl McGrath

unread,
Aug 26, 2015, 8:00:53 PM8/26/15
to devT...@googlegroups.com
OK, in cmd window issue
'cd c:\Users\Mel\Desktop\flash_tinyG' (I think)

then launch your avrdude command.

..\flash_tinyG needs to be the current directory for avrdude to be found.
--

Mel Ristau

unread,
Aug 27, 2015, 10:16:39 PM8/27/15
to devT...@googlegroups.com
440.18 now installed. Thanks again

I use CoolTerm to talk to TinyG and sent MyDefaultChanges.txt** file but got "bad number format" report on every command. Then just sent commands one at a time and had no errors. Pulled $$ report and all settings are in place... Same as with 435.10:

Sending the usual g28.2x0y0z0 I get no response from machine. However, I have echo turned on and can see that TinyG commands are streaming.

**

Carl McGrath

unread,
Aug 27, 2015, 11:26:57 PM8/27/15
to TinyG Development
Mel
You can't send a file of tinyG parameter commands like that.
Commands must be sent one at a time, with acknowledgement, before the next is sent.
The process of writing to EEPROM (commiting parameters) stops serial port processing.

Mel Ristau

unread,
Aug 27, 2015, 11:49:49 PM8/27/15
to TinyG Development
Since can't get 440.18 working need to return to 435.10 but can't download with this address:

Can I copy and paste the hex-text into a .txt file, name "tinyg-master-435.10.hex" and have what I need?

Will my flash back to 435.10 be same process as described above? (Same other three files in folder with .hex?)

Carl McGrath

unread,
Aug 28, 2015, 7:38:40 AM8/28/15
to TinyG Development
What I see in the latest dropbox listing are the FW=440.18 default parameters.
Note that $npm=0 for all 4 motors, they are disabled.
I don't think sending the MyDefaultChanges.txt file did anything.As I said above, you can't stream in parameter changes like you did.
Going back to 435.10 is not at all recommendedand the binary is no longer available.

Try this"
Using CoolTerm
  1. Reset TinyG
  2. Connect with CoolTerm.
  3. Enter $ or ? or $$ just to verify connectivity.
  4. Enter $defa=1 command.
    This will reset your parameter set to defaults again, clean up any hidden bogus values.
  5. Enter your parameter changes, one at a time, via the command line.
  6. Special note: in the file MyDefaultChanges.txt, $_pm=0 ?? That is wrong, disables motors. Use $_pm=2 for each motor.
  7. When done, enter $$ and verify you new parameters
  8. Machine should now be good to go

Question: Did you see th "MyDefaultChanges.txt procedure" somewhere ??

Mel Ristau

unread,
Sep 1, 2015, 12:26:37 PM9/1/15
to devT...@googlegroups.com
Corrected the $_pm=0's and am up and running. I really appreciate your help!Mel Ristau

Carl McGrath

unread,
Sep 1, 2015, 1:39:34 PM9/1/15
to devT...@googlegroups.com
cool!

Matt Eyles

unread,
Sep 11, 2015, 9:04:17 PM9/11/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
Awesome thanks very much

graham mcnamara

unread,
Sep 28, 2015, 5:27:51 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com

 
 following your instructions for avrdude tinyG firmware download I got this error ; 

C:\Users\namara\Downloads\flash_tinyg>avrdude -p x192a3 -c avr109 -b 115200 -P C
OM5 -e -U flash:w:tinyg-master-440.18.hex
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""

I copied all the text from your dropbox link as is to notepad and saved as a file called avrdude.conf in the flash_tinyg folder

any ideas why it wouldn't work?

Carl McGrath

unread,
Sep 28, 2015, 7:35:57 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
Did you read down to this: https://groups.google.com/d/msg/devtinyg/B9xSJaupzNQ/xcbmPYJtEwAJ  ?
It sounds like your config file is borked.
Message has been deleted

graham mcnamara

unread,
Sep 28, 2015, 9:46:36 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
The tinyg was in bootloader mode and the COM port is correct.

On Monday, 28 September 2015 14:40:17 UTC+1, graham mcnamara wrote:
I added that config file and started process here is what happened ;

C:\Users\namara\Downloads\flash_tinyg>avrdude -p x192a3 -c avr109 -b 115200 -P C
OM5 -e -U flash:w:tinyg-master-440.18.hex

Connecting to programmer: .
Found programmer: Id = "XBoot++"; type = S
    Software Version = 1.7; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=512 bytes.

Programmer supports the following devices:
    Device code: 0x7b

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9744
avrdude: erasing chip
avrdude: reading input file "tinyg-master-440.18.hex"
avrdude: input file tinyg-master-440.18.hex auto detected as Intel Hex
avrdude: writing flash (118196 bytes):

Writing |                                                    | 0% 0.00savrdude:
butterfly_recv(): programmer is not responding

Carl McGrath

unread,
Sep 28, 2015, 9:52:20 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
Did you hit reset to put tinyG in bootloader mode just before launching avrdude?
With this method, you have to do that manually.

The error message you received usually means avrdude is not talking to the bootloader.
Message has been deleted

graham mcnamara

unread,
Sep 28, 2015, 10:13:13 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
 I did, since doing that the board is staying in bootloader mode, even after powering off and on again. this is what happened running the process in this state ;

C:\Users\namara\Downloads\flash_tinyg>avrdude -p x192a3 -c avr109 -b 115200 -P C
OM5 -e -U flash:w:tinyg-master-440.18.hex
avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.

avrdude: ser_send(): write error: sorry no info avail

Carl McGrath

unread,
Sep 28, 2015, 10:19:01 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.

That message seems to say COM5 is busy.
Check Win Task Manager, that no SPJS or avrdude processes are hanging around. If so, terminate them

Carl McGrath

unread,
Sep 28, 2015, 10:28:15 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
A quick explaination of what you are (probably) seeing.

Assumption - the tinyG FW update you ran from CP did not complete correctly - tinyG app defective.

tinyGFW is written to RW flash
bootloader is in RO flash

The first time you ran the manual avrdude process, it erased RW flash (the assumed defective tinyG FW image), but then for some reason could not write a new image.

So in current state bootloader is still installed and runs.
Since RW flash was erased, bootloader has nothing to boot, so bootloader mode stays active forever.

graham mcnamara

unread,
Sep 28, 2015, 10:32:56 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
Yes, that is correct, with the board disconnected from laptop and powering the board off and on again it

         remains in bootloader state.

Carl McGrath

unread,
Sep 28, 2015, 10:40:07 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
Bootloader is running - good.

Now need to figure out why avrdude access to COM5 is denied.

Some of the possibilities:
1. COM5 moved to another COMx port 
2. Another process (avrdude, SPJS, ..) has a lock on that COM port
3. ...? (I am not a Windows guy) You may have to reboot with tinyG disconnected from USB port) and try a fresh OS session.

graham mcnamara

unread,
Sep 28, 2015, 10:55:45 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
I really appreciate the help,.

Trying that Tinyg remains in bootloader state, disconnecting it and reconnecting it, running SPJS  I cannot get it to change state!
Do you work for Synthetos? I am wondering if I can get a replacement without paying out again for a new one as this board is new and has been working and all I did 
was try to update the firmware via Chillpeppr and this happened!


Carl McGrath

unread,
Sep 28, 2015, 11:47:29 AM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
No, I don't work for Synthetos, but do moderate the tinyG Forum.
If this is a new tinyG and we can't get it re-flashed, I am fairly sure you'll be able to have them reflash it with an ICE probe.

I have two motivations here, one is to get you up and running.
Two is to try to determine what happened, so we are better equipped for the next time.
Some folks have had issues, as yet unresolved, using SPJS based update with Windows.
My results using SPJS running on Linux have been excellent, so the underlying trigger here may be the Win implementation.

SO your message below confuses me a bit.
SPJS will not connect to the bootloader, period. 
SPJS connects to a working tinyG FW app after it boots.
SPJS cannot be running while you execute this manual avrdude programming method.

The only app that I am aware of that will connect to the bootloader is avrdude.
No other application (SPJS, CoolTerm, etc) can be running and conneted to the tinyG COM port.

My suggestion:
  1. Close the Chilipeppr tab in your browser.
  2. Kill all SPJS processes (use Windows Task Manager)
  3. Remove the tinyG USB cable from your PC
  4. Reboot tinyG (reset button)
  5. Reconnect your tinyG USB cable.
  6. Assumption is that tinyG is now connected and bootloader running
  7. Execute the avrdude command per this thread.
  8. Copy then paste your CMD window session here for a look-see.
I think you are close to success. 

graham mcnamara

unread,
Sep 28, 2015, 12:18:31 PM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
your a Genius!
following your instructions it worked this time ;

C:\Users\namara\Downloads\flash_tinyg>avrdude -p x192a3 -c avr109 -b 115200 -P C
OM5 -e -U flash:w:tinyg-master-440.18.hex

Connecting to programmer: .
Found programmer: Id = "XBoot++"; type = S
    Software Version = 1.7; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=512 bytes.

Programmer supports the following devices:
    Device code: 0x7b

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e9744
avrdude: erasing chip
avrdude: reading input file "tinyg-master-440.18.hex"
avrdude: input file tinyg-master-440.18.hex auto detected as Intel Hex
avrdude: writing flash (118196 bytes):

Writing | ################################################## | 100% 20.08s

avrdude: 118196 bytes of flash written
avrdude: verifying flash memory against tinyg-master-440.18.hex:
avrdude: load data flash data from input file tinyg-master-440.18.hex:
avrdude: input file tinyg-master-440.18.hex auto detected as Intel Hex
avrdude: input file tinyg-master-440.18.hex contains 118196 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 19.42s

avrdude: verifying ...
avrdude: 118196 bytes of flash verified

avrdude done.  Thank you.


TinyG is connecting with SPJS and working with Chillipeppr, I don't know what could have caused the initial problem of not being able to connect properly anymore.
It happened after trying to update firmware to 440.20 via Chillipeppr though the firmware had been updated this way before so my guess is as you mentioned maybe an issue 
with Windows.

Thanks very much for your help.

Carl McGrath

unread,
Sep 28, 2015, 12:41:11 PM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
Excellent!

I wish we could capture whatever it is that is causing the failure you experienced.

Enjoy your machine for a while, then you should update to 440.20 or whatever is Master at that time.
You could try the SPJS updater again, or you could use this 'manual' avrdude method again, but this time download 440.20.hex to the working directory.

As you can tell, there are more than a few moving parts in these systems, and all need to be moving in the same direction

John Lauer

unread,
Sep 28, 2015, 12:43:15 PM9/28/15
to devT...@googlegroups.com, Carl McGrath, Carl McGrath
Just FYI, ChiliPeppr simply uses avrdude with the exact same command line that Carl shared. So there's almost nothing different to it. ChiliPeppr does, however, download the hex file from the internet into a temp folder and then passes that to avrdude. If that file somehow gets corrupted then that would cause a problem, but I think file corruption is very unlikely.

FYI, i just upgraded an old TinyG this morning from 438.12 to 440.20 using ChiliPeppr and SPJS and it worked like a charm. I'm on a Windows 10 laptop.


--
You received this message because you are subscribed to the Google Groups "TinyG Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devTinyG+u...@googlegroups.com.

Carl McGrath

unread,
Sep 28, 2015, 12:55:51 PM9/28/15
to TinyG Development, cmcgra...@comcast.net, cmcgra...@gmail.com
John; a reminder that my method in this thread does include the -e (to pre-erase flash) option on the avrdude command line, which you do-not (or you did not think you did about a month ago)

I use it because, well, it was the only way I could get the avrdude command line to work under Linux. I followed a troubleshooting entry in the tinyG Wiki.

That said, my use of SPJS 1.83 downloader, running on Linux, has produced excellent results.

I send folks to this thread, most of them Windows users, when the SPJS method does not work for them.

As of now, I have no good explanation for the behavior.
I have, for example, found that running Windows and using the avrdude command without -e option, works perhaps one out of three times, 
following the "if at first you don't succeed, try again" method.

My gut says it is something in the avrdude executable, but have no idea what.
Reply all
Reply to author
Forward
0 new messages