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 DEbug with ESPProg (Read 976 times)
Bitkipper
Newbies
*
Offline


Posts: 4
Joined: Nov 14th, 2022
DEbug with ESPProg
Nov 15th, 2022 at 5:27pm
Print Post  
Hello,

after some hours to try to start the debugger ESP Prog for the ESP32 module, i am a littel frustrated.

My setup
- win 10 Prof.
- Microsoft Visual Studio Community 2019 Version 16.11.21
- Visual Micro 2022.905.1908

I doubelchecked the wiring and try i with tow different ESP32 boards.

Next step, i reinstall the USB driver and Micro Visual program acc. your debug troubleshooting page.
Changed the USB driver for channel 0 to WINUSB with Zadig

Compile a small program with a emty setup und loop function.

Upload works via ESP Prog

After Visual studio trys to start the debugger a pop up appers.
Unable to start debugging. Unable to establish a connection to GDB. Debug output may mcontain more information.

Output messages
Starting: "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin/openocd.exe" -d2 -l ebugOpenOCD.log}" -s s/" -f s/interface/ftdi/minimodule-lowcost.cfg" -c "set ESP32_RTOS none" -f s/board/esp-wroom-32.cfg" -c "init; reset halt"
Starting: c\gcc8_4_0-esp-2021r2/bin\xtensa-esp32-elf-gdb.exe" --interpreter=mi -ex "set remote hardware-watchpoint-limit 2" -ex "mon reset halt" -ex "flushregs" -ex "thb app_main" -ex "c"
c\gcc8_4_0-esp-2021r2/bin\xtensa-esp32-elf-gdb.exe" exited with code -1073741515 (0xC0000135).


Debug.ino_DebugOpenOCD.log
none
adapter speed: 2000 kHz
Info : Configured 2 cores
esp32 interrupt mask on

Do you need further information's?

Please give my a hint, where can I find the bug.

Thanks
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: DEbug with ESPProg
Reply #1 - Nov 15th, 2022 at 6:02pm
Print Post  
Thanks for the report, can you attach the below file as this should give us some information about the issue:
Code
Select All
ugOpenOCD.log 



Also can you confirm which exact ESP32 module this is you are using? (WROOM-32D, C3, S2, S3, WROVER, WROVER-E etc)
  
Back to top
 
IP Logged
 
Bitkipper
Newbies
*
Offline


Posts: 4
Joined: Nov 14th, 2022
Re: DEbug with ESPProg
Reply #2 - Nov 15th, 2022 at 7:06pm
Print Post  
Hello,

I use an ESP32-WROOM-32 module.

The Debug.ino_DebugOpenOCD.log has only 4 lines.
-----------
none
adapter speed: 2000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
------------

Thanks
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: DEbug with ESPProg
Reply #3 - Nov 16th, 2022 at 9:59am
Print Post  
Thanks for clarifying.

Can you confirm what version of the ESP32 core you are using?

There are known issues with version 2.0.1 / 2.0.2, so it is best to either be on 2.0.0 or update to the latest 2.0.5 to avoid the problems with the packaged GDB.exe.
  
Back to top
 
IP Logged
 
Bitkipper
Newbies
*
Offline


Posts: 4
Joined: Nov 14th, 2022
Re: DEbug with ESPProg
Reply #4 - Nov 18th, 2022 at 4:09pm
Print Post  
Hello, 
now, after the core update it works. 
Please describe the update process more in detail, it is not really straight forward. 

Thanks for your help.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: DEbug with ESPProg
Reply #5 - Nov 18th, 2022 at 4:33pm
Print Post  
Thanks for the update, and glad it has resolved the issue.

It should be as simple as loading vMicro > Micro Explorer, and then clicking on the Board Manager Tab.

Then expand the esp32 node, and select the version required.  The Available Updates section will also show the latest version for update.

https://www.visualmicro.com/page/User-Guide.aspx?doc=Board-Manager.html
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint