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
Hot Topic (More than 8 Replies) Upload failed (Read 8913 times)
namefree
Newbies
*
Offline


Posts: 6
Joined: Nov 7th, 2014
Upload failed
Nov 14th, 2014 at 2:49pm
Print Post  
Hi all,

aplication is rebuild without error but upload process is not finished...
I am using Atmel Studio 6.2

I have connected SPI LCD if this LCD is disconnected upload works perfectly.
If digital outputs(pins 5 and 6) are not initialised then upload is to OK.


This is the output window :

Binary sketch size: 24 584 bytes (used 80% of a 30 720 byte maximum) (2,43 secs)
Minimum Memory Usage: 1009 bytes (49% of a 2048 byte maximum)
Uploading to I/O board using 'USBasp'
Error during upload using programmer
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: verification error, first mismatch at byte 0x39ff
         0x14 != 0x94
avrdude: verification error; content mismatch

The uploader returned an error
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload failed
Reply #1 - Nov 14th, 2014 at 2:56pm
Print Post  
Hi,

Visual Micro does not do the upload it just asks the configured tool chain to upload so I am not sure we can affect this in any way.

Does it work okay in the arduino ide with the spi lcd connected?

  
Back to top
WWW  
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Upload failed
Reply #2 - Nov 14th, 2014 at 3:14pm
Print Post  
Hi namefree,

which Arduino board do you use, and which pins you connect the LCD display ?

I think you have an hardware issue: both SPI and ICSP use the MOSI, MISO and SCK lines.

Which LDC do you use, does the documentation for that board talks about ICSP ?

Have you tried uploading the sketch with the USB connection ?
  
Back to top
 
IP Logged
 
namefree
Newbies
*
Offline


Posts: 6
Joined: Nov 7th, 2014
Re: Upload failed
Reply #3 - Nov 14th, 2014 at 6:25pm
Print Post  
Hi,

LCD (ILI9163C) uses following pins :
* D8,D9,D10,D10,D12,D13

Digital Outputs : D5,D6, 
Digital Outpur : A2 (for LCD backlight) but tested to with A0
Digital Input : D3

When i put wollowing line in setup method then program is not uploaded.
     pinMode(5, OUTPUT);

Programm is uploaded with following steps :
1) Disconect LCD
2) Upload program
3) re-connect LCD
then eveyrthing works fine with upladed changes

P.S. i am uploading via USB ASP, i have at some TTL cconvertes but none is working becasue, so i am not able to try upload vie COM oport.

  
Back to top
 
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Upload failed
Reply #4 - Nov 14th, 2014 at 6:36pm
Print Post  
Hum,

ILI9163C is the LCD driver chip, not the complete display model.

Which Arduino board do you use ? I don't get why you need a converter to program your board, if there is a USB port on your board, it will work at 5 Volts.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload failed
Reply #5 - Nov 14th, 2014 at 6:54pm
Print Post  
Hi namefree,

If you encounter the same error with the Arduino Ide then please use the Arduino forum to solve this issue.

We try to stick to plugin support in this forum because otherwise there would be toooooo many questions  Smiley

Thanks
  
Back to top
WWW  
IP Logged
 
namefree
Newbies
*
Offline


Posts: 6
Joined: Nov 7th, 2014
Re: Upload failed
Reply #6 - Nov 14th, 2014 at 7:17pm
Print Post  
Dear Sir,

1) I have tested it in arduino ide...there it works, thats why i am writing here
2) After PC restart is it already working.

Thannks for all helps

best regards
Ales Bedac
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload failed
Reply #7 - Nov 14th, 2014 at 7:25pm
Print Post  
oh sorry, that's good news thanks for the update
  
Back to top
WWW  
IP Logged
 
namefree
Newbies
*
Offline


Posts: 6
Joined: Nov 7th, 2014
Re: Upload failed
Reply #8 - Nov 16th, 2014 at 9:42pm
Print Post  
Hi all, 

i get why wasnt uploaded sketch

It is happening only in RELEASE mode.
« Last Edit: Nov 16th, 2014 at 9:47pm by namefree »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload failed
Reply #9 - Nov 17th, 2014 at 6:44pm
Print Post  
Sorry I don't understand

Does Release mode fix the problem or cause a problem?

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