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] 2  Send TopicPrint
Hot Topic (More than 8 Replies) Atmel Ice - debug - Feather M0 - ATSAMD21E18A ? (Read 8812 times)
FrankC
Ex Member
*


Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Feb 10th, 2020 at 9:52am
Print Post  
If I want to debug my Feather M0 then the device regularly returns to ATSAMD21E18A instead of ATSAM21A18A. If I adjust this in 'proportions (device)' or via 'device programming' this is always adjusted again. I have the impression that when I toggle between 'Debug: Hardware' and 'Debug: serial' and 'build and upload', it always goes back to ATSAMD21E18A.

In which file (/ option) is this processor defined?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #1 - Feb 10th, 2020 at 12:05pm
Print Post  
To make intellisense work in atmel studio we have to feed the mcu id from the arduino build system to atmel studio. We do not provide mcu ids in visual micro we just read them from your installed board manager package. Therefore it sounds like the adafruit package has incorrect definition.

Please follow the guide in yellow above. Hta will show where the incorrect id is from and your can then edit it.

There are many times when we have to set this property. Not just the ones you mentioned.
« Last Edit: Feb 10th, 2020 at 12:06pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #2 - Feb 10th, 2020 at 5:04pm
Print Post  
ok, E-mail is send.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #3 - Feb 10th, 2020 at 5:48pm
Print Post  
Not arrived please try sending to visualmicro@outlook.com to see if that works
  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #4 - Feb 11th, 2020 at 7:53pm
Print Post  
output en screenshot  in E-mail(visualmicro@outlook.com) send
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #5 - Feb 11th, 2020 at 7:54pm
Print Post  
output
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #6 - Feb 12th, 2020 at 12:58pm
Print Post  
Thanks for sending the output. The core for that board does not clearly state an mcu id so we have to guess. 

If we look at the core it has a disguised _D define in the build command equal to SAMD21G18A

I think the only solution is for us to add a custom property where you can set an mcu override when using atmel studio. There is a release due over the next few weeks where we will try to include that.

  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #7 - Feb 12th, 2020 at 1:06pm
Print Post  
Thks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #8 - Feb 13th, 2020 at 4:04pm
Print Post  
There is an interim release in the forum with a new menu item that you should switch off, after doing so your device selection will be retained. "vMicro>General> Automatic Attempt to Set Atmel Studio Device" = OFF

https://www.visualmicro.com/forums/YaBB.pl?num=1580914071/0#0
« Last Edit: Feb 17th, 2020 at 9:05pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #9 - Feb 15th, 2020 at 4:24pm
Print Post  
item off or on, there is no difference,  when I toggle between 'Debug: Hardware' and 'Debug: serial' and 'build and upload', it always goes back to ATSAMD21E18A.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #10 - Feb 16th, 2020 at 9:05pm
Print Post  
Let's be sure we are talking about the same setting? See picture. Uncheck the menu then change the mcu using the std. atmel dialog(s). After doing so, right click "project>property pages" should show your newly selected mcu. Visual Micro should not then change the mcu selection even if you switch to a different Arduino board in the board list.

You seeing different?
  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #11 - Feb 17th, 2020 at 3:29pm
Print Post  
The build has also been updated in case something was missing. See 20.02.16 in this forum.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #12 - Feb 17th, 2020 at 5:21pm
Print Post  
look at doc. voor de scenario's.
  
Back to top
 
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #13 - Feb 17th, 2020 at 5:22pm
Print Post  
pdf
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #14 - Feb 17th, 2020 at 5:31pm
Print Post  
Your doc does not show how you have changed the mcu name using the atmel studio selection controls. Please show which atmel studio element you click and which window you use to select the correct mcu

Thanks
  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #15 - Feb 17th, 2020 at 6:57pm
Print Post  
properties 'alt+F7', 'Device' - 'Change device'

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #16 - Feb 17th, 2020 at 8:54pm
Print Post  
Strange, there are only two lines of code in visual micro that set the atmel project device name and both are in the place, ignored when the setting you have off is off. 

Please follow the guide in yellow above so that I can see your build properties. Please also zip and email your .ccproj file.

Also confirm the exact atmel studio version from help>about. I am starting to wonder if it is an atmel bug in an older version of atmel. 

Thanks
« Last Edit: Feb 17th, 2020 at 9:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #17 - Feb 22nd, 2020 at 6:34pm
Print Post  
zip in E-mail.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #18 - Feb 22nd, 2020 at 6:47pm
Print Post  
Thanks

Your atmel studio project file shows your change of device has been applied and saved to disk so this sounds like some issue with atmel studio. Or maybe you need to click save on the project before sending the cpp? Did you click save after the mcu had changed back to the wrong value? Did you re-open the project to see if atmel corrects the UI? 

This is what atmel writes to the cppproj file when you make a change. If you can open the project and see that it is wrong, then click save. Then look for the avrdevice to see what that is set too, it would be useful.

<avrdevice>ATSAMD21G18A</avrdevice>


  
Back to top
WWW  
IP Logged
 
FrankC
Ex Member
*


Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #19 - Mar 13th, 2020 at 4:35pm
Print Post  

VS overwrites <avrdevice> ATSAMD21D18A </avrdevice> to <avrdevice> ATSAMD21E18A </avrdevice> in the .cppproj file when I press save
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint