Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't upload to ATtiny85 board (Read 4820 times)
Horst12
Newbies
*
Offline


Posts: 3
Joined: Jan 21st, 2018
Can't upload to ATtiny85 board
Jan 21st, 2018 at 10:03pm
Print Post  
I am using a DigiSpark ATtiny85 board and are able to upload my build using Arduino IDE. When I try the same with Visual Studio I get message "Upload requires a serial port or programmer. Upload cancelled." 

My Upload settings are: Micronucleus

Any idea what to do?

Regards
Horst
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12236
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload to ATtiny85 board
Reply #1 - Jan 21st, 2018 at 11:20pm
Print Post  
Hi,

What is the vMicro>Uploader>Programmer set too in Visual Micro?

Is "always use programmer for upload" set?

« Last Edit: Jan 21st, 2018 at 11:20pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Horst12
Newbies
*
Offline


Posts: 3
Joined: Jan 21st, 2018
Re: Can't upload to ATtiny85 board
Reply #2 - Jan 22nd, 2018 at 9:32am
Print Post  
I changed my settings to:
Uploader -> Programmer -> micronucleus
Uploader -> Always use Programmer ... checked

Now I get a different error message:

Uploading 'BlinkDEBUG' to 'Digispark (Default - 16.5mhz)' using 'Micronucleus'
Error during upload using programmer
The programmer process failed because runtime arguments could not be established
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12236
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload to ATtiny85 board
Reply #3 - Jan 22nd, 2018 at 3:29pm
Print Post  
Thanks, I will try it.

Please confirm how you installed the hardware you are using? IE: What .json url did you add to the arduino ide board manager?
  
Back to top
IP Logged
 
Horst12
Newbies
*
Offline


Posts: 3
Joined: Jan 21st, 2018
Re: Can't upload to ATtiny85 board
Reply #4 - Jan 22nd, 2018 at 4:04pm
Print Post  
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12236
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload to ATtiny85 board
Reply #5 - Jan 28th, 2018 at 12:18am
Print Post  
I just tried the board and found that if a serial port has not been set then boards that don't use COM ports or IP addresses would fail to upload. Setting any COM port would allow the upload to happen properly. 

Most users have at least one board with a COM port and have used with Visual Micro at some stage. Therefore they would not have encountered this error. So thanks for the report!

Fixed in next release due shortly.

FYI

You need to un-check always use programmer. The arduino ide is not using a programmer unless you click "Upload using Programmer". It's confusing to see a programmer selection in the arduino ide most of the time.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint