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
Hot Topic (More than 8 Replies) Frame not in module (Read 3413 times)
John2006_ty
Junior Member
**
Offline


Posts: 22
Joined: Aug 7th, 2019
Frame not in module
Apr 6th, 2023 at 3:00pm
Print Post  
Hi

ESP32 core : v2.0.6
VS version VS2022

I am trying to debug ESP32S3  on USB hardware. 
First, I have installed USB JTAG/serial debug unit (Interface 2) with Zadig. Second, board.txt was created by following Software Setup at https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx. ;

USB port of ESP32S3 connected to PC with COM5-USB Serial Device (ESP32S3 Dev Module) enumerated. 

Everything seems fine but the following error pop up when I clicked F5 (Start Debugging) an error "Frame not in module" showed up (Frame not in module.png).

The Output message (output.txt) is also attached in this thread.

Anybody has similar problem?

John


  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: Frame not in module
Reply #1 - Apr 6th, 2023 at 3:04pm
Print Post  
Thanks for the report.

If you press the Continue button from the "Frame Not in Module Error" does the debugging session continue normally to a breakpoint in your sketch?
  
Back to top
IP Logged
 
John2006_ty
Junior Member
**
Offline


Posts: 22
Joined: Aug 7th, 2019
Re: Frame not in module
Reply #2 - Apr 6th, 2023 at 3:25pm
Print Post  
No, it does not stop at any breakpoint when I press Continue.
Instead, the following Output messages seen:

esp_usb_jtag: usb sent only 0 out of 1792 bytes.
esp_usb_jtag: usb sent only 0 out of 1812 bytes.
esp32s3.cpu0: target not halted
esp_usb_jtag: usb sent only 0 out of 1856 bytes.
esp_usb_jtag: usb sent only 0 out of 1876 bytes.
esp32s3.cpu0: Failed to prepare for resume!
target esp32s3.cpu0 was not halted when resume was requested
esp_usb_jtag: usb sent only 0 out of 1907 bytes.
missing data from bitq interface
esp_usb_jtag: usb sent only 0 out of 1920 bytes.
esp_usb_jtag: usb sent only 0 out of 1926 bytes.
missing data from bitq interface
Failed to exec JTAG queue!
Failed to read debug stubs address location (-104)!
esp_usb_jtag: usb sent only 0 out of 1957 bytes.
missing data from bitq interface
esp_usb_jtag: usb sent only 0 out of 1976 bytes.
missing data from bitq interface
Failed to exec JTAG queue!
Failed to read debug stubs address location (-104)!

Program stopped.
0x40000400 in ?? ()
Signal 0
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: Frame not in module
Reply #3 - Apr 6th, 2023 at 3:35pm
Print Post  
Thanks for the update and detail.

If you change the debug.path line in your local board.txt to match the attached file, does this improve the situation?

There appears to be a fix in this version for the ESP32S3 which may be appropriate, we will package up the very latest version and update this thread with how to try that if the above fails.
  

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


Posts: 22
Joined: Aug 7th, 2019
Re: Frame not in module
Reply #4 - Apr 6th, 2023 at 4:23pm
Print Post  
How the debug.path is formated? By copying a second version of openocd-esp32 to my environment, folder structures are shown in screen capture (v0.10.0-esp32-20211111.png).

It seems to me that the path of v0.10.0-esp32-20211111 is something like (tools_openocd_debug_path.png)


Please advise.

« Last Edit: Apr 6th, 2023 at 4:28pm by John2006_ty »  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: Frame not in module
Reply #5 - Apr 6th, 2023 at 4:36pm
Print Post  
The line in the previously attached file is to use our internal copy of OpenOCD which is downloaded from our website, and is stored in C:\ProgramData\vMicro\tools.  This is just a clone of the same package released directly by Espressif with a few minor tweaks to suit our system.

The board package versions of OpenOCD can also be used but we would have to inspect their package layout and send over all of the required overrides to use that version.

Simply applying the configuration we sent over should automatically download the package from our website and unpack it, when you try to attach the debugger.

If it does not, you can download our copy from:
https://visualmicro.com/downloads/tools/openocd-esp32-0.11.0-2022.07.06/openocd-...

Then unzip it to "C:\ProgramData\vMicro\tools" and it should then work with the override we provided and no further modifications.
« Last Edit: Apr 6th, 2023 at 4:37pm by Simon@Visual Micro »  
Back to top
IP Logged
 
John2006_ty
Junior Member
**
Offline


Posts: 22
Joined: Aug 7th, 2019
Re: Frame not in module
Reply #6 - Apr 6th, 2023 at 4:54pm
Print Post  
I see! By inspecting C:\ProgramData\vMicrotools content, it shows quite a number of openocd versions as shown attached screen capture (openocd_versions.png) because I have tried several possiblities today that may be why there are 2022 0.10.1 and 0.10.0 versions etc. 

Unfortunately, after restoring the configuration you sent over there is a new error as shown (Unable to start debugging.png).

Actually, would it be more simple to use a JLINK instead of the USB port to debug?


  

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


Posts: 22
Joined: Aug 7th, 2019
Re: Frame not in module
Reply #7 - Apr 7th, 2023 at 2:48am
Print Post  
Now I am switching to JLink debug by following the procedures described on https://www.visualmicro.com/page/ESP32S3-JTAG-Debugging.aspx.

STRAP_JTAG_SEL set to true already.
IO3 short to GND.
JTAG wiring complete except VCC output of JLink is NOT connected to 5V of ESP32S3 board because I have USB cable connected to the USB port.
Local board.txt set according to Software Setup screen.
Previously I have got USB JTAG/serial debug unit (Interface 2) replacing WinUSB. Not sure if it matters.

Now I have got an error message as shown below (Unable to start debugging.png).

Another screen capture (Output_log.png) shows the output terminal content.

Both USB debug and JTAG debug return the same fault. Please help  Cry
« Last Edit: Apr 7th, 2023 at 3:05am by John2006_ty »  

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


Posts: 22
Joined: Aug 7th, 2019
Re: Frame not in module
Reply #8 - Apr 7th, 2023 at 11:18am
Print Post  
OK, finally got JLink working. I needed to update the WinUSB driver with J-Link option from Zadig (see screen capture attached).
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: Frame not in module
Reply #9 - Apr 11th, 2023 at 2:17pm
Print Post  
Thanks for the update and detail, and glad you are up and running with the debugging.

If we have any further ideas to try to use the USB Debugging we will update this thread.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint