Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Pages: 1 2 
Send Topic Print
Atmel Ice - debug - Feather M0 - ATSAMD21E18A ? (Read 1776 times)
FrankC
Ex Member
*



Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Feb 10th, 2020 at 9:52am
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #1 - Feb 10th, 2020 at 12:05pm
 
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.
Back to top
« Last Edit: Feb 10th, 2020 at 12:06pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



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



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #3 - Feb 10th, 2020 at 5:48pm
 
Not arrived please try sending to visualmicro@outlook.com to see if that works
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



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

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



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

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



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #6 - Feb 12th, 2020 at 12:58pm
 
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
 

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



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



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #8 - Feb 13th, 2020 at 4:04pm
 
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
Back to top
« Last Edit: Feb 17th, 2020 at 9:05pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #9 - Feb 15th, 2020 at 4:24pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #10 - Feb 16th, 2020 at 9:05pm
 
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?
Back to top
 

Please Register or Login to the Forum to see File Attachments

Tim Leek
home
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #11 - Feb 17th, 2020 at 3:29pm
 
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
 

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #12 - Feb 17th, 2020 at 5:21pm
 
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
 
pdf
Back to top
 

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



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #14 - Feb 17th, 2020 at 5:31pm
 
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
 

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



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

Back to top
 

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



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #16 - Feb 17th, 2020 at 8:54pm
 
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
Back to top
« Last Edit: Feb 17th, 2020 at 9:04pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



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

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



Posts: 10893
United Kingdom
Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Reply #18 - Feb 22nd, 2020 at 6:47pm
 
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
 

Tim Leek
home
WWW  
IP Logged
 
FrankC
Ex Member
*



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

VS overwrites <avrdevice> ATSAMD21D18A </avrdevice> to <avrdevice> ATSAMD21E18A </avrdevice> in the .cppproj file when I press save
Back to top
 
 
IP Logged
 
Pages: 1 2 
Send Topic Print