Author Topic: hanging up during uploading and "can not find... file"  (Read 15643 times)

kbctemp

  • Newbie
  • *
  • Posts: 8
hanging up during uploading and "can not find... file"
« on: January 06, 2013, 01:41:58 pm »
Running System: Windows
Version: Windows XP 32bit
Computer: Custom, ASUS P5E ATX Intel Motherboard, Crucial 2GB (2 x 1GB) DDR2 1066 (PC2 8500) Dual Channel Kit Memory, Intel Core 2 Quad Q6600 2.4GHz LGA 775 Processor

Uploading (listed in the green box) with about 17 of 20 green bars
Binary sketch size: 744 bytes (of a 6,010 byte maximum)
Running Digispark Uploader...
Plug in device now...
(below "12" on the left, "Digispark (Tiny Core) on COM1) on the right, bottom)
The upload button at the top remains yellow, and the mouse is an hour glass while over "Uploading..."

On green LED lit solid, after about 5 seconds, the second green LED is flashing.  So I assumed the start code worked (though you may have supplied the unit with the start code installed).  Now I comment out some lines of code to make the LED stop flashing, but I can never get any code changes uploaded.  I've tried changing ports (directly into computer ports), ensured the "upload" was pressed first.  Unplugged and tryied again several times.  Tried restarting Arduino but it continues to lock up during loading.  Tried rebooting the computer.

When downloading the "arduino-1.03-win-digispark-2013-01-05.zip", and trying to copy it into my C drive, I got the error "can not find the specified file."  With some digging, it turned out to be the folders wifiHD and wifi_dnld in the directory "Digispark Ready - Arduino 1.03\hardware\arduino\firmwares\wifishield".  Manually copied the rest of the directorys so I assumed that was sufficient to proceed.  (Later I assumed a bad download might have been my problem, tried it again, but same error.)
« Last Edit: January 06, 2013, 01:41:58 pm by kbctemp »

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
hanging up during uploading and \"can not find... file\"
« Reply #1 on: January 06, 2013, 01:57:29 pm »
It is loaded with sample code - you\'ll get a success message on a successful upload.

So it looks like the computer is not recognizing it
- have you looked at the troublesoohting section on the wiki?
- have you installed the winowds driver in the \"Digispark - Windows Driver\" folder?
- have you tried another sub port/hub/the other things mentioned in the troubleshooting section?

I\'ll double check the download for the can\'t find file issue, but that shouldn\'t be the problem here.

Thanks,
Erik

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
hanging up during uploading and \"can not find... file\"
« Reply #2 on: January 06, 2013, 01:59:44 pm »
I can confirm the download extracts fine for me on a few different test machines - but I can also tell you those folders have nothing to do with the Digispark and aren\'t causing the issue you\'re seeing.

kbctemp

  • Newbie
  • *
  • Posts: 8
hanging up during uploading and \"can not find... file\"
« Reply #3 on: January 06, 2013, 05:25:44 pm »
Yes, I believe I\'ve tried all of the troubleshooting items, and the driver did appear to install when it I did it, which was according to the directions in that the driver was installed first, then opened Arduino, and last didn\'t plug it in until it was \"uploading\".
Previously tried the two front USB ports, normally empty.
Tried all six of the rear USB ports on the motherboard, one normally empty, the other five used with a mouse, keyboard, printer, scanner, and web cam; disconnected them one a time, no change to \"Uploading...\".
I have a firewire card with two USB ports, and tried those with no changing to \"Uploading...\".
I have no USB hubs; I might could borrow one from work.
I\'ve got a decade of programming experience with PIC processors, but I\'m new to Arduino, so there could be something simple that\'s common that I\'m missing?
The thing that gets me is that it says its on COM1, which is typically reserved for dedicated serial ports yet my PC has none.
Then I watch the device manager while plugging the digispark into the front USB ports, and there\'s no change at all.  Since I\'ve no other serial ports (no virtual one\'s either) there are no serial ports listed in the device manager.
Should I try to install the driver again?

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
hanging up during uploading and \"can not find... file\"
« Reply #4 on: January 06, 2013, 05:57:38 pm »
If you have speakers turned on - you know how you hear a sound from windows when you plug something into a usb port? You should hear that after plugging a Digispark in, even if the driver isn\'t installed (unless you\'ve told it to ignore it, which you haven\'t) - so see if that sound play when you plug something else in (if it doesn\'t you might have the sound disabled) and then see if anything plays when you plug the Digispark in.

If not then your computer truly isn\'t seeing it. Sometimes it is too fast for device manager because it only shows up for 5 seconds, but I always get the sound still.

If you have access to a hub or another computer I\'d encourage you to try both of those, so we at least know if it is your computer or your digispark. You are the first person using windows XP that I\'ve seen on the forums, so I\'m wondering if there is an issue there. It would be super helpful if you could try it on a Vista or 7 computer, because if it is an XP issue we certainly can fix that but I\'ll need to get a copy of XP running and rather not have to do that if I don\'t need to (at least right now when things are super busy).

Did you get more than one Digispark? if so try a second one if you haven\'t yet. Directly plugging into the rear USB ports are the best way to test.

Some other things to confirm:
You set Digispark as both the board and the programmer (two different settings) in Arduino?

The COM1 thing is just a mistake in the Arduino software, if a device uses USB it still displays the last selected COM port (or COM1 if none has been used). So no issue there.

At the end of the driver install (you can reinstall it) - do you get a box showing the driver has installed with a green check next to it?

Thanks for your patience, we\'ll get it sorted out.

I started with PICs long ago before Arduinos were around - I still have my first serial programmer!

kbctemp

  • Newbie
  • *
  • Posts: 8
hanging up during uploading and \"can not find... file\"
« Reply #5 on: January 06, 2013, 06:30:43 pm »
Reinstalling the driver worked as before, with the green check.  All of the other USB devices (mouse, keyboard, etc) make the plug/unplugging sound, but the digispark does NOT.  Which is really unusual because all of my experience with USB says if the PC doesn\'t like the attached device, its shuts down power to it, but the power light comes on and the blinking light flashes on the digispark.  No, I only have one digispark, but its looking like a driver issue to me.  Yes, both board and programmer are set to Digispark.  I\'ll take it to work, and look for a hub.  I\'ll try it on a PC there if possible.  No huge rush as I\'ve no major plans for it; just using it as an intro to Arduino.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
hanging up during uploading and \"can not find... file\"
« Reply #6 on: January 06, 2013, 06:41:13 pm »
Even if it doesn\'t shut down power to it - it still should say it has malfunctioned - so that tell me a driver issue or a hub might do the trick.

Let me know how it goes with a hub and/or another computer and I\'ll be happy to help from there.

Thanks
Erik

kbctemp

  • Newbie
  • *
  • Posts: 8
Re: hanging up during uploading and \
« Reply #7 on: February 02, 2013, 08:48:48 am »
I have now tried the unit on a Windows 7 computer, and it does the same thing as on my XP.  When inserted, the PC does not recognize it.  No PC notification (either good or bad) nor USB insertion sounds.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: hanging up during uploading and \
« Reply #8 on: February 02, 2013, 04:35:49 pm »
A few last things to check before we declare it faulty - because the computer isn't seeing it at all, I still think it is related to it just not connecting...


Can you try a USB extension cable?


Can you look at it and see if the middle two contacts look like they are lining up with the contacts on the USB port - do the contacts look fairly centered? Some were machined a bit off and so they don't make proper contact and one end has to be filed down a bit.


Does it seem like the Digispark is going all the way into the plug, or does it seem like its depth is being limited by the USB port/case?




kbctemp

  • Newbie
  • *
  • Posts: 8
Re: hanging up during uploading and \
« Reply #9 on: February 12, 2013, 06:15:13 pm »
I've now tried 3 usb extension cables and 2 hubs.  No change.  No USB connection sounds, and the Audrino loading never proceeds past the "plug in device" message.  Digispark still lights up green, and then the second green LED starts to flash on and off.
 
Yes, all of the pins look like they are lining up, and I even used a multimeter to check from one end of the USB cable to points on the PCB (GND, via above 5V, R1, and R2) to make sure there was a good electrical connection, so I know its not too long or the socket too short.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: hanging up during uploading and \
« Reply #10 on: February 12, 2013, 07:09:57 pm »
send me an email support at digistump dot com and we'll get you fixed up with a replacement

Mark

  • Full Member
  • ***
  • Posts: 196
Re: hanging up during uploading and \
« Reply #11 on: February 12, 2013, 10:36:17 pm »
Erik/kbctemp
One thing I noted that when Windows doesn't like the Digispark, it doesn't like it and refuse to acknowedge it.
This includes having it plugged in while data is sent out the pins that are used for USB ...it throws its toys out the cot.!

This wouldn't explain the windows7 machine as well.

Adding it to another port doesn't usually result in success as its recognises the same PID/VIB and usually heads to the same place for the dlls, etc.


Powering your computer down means select shutdown, and when it all goes quiet REMOVE the power plug.
The USB is often powered by the BIOS to enable wake on USB, etc.
You can easily prove this by leaving the Digispark plugged in and seeing if the power led is on when its shut down.

I don't think you'll see the USB power get shut off on a desktop, as they usually have a mains power profile.
Laptop on battery yes, depending on the settings from the manufacturer (or serious user)
None of mine got the power killed when they weren't recognised ..


You can check in ..Windows\inf to see the latest oemxx.inf file (sort by date) and check if there is a corresponding .pnf.
You can open the .inf with notepad and it should include Digispark Bootloader
The .pnf is created when windows recognises the device.

I found deleting them and then running the InstallDriver.exe located in (..wherever you have Digispark IDE..)\Digispark - Windows Driver\directory.

Despite loading a driver, windows still wants to go away and find it via Update.
If you do see it heading off, you can stop it, but like most things microsoft, I'm not sure its a permanent instruction, or how to stop it again.


There are some USBView utilities (windows and linux)on the FTDI website. http://www.ftdichip.com/Support/Utilities.htm.
It will show a device that windows thinks is not installed correctly, or if it recognises it.

Cheers
Mark


kbctemp

  • Newbie
  • *
  • Posts: 8
Re: hanging up during uploading and \
« Reply #12 on: February 13, 2013, 06:11:57 pm »
Well, this project is going to have to be shelved for a while.  $10 was worth a shot at adurino, but I think I'll stick with PICs for now.  This much trouble is not worth the effort as I've other things to do.  I would be interested to know what percentage of units are having to work this hard to make it work.  If you do run out of other people to help, and want to test this unit yourself, let me know and I'll get it back to you. 

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: hanging up during uploading and \
« Reply #13 on: February 13, 2013, 08:21:35 pm »

kbctemp - as I said:

send me an email support at digistump dot com and we'll get you fixed up with a replacement


our defect rate has been about 0.02% (over about 30,000 units) - but defects do happen with any hardware (and 0.02% is a very low defect rate), once we ask people to test them well - as you did - then we replace them and replacements have had a 100% success rate - so like I said, send us an email and we'll get a new one out to you

kbctemp

  • Newbie
  • *
  • Posts: 8
Re: hanging up during uploading and \
« Reply #14 on: February 17, 2013, 11:54:12 am »
Attached are the results of your latest requests.  Nothing useful that I noted, though all of the USB details in the inf files really don't mean much to me.