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 Serial debugging the LILYGO -T-Display S3 (Read 736 times)
Zenra
Junior Member
**
Offline


Posts: 37
Joined: Mar 8th, 2017
Serial debugging the LILYGO -T-Display S3
Aug 25th, 2024 at 7:17pm
Print Post  
After reaching a dead end getting hardware debugging to work through Visual Micro for the LILYGO T-Display S3 board (https://www.visualmicro.com/forums/YaBB.pl?num=1700578530/14), I am trying to get serial debugging to work.

After programming and uploading to this board it automatically stops working as a serial port The port used to upload, COM12 in this case, disappears from Device Manager.  It feels like I must be missing something, have a setting wrong, or something else?

I like a lot of the features of this board and so would really like to work with it more, but to do so effectively I will need something better that pin-wiggling to debug.  Any advice will be appreciated.
« Last Edit: Aug 25th, 2024 at 7:21pm by Zenra »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial debugging the LILYGO -T-Display S3
Reply #1 - Aug 25th, 2024 at 8:11pm
Print Post  
Thanks for the info.

The serial debugger is not enabled. 

You eed to leave optimization at default. 

The serial debugger does not need optimization to be switched off because the debug commands are compiled into a temp copy of the code. That causes variables used by the debugger to be available without changing the optimization setting.

Each board varies in its ability to have optimization changed from default. It can cause issues.

Please show screen shot of the vMicro>Debugger menu.
  
Back to top
IP Logged
 
Zenra
Junior Member
**
Offline


Posts: 37
Joined: Mar 8th, 2017
Re: Serial debugging the LILYGO -T-Display S3
Reply #2 - Aug 27th, 2024 at 1:37pm
Print Post  
Wanted to share observations from additional testing:
     
The project I am having the trouble with as reported in the original post is the same one I set up for hardware debugging, hoping to leverage the built-in JTAG over USB capability of this board (as discussed in this thread: https://www.visualmicro.com/forums/YaBB.pl?num=1700578530/14). ; As requested, a shot of the debug menu for that project is attached ("Debug menu - not working").
     
I created a new project, using the VM new empty Arduino project template, targeting the LilyGo T-Display S3 board and everything worked great, and as expected, uploading the code and debugging over USB.  For complete context, this board normally requires a button press combination to put it into bootloader mode, which for this newly created project I had to do only once when initially uploading the code.  Once uploaded the code executes and serial debugging works fine, although stopping debugging through VM also stops the program running on the target board - interesting and different from the other ESP32 based boards I use, but not a problem.  Unlike with the earlier project, the serial connection remains intact - I can make changes, recompile and re-upload my code without having to reset the board into bootloader mode manually.  See attached ("Debug menu - works").
     
     
     
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial debugging the LILYGO -T-Display S3
Reply #3 - Aug 27th, 2024 at 8:28pm
Print Post  
We would need to see the information requested in yellow above for each of the boards to be able to comment.

Yes, the serial debugger does stop (loop) and wait for continue, unless the breakpoint is set to be a message only breakpoint.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint