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
Normal Topic Atmel-ICE uploader/debugger selection is not sticking in Microchip Studio and ATmega328pb (Read 1874 times)
Tammybai
Ex Member


Atmel-ICE uploader/debugger selection is not sticking in Microchip Studio and ATmega328pb
Jul 7th, 2023 at 3:22am
Print Post  
I am trying to use Visual Micro (on free trial) running in Microchip studio to step-debug a simple blinky program on an ATMega328PB custom PCBA I created using Arduino 2.1.1 toolchain.

This MCU uses a debugWire interface

I am using Microchip Studio using an Atmel-ICE programmer on 6-pin ISP header.

I know that the board/mcu/programmer are all good because:

- I am able to use Microchip studio to start a blank ASF project and start step-debugging through it
- I am able to upload (but not step-debug) a blinky sketch using Arduino IDE 2.1.1 (it says step-debugging is not available for this board)


But no matter how much I've tried finagling with visual micro, I just can't seem to get it to use the Atmel-ICE that is connected.

Here is a video I posted which demonstrates the problem:  

https://www.youtube.com/watch?v=X2yaaygahDM


Updated July 7 10:11am AST

Here is another video I just uploaded showing a fresh project creation of a blinky sketch, and showing that there are changes being made in two places in the .cppproj file when a new hardware debugger option is selected.

Why is this option being set identically in two locations in the .cppproj file?  Could this have something to do with the problems I'm seeing?


« Last Edit: Jul 7th, 2023 at 1:13pm by »  

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel-ICE uploader/debugger selection is not sticking in Microchip Studio and ATmega328pb
Reply #1 - Jul 7th, 2023 at 5:59am
Print Post  
Please ensure that you have instlled visual micro into microchip from our downloads page.

After that it's worth reading our microchip studio page which is linked at the top of our Docs. The page is here https://www.visualmicro.com/page/Arduino-for-Atmel-Studio-7.aspx

You might find that the mcu you are using is too difficult to use with hardware debugging. The 328p usually requires fusebits to be burnt and that usually causes a bricked board unless you are an expert with 328p.

The microchip studio page is a very important read. 

If you have any other questions please follow the guide in yellow at the top of each forum page.

  
Back to top
IP Logged
 
Tammybai
Ex Member


Re: Atmel-ICE uploader/debugger selection is not sticking in Microchip Studio and ATmega328pb
Reply #2 - Jul 7th, 2023 at 1:09pm
Print Post  
Hey I've edited my original post to include the output of the "Micro Build" window when I click on the "Build and Upload" button in the vMicro toolbar.

I've also confirmed that even though the option isn't "sticking", that there are some changes happening silently to the .cppproj file when I select a different debugger in the vMicro->Uploader->Hardware Programmer dropdown list.

See below video to see what I mean:

https://youtu.be/nwit3SWDaKQ
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Atmel-ICE uploader/debugger selection is not sticking in Microchip Studio and ATmega328pb
Reply #3 - Jul 7th, 2023 at 1:36pm
Print Post  
Thanks for the detail.

Your video shows you are running the 2022.1128.715 version of Visual Micro, the latest version available from the downloads page below is 2023.0507.703.
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx

Can you try downloading and installing the version from the Downloads page and see if the issue is resolved?
  
Back to top
IP Logged
 
Tammybai
Ex Member


Re: Atmel-ICE uploader/debugger selection is not sticking in Microchip Studio and ATmega328pb
Reply #4 - Jul 7th, 2023 at 4:28pm
Print Post  
Thank you!  This has resolved the issue for me.


I think this exposes a confusing problem for end users:  If you install the extension via Microchip Studio then it installs an out-of-date version it would seem.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel-ICE uploader/debugger selection is not sticking in Microchip Studio and ATmega328pb
Reply #5 - Jul 7th, 2023 at 6:06pm
Print Post  
Thanks, yes in the Microchip gallery you will see the Visual Micro product description shows a big warning about this. Downloading from inside the IDE does not.

Since Microchip purchased Atmel it is a more cumbersome process to publish updates into the gallery. It will be published within the next month or so but we will always recommended the updates from our web site for Microchip Studio and why the first line of our first response to this thread mentioned it  Smiley

Thanks for the feedback.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint