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 JTAG debugging with ESP-PROG stopped working (Read 384 times)
Steven Bennett
Junior Member
**
Offline


Posts: 35
Location: High Bentham
Joined: Nov 2nd, 2022
JTAG debugging with ESP-PROG stopped working
Aug 24th, 2024 at 9:48am
Print Post  
I have been using VM + ESP-PROG + ESP32 for uploading and debugging sketches.  Suddenly, for no obvious reason, the debug start process fails with the attached output showing error messages.  I have changed cables, USB ports, re-run Zadig on the correct interface but nothing fixes the problem.  Any ideas most welcome - thanks.

Bit more info - I was getting a message about a missing bin file in C:\Users\Steven\AppData\Local\Temp\VMBuilds\ESP32S3_test\esp32_esp32\Release which was true there was not a single bin file.  So I changed the programmer to none and started debugging after uploading via the COM port, this time it worked and looking in the \Release folder now several bin files were listed, then changing the programmer back to esp-prog again everything worked - does this make any kind of sense to you?

Spoke too soon, debug problem has returned.  Error messages attached - unable to start debugging and frame not in module.  I created a new project with a different name using a simple blink sketch and could debug using esp-prog but when I replaced the blink sketch with a more complex program I got the attached error messages again. Seems I can only upload 2 files at any one time so the 3 files mentioned are in the zip.
« Last Edit: Aug 24th, 2024 at 4:26pm by Steven Bennett »  

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG debugging with ESP-PROG stopped working
Reply #1 - Aug 24th, 2024 at 7:51pm
Print Post  
What line do you have a breakpoint on? The frame not in module can sometimes happen if the debugger tries to step into code that doesn't have source such as pre compiled lib files in the core.

To test the debugger, try a breakpoint on a simple line of code in the project sources that do not step into the unknown.

  
Back to top
IP Logged
 
Steven Bennett
Junior Member
**
Offline


Posts: 35
Location: High Bentham
Joined: Nov 2nd, 2022
Re: JTAG debugging with ESP-PROG stopped working
Reply #2 - Aug 25th, 2024 at 11:08am
Print Post  
I removed VM extension from VS and reinstalled it. The breakpoints are set for simple delay() lines. Attached zipped spreadsheet shows success/failures for two projects by method and the text file is the debug output. The failing VM project can be downloaded from https://github.com/BenthamSoftwareServices/Visual_Micro/tree/main/ESP32/6E5C_Mag...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Steven Bennett
Junior Member
**
Offline


Posts: 35
Location: High Bentham
Joined: Nov 2nd, 2022
Re: JTAG debugging with ESP-PROG stopped working
Reply #3 - Aug 25th, 2024 at 12:16pm
Print Post  
Does this point towards the problem.  I created a new project, just a simple blink, and tested that I could do a hardware debug via ESP-PROG, both with serial and JTAG code uploads. I then added the code from the failing project, line by line, and at each addition checked both styles of hardware debug were working; until I had duplicated the code from the failing project.  Does this suggest that there is a difference between the two project folders contents i.e. is something in the failing project folder corrupted and if so what could have caused it?  It's obviously not ideal to get into a big project, experience this type of problem and have to recreate the project by testing it line by line.
  
Back to top
 
IP Logged
 
Steven Bennett
Junior Member
**
Offline


Posts: 35
Location: High Bentham
Joined: Nov 2nd, 2022
Re: JTAG debugging with ESP-PROG stopped working
Reply #4 - Aug 25th, 2024 at 5:02pm
Print Post  
I just created a new project and copied the code from an earlier working project and this time serial debug does not work, and I noticed that the line number at the breakpoint does not turn from grey to white and the continue button does not appear (the little white one) but the square stop debugging does and if I stop debugging the last time of the output states that it has stopped at the line where the breakpoint is located. However the hardware debugging via esp-prog does work both with serial and JTAG uploads - the errors all seem somewhat random?
« Last Edit: Aug 25th, 2024 at 5:21pm by Steven Bennett »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG debugging with ESP-PROG stopped working
Reply #5 - Aug 25th, 2024 at 5:30pm
Print Post  
The build output is required because it shows us useful info. for example, if the default optimization setting has been altered. The optimization can affect things.

It will also show other imortant information.
  
Back to top
IP Logged
 
Steven Bennett
Junior Member
**
Offline


Posts: 35
Location: High Bentham
Joined: Nov 2nd, 2022
Re: JTAG debugging with ESP-PROG stopped working
Reply #6 - Aug 26th, 2024 at 8:10am
Print Post  
Since I performed hardware debug, via ESP-PROG using both serial and JTAG upload, now the serial debug works and I can't get it to fail again.  If it happens again I'll try and grab the output.  Are the various outputs stored anywhere in a log file as I notice that some output disappears from the console on completion of the build/upload e.g. the library building process?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint