VS Arduino
Visual Micro >> Usb/Serial/WiFi Debugging >> Unable to debug Arduino Pro Mini 3V3 8MHz
https://www.visualmicro.com/forums/YaBB.pl?num=1535384544

Message started by Fer on Aug 27th, 2018 at 3:42pm

Title: Unable to debug Arduino Pro Mini 3V3 8MHz
Post by Fer on Aug 27th, 2018 at 3:42pm
Hi!

I am new with Visual Micro and I have followed the Debugging tutorial successfully with an Arduino Nano.

However when I connect my Arduino Pro Mini 3V3 8MHz board (through a USB-TTL adapter which uses a CH340 integrated circuit) I am able to upload the "Blinking without delay" program as instructed in the tutorial and the program runs OK (I get the correct scripts in the output window and I can see the blinking led in my board).

However in the Expressions window I only see a message ""Waiting for debug breakpoint data" while the serial monitor shows several non ASCII characters passing by continuously. I imagine I should change some property, but I don't know which one. Please, could you give me some advice? Your help will be very much appreciated. Thanks in advance!

Title: Re: Unable to debug Arduino Pro Mini 3V3 8MHz
Post by Visual Micro on Aug 27th, 2018 at 4:15pm
Without debug. Does normal serial work is you send serial messages from arduino to the serial monitor?

Title: Re: Unable to debug Arduino Pro Mini 3V3 8MHz
Post by Fer on Aug 27th, 2018 at 4:50pm
Hi, Tim, thank you for your prompt response.

I made a simple "hello world + blinking led" program. The program runs correctly, since I see the blinking led, and in the serial port I see:

Opening port
Port open
xf`ff�f� f�f���` ff怘... lots of strange characters that print continuously.

My program has a serial.begin(9600) line, and the monitor is also adjusted to 9600. Any thoughts? Again, thank you very much. Kind regards.



Title: Re: Unable to debug Arduino Pro Mini 3V3 8MHz
Post by Visual Micro on Aug 28th, 2018 at 7:59pm
The tool is set to Release and not Debug?

Title: Re: Unable to debug Arduino Pro Mini 3V3 8MHz
Post by Fer on Aug 28th, 2018 at 10:26pm
The tool is set to debug as indicated in the tutorial. In fact all the options mentioned in the tutorial are set accordingly. Following the tutorial the debug feature worked OK with my Arduino Nano but doesn't seem to work in the Arduino Pro Mini.

Title: Re: Unable to debug Arduino Pro Mini 3V3 8MHz
Post by Visual Micro on Aug 28th, 2018 at 10:30pm
Hi,

To make this clean test of the serial capability please ensure debug is off. Set the toolbar to Release and then upload with your serial code

If that works then try your own code at serial speed of 115200. If that fails then try 56k. We need to determine what speed serial your board will work at.

Thanks

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