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) ESP-Prog No Serial Output (Read 1327 times)
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
ESP-Prog No Serial Output
Oct 19th, 2022 at 9:29pm
Print Post  
I recently configured ESP-Prog and had it working well, but now serial output from the app is not showing (it was originally). I get output from the break points showing in the Output window, but no longer anything generated from the app by print/println. 

The USB driver setup looked OK, but I reinstalled and rebooted just to test. No change. 

Screen shot of debug session:

  

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


Posts: 2176
Joined: Feb 13th, 2019
Re: ESP-Prog No Serial Output
Reply #1 - Oct 20th, 2022 at 9:04am
Print Post  
Thanks for the report.

Can you confirm if you running the Serial through a USB cable direct to the ESP32 Module, or have you routed the Serial lines through the ESP-PROG?

Your screenshot does not show the Serial Monitor open, if this is opened when you start debugging, do you see any output?
  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP-Prog No Serial Output
Reply #2 - Oct 20th, 2022 at 11:29am
Print Post  
The USB cable is connected via the USB prog. 

No serial output if Serial Monitor open.

If I turn Verbose on the Uploader then I get the following output.

ESP32FSUpload.exe
## recipe.wwwfiles.upload.pattern
"c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\k0rd3sfw.d3n/ESP32FSUpload.exe" -serial.port=COM13 p32\Debug" -target_platform="esp32" p32\tools\mkspiffs\0.2.3" -board.name="ESP32 Dev Module" -upload.verbose=True -upload.resetmethod={upload.resetmethod} -upload.speed=921600 sp32\2.0.5" -project.name="PlumbingTestRig.ino" -project.path="D:\Users\admin\Documents\Arduino\sketchbook\PlumbingTestRig" -tools.esptool.cmd="{tools.esptool.cmd}" -tools.esptool.cmd.windows="{tools.esptool.cmd.windows}" -runtime.tools.esptool.path="{runtime.tools.esptool.path}" sa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3/bin/" -build.spiffs_start="{build.spiffs_start}" -build.spiffs_end="{build.spiffs_end}" -build.spiffs_pagesize="{build.spiffs_pagesize}" -build.spiffs_blocksize="{build.spiffs_blocksize}" -build.partitions="min_spiffs" -network.password={network.password} -network.auth_upload={network.auth_upload} -network.port=3232 -upload.tool=esptool_py -tools.esptool_py.cmd="esptool.exe" -tools.esptool_py.cmd.windows="{tools.esptool_py.cmd.windows}" esp32\tools\esptool_py\4.2.1" -build.flash_mode=dio -build.flash_freq=80m
D:\Users\admin\Documents\Arduino\sketchbook\PlumbingTestRig\data\config.json
SPIFFS Creating Image...
[SPIFFS] data   : D:\Users\admin\Documents\Arduino\sketchbook\PlumbingTestRig\data
[SPIFFS] offset : 0
[SPIFFS] size   : 192
[SPIFFS] page   : 256
[SPIFFS] block  : 4096
iffs.exe" -c "D:\Users\admin\Documents\Arduino\sketchbook\PlumbingTestRig\data" -p 256 -b 4096 -s 196608 87bf4fb74ea94ad1dd062bdff52257/PlumbingTestRig.ino.spiffs.bin"
/config.json
SPIFFS Uploading Image...
[SPIFFS] upload : 7bf4fb74ea94ad1dd062bdff52257/PlumbingTestRig.ino.spiffs.bin
[SPIFFS] address: 3997696
[SPIFFS] port   : COM13
[SPIFFS] speed  : 921600
[SPIFFS] mode   : dio
[SPIFFS] freq   : 80m
ptool.exe" --chip esp32 --baud 921600 --port COM13 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 3997696 87bf4fb74ea94ad1dd062bdff52257/PlumbingTestRig.ino.spiffs.bin"
esptool.py v4.2.1
Serial port COM13
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
SPIFFS Upload failed!
« Last Edit: Oct 20th, 2022 at 11:34am by CSC »  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP-Prog No Serial Output
Reply #3 - Oct 20th, 2022 at 11:44am
Print Post  
Think I found my issue. The PROG port of the ESP-Prog is not wired to the ESP32. Will connect and confirm.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2176
Joined: Feb 13th, 2019
Re: ESP-Prog No Serial Output
Reply #4 - Oct 20th, 2022 at 11:45am
Print Post  
Thanks for confirming, the wiring diagram is available below:
https://www.visualmicro.com/pics/Debug-Help-ESP32-PROG-ALL-Connections.png
« Last Edit: Oct 20th, 2022 at 11:59am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP-Prog No Serial Output
Reply #5 - Oct 20th, 2022 at 12:32pm
Print Post  
Yep, that was it. Wiring of the PROG connector is left out of most setup instructions (though a diagram is included in vMicro's). 
  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP-Prog No Serial Output
Reply #6 - Oct 20th, 2022 at 12:35pm
Print Post  
Related question: the ESP-WROOM-32 dev board I am using does not expose GPIO00 so I cant wire that pin. So far it seems to work fine without it. Is there functionality that will be effected by not having it connected?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2176
Joined: Feb 13th, 2019
Re: ESP-Prog No Serial Output
Reply #7 - Oct 20th, 2022 at 1:16pm
Print Post  
I believe you can wire the EN pin in place of IO0, and it's only used to reset the board when using the Serial Upload / SPIFFS upload to my knowledge.
  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP-Prog No Serial Output
Reply #8 - Oct 20th, 2022 at 1:18pm
Print Post  
Thanks. 

Alternatively pressing the "BOOT" button works.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint