VS Arduino
Visual Micro >> Microchip Studio (Atmel Studio 7) >> Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
https://www.visualmicro.com/forums/YaBB.pl?num=1581328355

Message started by FrankC on Feb 10th, 2020 at 9:52am

Title: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on 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?

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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.

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 10th, 2020 at 5:04pm
ok, E-mail is send.

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on Feb 10th, 2020 at 5:48pm
Not arrived please try sending to visualmicro@outlook.com to see if that works

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 11th, 2020 at 7:53pm
output en screenshot  in E-mail(visualmicro@outlook.com) send
screenshot_002.PNG ( 90 KB | 1 Download )

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 11th, 2020 at 7:54pm
output
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Output-MicroBuild_012.txt ( 57 KB | 2 Downloads )

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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.


Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 12th, 2020 at 1:06pm
Thks

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on 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.

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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?

as7-manually-assign-mcu.png ( 34 KB | 3 Downloads )

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 17th, 2020 at 5:21pm
look at doc. voor de scenario's.

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 17th, 2020 at 5:22pm
pdf
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=wrong_device.pdf ( 725 KB | 5 Downloads )

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 17th, 2020 at 6:57pm
properties 'alt+F7', 'Device' - 'Change device'


https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=doc1.pdf ( 230 KB | 10 Downloads )

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Feb 22nd, 2020 at 6:34pm
zip in E-mail.


Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on 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>



Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Mar 13th, 2020 at 4:35pm

VS overwrites <avrdevice> ATSAMD21D18A </avrdevice> to <avrdevice> ATSAMD21E18A </avrdevice> in the .cppproj file when I press save

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by Visual Micro on Mar 13th, 2020 at 4:58pm
It's working correctly when I try it. For example:-

If the menu item is enabled/on I can use the atmel dialogs to change the processor. I see the change reflected in the tool bar but when I switch to a different board in the arduino boards list the atmel processor switches back to ATSAMSX8E which is our default if we can find the mcu name in the arduino config.

If the menu item is off The atmel tool bar clearly shows the processor never changes when switching board.

Can you confirm you see same?

Title: Re: Atmel Ice - debug - Feather M0 - ATSAMD21E18A ?
Post by FrankC on Mar 15th, 2020 at 10:09am

dear, we are talking in circles, problem still remains the same as initially indicated.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.