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) Adafruit M0 uploading fails (Read 7079 times)
MichaelChapman45
Junior Member
**
Offline


Posts: 23
Joined: Oct 5th, 2017
Adafruit M0 uploading fails
Oct 5th, 2017 at 3:00pm
Print Post  
This is the information that appears in the Output window.

Compiling 'Adafruit_GPS_V02' for 'Adafruit Feather M0'
Binary sketch size: 9,660 bytes (used 4% of a 262,144 byte maximum) (0.31 secs)
 
Uploading to I/O board using 'COM10'
Upload failed
Atmel SMART device 0x10010005 found
No such file or directory
Device       : ATSAMD21G18A
Chip ID      : 10010005
Version      : v2.0 [Arduino:XYZ] Mar  5 2016 17:46:52
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
Boot Flash   : true
BOD          : true
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 0.821 seconds
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit M0 uploading fails
Reply #1 - Oct 5th, 2017 at 3:18pm
Print Post  
Hi,

I will look to see why this board is not attempting to boot onto an upload port. Please confirm that COM10 us what is selected in the arduino ide when it works?

You can try a few tests to prove the issue conclusively....

You can  prove if this is the problem by clicking the reset on the board. After reset the board should come up on a different port for a few seconds and then revert to COM10. Does this happen?

If the board does boot onto a different port for a few seconds then select that port in the visual micro ports list. Then before clicking upload press the reset again so the board is on the different port when visual micro attempts upload.

The answers to these questions and these tests will help fix this issue more quickly.

Thanks
  
Back to top
WWW  
IP Logged
 
MichaelChapman45
Junior Member
**
Offline


Posts: 23
Joined: Oct 5th, 2017
Re: Adafruit M0 uploading fails
Reply #2 - Oct 5th, 2017 at 4:02pm
Print Post  
When using the Arduino IDE COM10 is used for uploading and once the CPU is reset it changes to COM11.

This does not happen on VM. COM11 listed but VM cannot open it but it can for COM11. Note the red led is pulsing showing that the boot loader is active.
  
Back to top
 
IP Logged
 
MichaelChapman45
Junior Member
**
Offline


Posts: 23
Joined: Oct 5th, 2017
Re: Adafruit M0 uploading fails
Reply #3 - Oct 5th, 2017 at 4:04pm
Print Post  
Reply #2 - Today at 5:02pm 
Try again!!
    
When using the Arduino IDE COM10 is used for uploading and once the CPU is reset it changes to COM11.

This does not happen on VM. COM11 listed but VM cannot open it but it can open COM10 and tries to upload. Note the red led is pulsing showing that the boot loader is active
  
Back to top
 
IP Logged
 
MichaelChapman45
Junior Member
**
Offline


Posts: 23
Joined: Oct 5th, 2017
Re: Adafruit M0 uploading fails
Reply #4 - Oct 5th, 2017 at 4:24pm
Print Post  
I had a thought could it be the USB driver? When I upgrade the boards on the Arduino IDE it loaded a different USB driver.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit M0 uploading fails
Reply #5 - Oct 5th, 2017 at 7:31pm
Print Post  
I just updated to the latest adafruit feather mo board core and compile/upload/debug are all working correctly for me.

I think you are going to have to be more specific with versions etc. I'll try to give you some pointers.

I used board manager in the arduino 1.8.4 ide to update the adafruit SAMD core to v1.0.8

I was not prompted to install a different usb driver. My win10 pc shows the serial port as "Adafuit feather M0"

In device manager the com port shows as Adafruit Industries LLC, date: 15/11/2007

Did you try shutting down your pc so it powers off then restart. Maybe the windows access of the usb port is confused. Visual Micro uses c# windows serial calls to put the board into programming mode. The arduino ide uses Java which can be slightly different to c# apps in the way it interfaces with the serial.

When I upload I see this output:-

Code
Select All
Compiling debug version of 'Sketch1' for 'Adafruit Feather M0'
Program size: 10,660 bytes (used 4% of a 262,144 byte maximum) (1.15 secs)

Uploading 'Sketch1' to 'Adafruit Feather M0' using 'COM6'
Atmel SMART device 0x10010005 found
Device       : ATSAMD21G18A
Chip ID      : 10010005
Version      : v2.0 [Arduino:XYZ] Mar  5 2016 17:46:52
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
Boot Flash   : true
BOD          : true
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 0.843 seconds
Write 10932 bytes to flash (171 pages)
[===========                   ] 37% (64/171 pages)
	The upload process has finished. via 'COM7'
[======================        ] 74% (128/171 pages)
[==============================] 100% (171/171 pages)
done in 0.070 seconds
Verify 10932 bytes of flash with checksum.
Verify successful
done in 0.007 seconds
CPU reset. 


  
Back to top
WWW  
IP Logged
 
MichaelChapman45
Junior Member
**
Offline


Posts: 23
Joined: Oct 5th, 2017
Re: Adafruit M0 uploading fails
Reply #6 - Oct 6th, 2017 at 9:51am
Print Post  
Hi Tim

Arduino V1.8.4 and Adafruit 1.0.19 for the SAMD boards.

I followed the instructions on the Adafruit website as I haven't changed boards for sometime.

The Device Manager shows a Microsoft USB driver so its not recognising the M0.

I'm using the ATMEL Studio 7 that has been recently updated and I thought I updated VM at the same time. What are the latest versions of these please?
  
Back to top
 
IP Logged
 
MichaelChapman45
Junior Member
**
Offline


Posts: 23
Joined: Oct 5th, 2017
Re: Adafruit M0 uploading fails
Reply #7 - Oct 6th, 2017 at 2:45pm
Print Post  
Hi Tim

I have fixed the problem at least I have it working now!

What I did was uninstall Atmel Studio 7 then re-installed if from the MicroChips web site.

When I checked to see if there were any updates I noticed that there were 2 VM installations so uninstalled the older version.

I'm not sure what fixed the problem but lo and behold it worked!

I hope this is helpful. 

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit M0 uploading fails
Reply #8 - Oct 6th, 2017 at 2:49pm
Print Post  
well done. Thanks for the update.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint