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 How to debug in multi-thread (Read 1023 times)
oldmike
Newbies
*
Offline


Posts: 1
Joined: Jun 23rd, 2023
How to debug in multi-thread
Jun 23rd, 2023 at 12:09pm
Print Post  
How to debug in multi-thread? using vmicro for vs 2022 and
ESP32C3 DEV board.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: How to debug in multi-thread
Reply #1 - Jun 30th, 2023 at 8:35am
Print Post  
Would it be possible to give a simple code example of how you are implementing the Multi Threading so we can advise more easily?

We have successfully been able to debug the xTaskCreatePinnedToCore functions using Hardware Debugging via JTAG on an ESP32S3 (Our C3 is configured for USB Debugging).  The USB Debugging should also work as expected, and which one you use depends on your fuse settings (shown in the below guides):
ESP32C3 USB Debug: https://www.visualmicro.com/page/ESP32C3-USB-Debugging.aspx
ESP32C3 JTAG Debug: https://www.visualmicro.com/page/ESP32C3-JTAG-Debugging.aspx


The vMicro Serial Debugger can be used in Trace Only Mode (no stopping on Breakpoints) within these tasks as well, however if you do halt on a breakpoint the chip quickly panics and resets.
« Last Edit: Jun 30th, 2023 at 9:42am by Simon@Visual Micro »  
Back to top
IP Logged
 
xiomaragrays
Newbies
*
Offline


Posts: 1
Joined: May 20th, 2024
Re: How to debug in multi-thread
Reply #2 - May 20th, 2024 at 9:43am
Print Post  
Quote:
Would it be possible to give a simple code example of how you are implementing the Multi Threading so we can advise more easily?

We have successfully been able to debug the xTaskCreatePinnedToCore functions using Hardware Debugging via JTAG on an ESP32S3 (Our C3 is configured for USB Debugging).  The USB Debugging should also work as expected, and which one you use depends on your fuse settings (shown in the below guides):
ESP32C3 USB Debug: https://www.visualmicro.com/page/ESP32C3-USB-Debugging.aspx
ESP32C3 JTAG Debug: https://www.visualmicro.com/page/ESP32C3-JTAG-Debugging.aspx geometry dash lite


The vMicro Serial Debugger can be used in Trace Only Mode (no stopping on Breakpoints) within these tasks as well, however if you do halt on a breakpoint the chip quickly panics and resets.

Great! This is what I am looking for. Thanks for sharing, much appreciated!
« Last Edit: May 21st, 2024 at 6:54am by xiomaragrays »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint