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 RTOS Support (Read 83 times)
Joe Mattioni
Newbies
*
Offline


Posts: 8
Joined: Jan 23rd, 2022
RTOS Support
May 30th, 2025 at 6:28pm
Print Post  
I've figured out how to get the debugger to run for an ESP32 project, but OpenOCD is not configured for RTOS. I can clearly see in the log that it specifies "rtos none". I need it to specify "rtos auto". 

Does anyone know how to alter the GDB startup params in the Adruino plugin for Visual Studio?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: RTOS Support
Reply #1 - May 30th, 2025 at 7:31pm
Print Post  
Please provide the information highlighted near the top of the screen.
  
Back to top
IP Logged
 
Joe Mattioni
Newbies
*
Offline


Posts: 8
Joined: Jan 23rd, 2022
Re: RTOS Support
Reply #2 - May 30th, 2025 at 9:04pm
Print Post  
Attached is the program build output.
The debug startup output is also attached.

I found the ESP32_RTOS flag set to 'none' in the _vm xml file
...Projects\ESP32RET\__vm\Configuration.Debug.vmps.xml
Changed the ESP32_RTOS set to 'auto', but the debug start output still shows it as 'none'. Not clear where debug start is getting its settings.

Thanks.
  

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: RTOS Support
Reply #3 - May 30th, 2025 at 10:47pm
Print Post  
The _vm folder just shows what happened. The properties are read live from generic config files.

Normally when we switch on show build properties that also switches on verbose compile which shows which tools are actually used for the build. Your output has verbose switched off for some reason.

The debug output suggest this tool pattern is being used:-

tools.openocd.debug.args={params.verbose} -l "{{build.path}/{build.project_name}_DebugOpenOCD.log}" -s "{path}/share/openocd/scripts/" -f "{path}/share/openocd/scripts/interface/{build.openocddebugger}" -c "adapter_khz 5000" -c "set ESP32_RTOS none" -f "{path}/share/openocd/scripts/board/{openocdscript}" {initCmd}

You can redefine any of the patterns shown in the build properties by adding a text file to the root of your project called board.txt.

Then redefine specific patterns by adding them to that file. The next build/debug will use the redefined pattern(s)

Does this help?


  
Back to top
IP Logged
 
Joe Mattioni
Newbies
*
Offline


Posts: 8
Joined: Jan 23rd, 2022
Re: RTOS Support
Reply #4 - May 31st, 2025 at 1:43pm
Print Post  
Thanks Tim. I'll try that.

Can you tell me how RTOS debug mode is decided for a board? Where could I find this setting?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: RTOS Support
Reply #5 - May 31st, 2025 at 4:05pm
Print Post  
Its not. It defaults to off.  No testing has been made.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2709
Joined: Feb 13th, 2019
Re: RTOS Support
Reply #6 - Today at 8:46am
Print Post  
Just to note on this the value for ESP32_RTOS is the name of the RTOS running on the target.

If you remove the -c "set ESP32_RTOS none" part of the command it will default to "FreeRTOS" which is the default for the ESP32 version of OpenOCD.

More detail about the ESP32 specific variables can be found here: 
https://github.com/espressif/openocd-esp32/blob/master/espressif.md

To override the setting for the S3 USB Debugger in use, try the below entry in a local board.txt:
tools.esps3usb.vmserver.args={params.verbose} -l "{{build.path}/{build.project_name}_DebugOpenOCD.log}" -s "{path}/share/openocd/scripts/" -c "set ESP_FLASH_SIZE 0" -f "{path}/share/openocd/scripts/interface/{build.openocddebugger}" -c "set ESP32_RTOS none" {initCmd}
« Last Edit: Today at 8:47am by Simon@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint