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) Uploading to Due (Read 13645 times)
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Uploading to Due
Jun 4th, 2016 at 4:52pm
Print Post  
Hello,
When trying to upload to a Due, I get:
Uploading 'Blink' to 'Arduino Duemilanove or Diecimila w/ ATmega168' using 'COM6'
The uploader returned an error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
.
.
.
Are there any requirements before attempting to upload to a Due?  The Nano needs a 10 mF capacitor from Pin3 to GND to prevent repeated resets.
Anything like that for the Due?
Do there exist any written instructions for uploading and debugging?
Thanks.
« Last Edit: Jun 4th, 2016 at 4:56pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #1 - Jun 4th, 2016 at 4:55pm
Print Post  
Your report shows that Visual Micro thinks you have the arduino 168 selected and not the Due

Please re-select the Due from the boards list or switch the list to a different board then select the Due again

The Due will upload without mod
  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #2 - Jun 4th, 2016 at 6:37pm
Print Post  
Thanks much for your reply.
There is NO "Arduino Due" of any kind on my board list.  Neither in the Arduino IDE board list. Only the "Arduino Duemilanove or Diecimila".  I tried both Mega368 and Mega168. Neither of those work.

Do I need to install something else?

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #3 - Jun 4th, 2016 at 6:44pm
Print Post  
Hi,

Yes, since arduino 1.6.4 only the avr boards are provided standard in the Arduino IDE. 

You have to install any additional hardware using the Board Manager or use the Arduino.org Ide which has Due installed by default.
« Last Edit: Jun 4th, 2016 at 6:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #4 - Jun 4th, 2016 at 7:22pm
Print Post  
First let me ask, is the DUE board the same as the:
Arduino Duemilanove or Diecimila?

Secondly, do i have to put a 10micro farad capacitor from the reset pin to ground before trying to upload?


I have tried using the Arduino IDE with this board, and get:

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is duino5/etc/avrdude.conf"

         Using Port                    : COM6
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xc9
avrdude: stk500_recv(): programmer is not responding
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #5 - Jun 4th, 2016 at 7:35pm
Print Post  
No the DUE is a different board you need to install it as instructed. It is a SAM based board not an AVR board like the ones you mention.

You do not need anything other than the board, a usb cable and to install the SAM core which will provide two new boards called "Arduino Due (Programming port)"  and "Arduino Due (Native Usb)"

You should first ensure that you have a running Arduino environment and that you have uploaded at least one program using the Arduino ide. If you have questions or need support then you can use the references on arduino.cc or the arduino.cc/forum.

the Arduino Ide also has a Board Manager on the Tools>Boards menu so you can install from the Arduino Ide. Visual Micro will use the same configuration as the Arduino Ide so when that works, Visual Micro will work.
« Last Edit: Jun 4th, 2016 at 7:37pm by Tim@Visual Micro »  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #6 - Jun 4th, 2016 at 7:39pm
Print Post  
Thanks.

I installed the Arduino Due (Programming Port) to show up in both VS and the Arduino IDE.   
I now get (using VS or the Arduino IDE):

Uploading 'blink' to 'Arduino Due (Programming Port)' using 'COM6'
Upload failed
bossac.exe: extra arguments found
Try 'bossac.exe -h' or 'bossac.exe --help' for more information

Any thoughts?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #7 - Jun 4th, 2016 at 7:42pm
Print Post  
Does it upload when using the Arduino Ide? Which Arduino version?
  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #8 - Jun 4th, 2016 at 7:55pm
Print Post  
No. Using the Arduino IDE, I get the error:

ino/bossac.exe -i -d --port=COM6 -U false -e -w false -b nk.ino.ino.bin -R 
bossac.exe: extra arguments found
Try 'bossac.exe -h' or 'bossac.exe --help' for more information.

I will search for what the problem might be...
  
Back to top
 
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #9 - Jun 4th, 2016 at 11:55pm
Print Post  
The Arduino IDE is uploading to the DUE.  The IDE had to be upgraded to 1.6.9 to get rid of the bossac error.

However, the VS / VM integration is still giving the error.

How do I upgrade the VS Arduino to 1.6.9?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #10 - Jun 5th, 2016 at 12:06am
Print Post  
If you have configured vm to look in the same arduino folder then it should be automatic if you have restarted the ide since upgrading arduino.

However the issue you hit is because arduino added a new property to the core recently. When you have upgraded to the latest core you hit a problem with the arduino ide and needed a newer version. The same will always apply to Visual Micro so please ensure you are using the latest version.
  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #11 - Jun 5th, 2016 at 1:07am
Print Post  
IDE location in VM is pointing to C:\Program Files (x86)\Arduino - the same place where the latest IDE version is located 1.6.9.
How do I "ensure I'm using the latest version"? Do I have to reinstall VM?  If so, how? Details please... Thanks.

Note that the vMicro Explorer does NOT list 1.6.9, only 1.6.8.  I installed 1.6.7 and the upload works via VS/vM.

So will there be a version 1.6.9 available via Explorer?
« Last Edit: Jun 5th, 2016 at 1:29am by dieter56 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #12 - Jun 5th, 2016 at 2:12am
Print Post  
Hi,

Don't get confused with Arduino Ide version and Toolchain versions. They are almost the same but different. It's how Arduino designed it Smiley You will see the same version numbers in the Arduino Ide boards manager.

"Tools>Extensions and updates" should show you updates. A flag should also appear in the title bar of visual studio when new updates are available. + You can always find information on visualmicro.com which also has a downloads page. 

« Last Edit: Jun 5th, 2016 at 2:13am by Tim@Visual Micro »  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #13 - Jun 5th, 2016 at 2:45am
Print Post  
I have downloaded VM again, and installed it.
Tools > Extensions and Updates only allows uninstalling VM version  1605.28.0.
VM Explorer still shows IDE V1.6.7 installed, and 1.6.8 available to update.
I'm afraid to update to 1.6.8 since it will most like fail when uploading.
I'm going in circles... and I don't really understand what to do, even with your last comments.  Sorry.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #14 - Jun 5th, 2016 at 2:50am
Print Post  
Hi,

If you are using 1605.28 that is the latest. For you information in "tools>Extensions and updates" you have to click "Online" or "Updates" to see newer versions. However no need.

Visual micro works fine with the 1.6.8 sam core. I tried it earlier today but there isn't much difference between all the versions.

Good to hear it's uploading for you now.
« Last Edit: Jun 5th, 2016 at 2:50am by Tim@Visual Micro »  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #15 - Jun 5th, 2016 at 2:59am
Print Post  
I updated to 1.6.8 again and upload failed.  Going back to 1.6.7 for now...

Thanks much for you help. It is really appreciated.
Dieter
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #16 - Jun 5th, 2016 at 3:00am
Print Post  
When you get time please switch on vMicro>Verbose then try the upload and email or post the output that appears.

That will explain what the issue is.

Thanks
  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Uploading to Due
Reply #17 - Jun 5th, 2016 at 3:14am
Print Post  
OK, now 1.6.8 core is working.  I think when I upgraded to 1.6.8 before, VM (or I) changed the board to Arduino Ethernet!

So all is working now.

Now I will have to learn how to use DEBUG to the fullest ... Hope to find some good DEBUG tutorials.

I'm a newbie who coded in assembler for an Intel 8008, Z80, etc. many moons ago. Trying to help a neighbor to with an Arduino project.

Again, thanks a million, Tim.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploading to Due
Reply #18 - Jun 5th, 2016 at 3:22am
Print Post  
Great.

Bear in mind that normal debug for arduino is adding your own serial print messages to the code. The visual micro debugger can do a lot but it's not quite the same as a full blown debugger.

The docs are on visualmicro.com let me know if anything isn't clear.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint