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 problems switching between GDB-stub and vMicro debugger on Nano (Read 155 times)
jimf
Junior Member
**
Offline


Posts: 30
Joined: May 30th, 2015
problems switching between GDB-stub and vMicro debugger on Nano
Jan 25th, 2026 at 2:49am
Print Post  
Hi, I'm just getting started with the GDB-stub on a Nano and finally have it deploying as expected.  I also want to use vMicro debugger at times because I'd like to use Serial.  I'm using #defines to turn on/off sections of code so as to compile a debug configuration when I want to use the vMicro debugger and a release configuration when I want to run the GDB-stub.  I'm having a problem in that the debug configuration keeps on compiling avr8-stub.h causing a linker error because of duplicate definitions of vector __18.  I've checked my code carefully and every reference to avr8-stub.h is inactive.  However, the build keeps on pulling it in during library discovery.  Not sure what to do next.  Please advise....many thanks!   
I'm uploading the build output and also a .zip file that has my repo and folder structure containing the avr-debugger library I'm using (the one VM recommends) and my VS 2026 solution containing my .ino file, a .h file, and two .cpp files.
  

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


Posts: 2864
Joined: Feb 13th, 2019
Re: problems switching between GDB-stub and vMicro debugger on Nano
Reply #1 - Jan 26th, 2026 at 10:01am
Print Post  
Thanks for the report and detail.

The issue seems to be you have the #include <app_api.h> in the section when using the Serial Debugger, when this should be part of the GDB Stub debugger.

If you move that #include then it compiles as expected.
  
Back to top
IP Logged
 
jimf
Junior Member
**
Offline


Posts: 30
Joined: May 30th, 2015
Re: problems switching between GDB-stub and vMicro debugger on Nano
Reply #2 - Jan 31st, 2026 at 9:34pm
Print Post  
thanks, that did it!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint