# Trouble uploading firmware for the first time

**URL:** <https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378>\
**Category:** Troubleshooting\
**Created:** [August 1, 2018, 11:26pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378 "2018-08-01T23:26:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TAD](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TAD](https://forums.maslowcnc.com/u/TAD)\
**Post date:** [August 1, 2018, 11:26pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/1 "2018-08-01T23:26:24Z")

</div>

This is a new set-up and I get this error when i attempt to upload the firmware:

Arduino: 1.8.5 (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

C:\Users\tdarnell\AppData\Local\Temp\Temp1\_Firmware-1.18.zip\Firmware-1.18\cnc\_ctrl\_v1\cnc\_ctrl\_v1.ino:36:20: fatal error: Maslow.h: No such file or directory

#include “Maslow.h”

```
                ^

```

compilation terminated.

exit status 1  
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with  
“Show verbose output during compilation”  
option enabled in File -\> Preferences.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [August 1, 2018, 11:51pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/2 "2018-08-01T23:51:12Z")

</div>

On a Windows machine, this is usually because the firmware .zip file hasn’t been extracted yet. Extract the files and open from there and all should work correctly.

---

<div class="post-metadata">

**Author:** ![TAD](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TAD](https://forums.maslowcnc.com/u/TAD)\
**Post date:** [August 1, 2018, 11:52pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/3 "2018-08-01T23:52:01Z")

</div>

thought I did that but will try again thanks,

---

<div class="post-metadata">

**Author:** ![TAD](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TAD](https://forums.maslowcnc.com/u/TAD)\
**Post date:** [August 1, 2018, 11:54pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/4 "2018-08-01T23:54:46Z")

</div>

Well it looks extracted to me. This is a copy of the path:

C:\Users\tdarnell\Downloads\Firmware-1.18.zip\Firmware-1.18\cnc\_ctrl\_v1

---

<div class="post-metadata">

**Author:** ![TAD](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TAD](https://forums.maslowcnc.com/u/TAD)\
**Post date:** [August 1, 2018, 11:56pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/5 "2018-08-01T23:56:54Z")

</div>

Duh, I needed to use extract all.

Thanks you were spot on.

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 24, 2018, 4:56am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/6 "2018-08-24T04:56:50Z")

</div>

I just built my frame and am bench testing the motors before installation.

I am running Win 10 on a Surface Go. Connected to the Arduino through a USB 3.1 Type-C 4 plug hub (not powered.)

Following the instructions at: [http://maslowcommunitygarden.org/Firmware.html?instructions=true](http://maslowcommunitygarden.org/Firmware.html?instructions=true)

Everything is going well and as expected. Only difference is that it is COM3 instead of COM1.

**Error upon uploading:**  
Arduino: 1.8.5 (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

Build options changed, rebuilding all  
Archiving built core (caching) in: C:\Users\natew\AppData\Local\Temp\arduino\_cache\_503504\core\core\_arduino\_avr\_mega\_cpu\_atmega2560\_0c812875ac70eb4a9b385d8fb077f54c.a  
Sketch uses 57098 bytes (22%) of program storage space. Maximum is 253952 bytes.  
Global variables use 1987 bytes (24%) of dynamic memory, leaving 6205 bytes for local variables. Maximum is 8192 bytes.  
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM3 -b115200 -D -Uflash:w:C:\Users\natew\AppData\Local\Temp\arduino\_build\_485706/cnc\_ctrl\_v1.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53  
Copyright © 2000-2005 Brian Dean, [http://www.bdmicro.com/](http://www.bdmicro.com/)  
Copyright © 2007-2014 Joerg Wunsch

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

     Using Port : COM3
     Using Programmer : wiring
     Overriding Baud Rate : 115200
     AVR Part : ATmega2560
     Chip Erase delay : 9000 us
     PAGEL : PD7
     BS2 : PA0
     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 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
       flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
       lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
       hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
       efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
       lock 0 0 0 0 no 1 0 0 9000 9000 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 : Wiring
     Description : Wiring
     Programmer Model: AVRISP
     Hardware Version: 15
     Firmware Version Master : 2.10
     Vtarget : 0.0 V
     SCK period : 0.1 us

```

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801 (probably m2560)  
avrdude: reading input file “C:\Users\natew\AppData\Local\Temp\arduino\_build\_485706/cnc\_ctrl\_v1.ino.hex”  
avrdude: writing flash (57098 bytes):

Writing | ###avrdude: ser\_send(): write error: sorry no info avail  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: stk500v2\_ReceiveMessage(): timeout  
the selected serial port avrdude: stk500v2\_ReceiveMessage(): timeout  
does not exist or your board is not connected

This report would have more information with  
“Show verbose output during compilation”  
option enabled in File -\> Preferences.

---

<div class="post-metadata">

**Author:** ![Gero](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/gero/32/17487_2.png) [@Gero](https://forums.maslowcnc.com/u/Gero)\
**Post date:** [August 24, 2018, 5:15am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/7 "2018-08-24T05:15:39Z")

</div>

Welcome to the Forum!  
Did you try 1) upload without the hub between pc and mega 2) upload the blink sketch from the examples to see if that uploads?

Additional info that could be useful: Windows version, version of the Adruino IDE

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 24, 2018, 5:39am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/8 "2018-08-24T05:39:58Z")

</div>

Can’t not do a hub - only USB Type C plug available on the Surface Go.  
Yes, I have tried “blink” sketch and it its working fine. (I removed the maslow board)

Windows 10 Home, Arduino 1.8.5 (I have tried the App from the Microsoft store and also the application downloaded from the Arduino website.)

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 24, 2018, 5:43am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/9 "2018-08-24T05:43:53Z")

</div>

Just more information:

Arduino Programmer: AVRISP mkII

---

<div class="post-metadata">

**Author:** ![Gero](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/gero/32/17487_2.png) [@Gero](https://forums.maslowcnc.com/u/Gero)\
**Post date:** [August 24, 2018, 5:45am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/10 "2018-08-24T05:45:17Z")

</div>

If the blink sketch uploads the connection with the mega should be ok.  
Did you unzip/extract the firmware into a separate folder?  
Edit: Is this the newest 1.20 release?

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [August 24, 2018, 6:20am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/11 "2018-08-24T06:20:27Z")

</div>

[https://www.disciplesofcnc.com/wiki/pmwiki.php?n=Site.PrecompiledFirmware](https://www.disciplesofcnc.com/wiki/pmwiki.php?n=Site.PrecompiledFirmware)

I sent him this and a link to the most current software bundle with xloader and build 1.19 on [www.disciplesofcnc.com](http://www.disciplesofcnc.com)

A new bundle with 1.20 is pending because of the Mac build.

Thank you

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 25, 2018, 3:23am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/12 "2018-08-25T03:23:49Z")

</div>

Yeah, it doesn’t seem to be the connection because of the blink sketch.  
The code also compiles okay.

I did extract it but left it in the download folder, perhaps I should try moving it out.

Tried 1.20 and 1.19 - futility on both.

---

<div class="post-metadata">

**Author:** ![RavenWall](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/ravenwall/32/7597_2.png) [@RavenWall](https://forums.maslowcnc.com/u/RavenWall)\
**Post date:** [August 25, 2018, 5:56am UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/13 "2018-08-25T05:56:11Z")

</div>

It seems it cannot connect with the board.

> [@NateW](#):
>
> Writing | ###avrdude: ser\_send(): write error: sorry no info avail  
> avrdude: stk500\_send(): failed to send command to serial port  
> avrdude: stk500v2\_ReceiveMessage(): timeout  
> the selected serial port avrdude: stk500v2\_ReceiveMessage(): timeout  
> does not exist or your board is not connected

Simple things first: did you select the right COM port?

> [@NateW](#):
>
> This report would have more information with  
> “Show verbose output during compilation”  
> option enabled in File -\> Preferences.

Also try to enable the verbose. Maybe there is a clue in that log.

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 25, 2018, 3:54pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/14 "2018-08-25T15:54:47Z")

</div>

So I have removed the motor driver board.  
I pulled the un-zipped directory out of Download folder (just in case)

I can alternate load the “Blink” and “Bare Minimum” sketch so that I can see the light behavior change. I see the lights on “RX” and “TX” light up each time I load one.

avrdude: AVR device initialized and ready to accept instructions

However, when I compile and upload…

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801 (probably m2560)  
avrdude: reading input file “C:\Users\natew\AppData\Local\Temp\arduino\_build\_785045/cnc\_ctrl\_v1.ino.hex”  
avrdude: writing flash (57098 bytes):

Writing | #avrdude: ser\_send(): write error: sorry no info avail  
avrdude: stk500\_send(): failed to send command to serial port  
avrdude: stk500v2\_ReceiveMessage(): timeout  
the selected serial port avrdude: stk500v2\_ReceiveMessage(): timeout  
does not exist or your board is not connected

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 25, 2018, 4:00pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/15 "2018-08-25T16:00:49Z")

</div>

> [@Bee](#):
>
> [https://www.disciplesofcnc.com/wiki/pmwiki.php?n=Site.PrecompiledFirmware](https://www.disciplesofcnc.com/wiki/pmwiki.php?n=Site.PrecompiledFirmware)
> 
> I sent him this and a link to the most current software bundle with xloader and build 1.19 on [www.disciplesofcnc.com](http://www.disciplesofcnc.com)
> 
> A new bundle with 1.20 is pending because of the Mac build.
> 
> Thank you

Thank you Bee. I have tried the XLoader option and have gotten “Can’t open COM” errors immediately. In the midst of another try. Stuck in “uploading.” As a newbie, I don’t know how long should this take through Arduino or the XLoader.

I have not seen any activity of the RX & TX lights. The “blink” sketch still appears to be working on the board.

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 25, 2018, 4:09pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/16 "2018-08-25T16:09:33Z")

</div>

> [@RavenWall](#):
>
> Simple things first: did you select the right COM port?

Checked in my device Manager: COM3 = Arduino. Only thing connected to the machine other than my Bluetooth mouse.

---

<div class="post-metadata">

**Author:** ![RavenWall](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/ravenwall/32/7597_2.png) [@RavenWall](https://forums.maslowcnc.com/u/RavenWall)\
**Post date:** [August 25, 2018, 4:24pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/17 "2018-08-25T16:24:30Z")

</div>

Strange… Could you activate the verbose?

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [August 25, 2018, 7:50pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/18 "2018-08-25T19:50:04Z")

</div>

It looks like a hardware problem if you can’t connect to a com port - I will link the same mega used in the kit. There is a 50% chance it is on the pc side or the usb cable. I can’t link now I ‘m driving- more later

Thank you

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 25, 2018, 10:32pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/19 "2018-08-25T22:32:09Z")

</div>

Many thank yous!

I am trying the whole new set up on an old laptop. Will let you know what I learn.

---

<div class="post-metadata">

**Author:** ![NateW](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NateW](https://forums.maslowcnc.com/u/NateW)\
**Post date:** [August 25, 2018, 11:54pm UTC](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378/20 "2018-08-25T23:54:33Z")

</div>

So set up on the old laptop running WIndows 10. Everything worked perfectly. Was able to move motors and everything.

Only difference is that it was directly attached to the USB with no hub. Can test it on the old laptop because it doesn’t have a USB-C port.

Moved it back over to the Surface Go and it did the exact same thing.

I’m going to move forward with the old laptop and hope it can run Ground control well enough to make good parts.

Thank you all!

[Next page](https://forums.maslowcnc.com/t/trouble-uploading-firmware-for-the-first-time/5378.md?page=2)
