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 Nano clone with CH340 (Read 1544 times)
CottageMusicTechnology
Newbies
*
Offline


Posts: 2
Location: Melbourne
Joined: Dec 21st, 2018
Nano clone with CH340
Dec 28th, 2018 at 2:30am
Print Post  
I am unable to debug a Nano clone using a CH340 instead of the usual FTDI.   

Should I be expecting this?

If I set a tracepoint (no break) and build/upload DEBUG profile (automatic debugging is on) the program appears to halt (as though on a breakpoint). In the meantime the vMicro debug trace screen shows "Launching debugger" but nothing subsequently happens.


Am I able to debug these boards?  If not, I can switch to a genuine UNO since i only use these as a cheap alternative but it would be nice to be able to work with them directly.


Cheers,

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Nano clone with CH340
Reply #1 - Dec 28th, 2018 at 12:09pm
Print Post  
Hi,

The debugger just uses standard serial. So you should set the tool bar to Release and try your own serial at 115200 to see if it works.

If you can send serial to the monitor with println("Hello World") then debug should work okay with trace points. If you can send a serial message from the monitor and receive on the arduino with serial.available() and serial.read() then break points should also work.

If the standard serial does not work then try at a lower speed
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint