Author Topic: Basic file access error during build  (Read 1791 times)

romeo

  • Newbie
  • *
  • Posts: 2
Basic file access error during build
« on: August 19, 2018, 12:09:37 am »
Hi, all.
I'm totally new to digispark and this forum, having played a bit with Arduino in  the past.  I have a problem getting the LED to Blink!
I am using Visual Micro in MS Visual Studio on a W10 machine. All the libraries, boards, drivers etc, installed seamlessly as per the digistump guidance.  I presume that they are the latest versions (today, 19 August). I load the basic LED Blinker, Build it and upload it, and get the following output

Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
connecting: 16% complete
   The upload process has finished.
connecting: 22% complete
connecting: 28% complete
connecting: 33% complete
> Device has firmware version 1.6
> Available space for user applications: 6012 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94  page size: 64
> Erase function sleep duration: 752ms
> Error opening C:\Users\roman\AppData\Local\Temp\VMBuilds\ATTINY~1\DIGIST~1\Release/ATTi: No such file or directory
> Error loading or parsing hex file.

And, of course, the new firmware doesn't load. and I am stuck.
I notice that the files it cannot find are reported using the 8 character short filename format, whereas the files actually all exist using full length file names, C:\Users\roman\AppData\Local\Temp\VMBuilds\ATTiny blinker\digistump_digispark-tiny\Release\ATTiny blinker.ino.hex, etc

The error message suggests that it is nothing to do with my hardware (I get the same result with all 3 modules I have).
Any clues as to what I am doing wrong?

romeo

  • Newbie
  • *
  • Posts: 2
Re: Basic file access error during build
« Reply #1 on: August 25, 2018, 06:12:28 am »
So I have a workaround - I went to a clean PC, downloaded Arduino 1.6.5 (my other machine has the latest Arduino 1.8.5 running in Visual Studio). followed the steps of the Wiki and hey presto! Works like a charm.

 Bit of a nuisance now having to work two different PCs, but I guess once my current digispark job is done I'll go back to something different and it won't matter.


Thanks, all.