Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Visual Studio 2017, 2019 >> Debugging SAMD21 in Visual Studio with Visual Micro plugin and Atmel ICE
https://www.visualmicro.com/forums/YaBB.pl?num=1564059740

Message started by crk on Jul 25th, 2019 at 2:02pm

Title: Debugging SAMD21 in Visual Studio with Visual Micro plugin and Atmel ICE
Post by crk on Jul 25th, 2019 at 2:02pm
Hi everyone, i'm new here.
I searched a bit on the internet on how to solve my problem:
I have an arduino MKRZERO and i'm trying to program it in Visual Studio 2017 with Visual Micro plugin and Arduino 1.8.9;
i bought Atmel ICE programmer,
but when uploading it gives "error at91samd21g18.cpu clearing lockup after double fault"
Uploading bootloader works, and the strange thing is that after trying to upload my program and failing and loading bootloader, the previous program starts running!  :o
I wish to get full debugging on this setup, for example i even don't know what to choose under vMicro>Debugger menu, is first of all supported?
Thank you

Title: Re: Debugging SAMD21 in Visual Studio with Visual Micro plugin and Atmel ICE
Post by Visual Micro on Jul 25th, 2019 at 5:02pm
Please post the info requested in yellow above so that we can see more clearly what you are trying to do and with which settings enabled.

Upload

Thanks, currently the Arduino definitions do not come with a reliable ICE programmer for upload. We will be releasing a version of visual micro over the comming few days that extends the Arduino programmers list with a full range of programmers. There are also some new tool bar options to make this quick and easy to select.

Debug
You would simply pick the ICE debugger from the Debugger menu or tool bar and also probably set Optimization to "No Project or Libraries"

So for now use normal serial/bootloader upload along alongside ICE debug and enable notifications in the Releases section of this forum so that you get to hear about the new release over next few days.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.