Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
ESP32 - SPIFFS (Read 256 times)
davidcoward
Junior Member
**
Offline



Posts: 37
ESP32 - SPIFFS
Jun 29th, 2019 at 7:22am
 
Hi again

I'm trying to get to grips with an ESP32 and can build and upload sketches. However, the serial window doesn't appear to work. I have read the notice about SiLabs driver v10.x, but I don't have the given option to roll it back and wondered if this 10.x issue is fixed now. I can see the device in Arduno and also with HTerm, but I can't switch to these quickly enough to see what's occurring in setup without slugging it with a delay(10000).

I am guessing this is the reason the option to upload files to SPIFFs doesn't work. With Verbose ON, the output window simply shows as attached.

Thanks
Back to top
 

spiff1.JPG (13 KB | 0 )
spiff1.JPG
dm1.JPG (27 KB | 1 )
dm1.JPG
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10563
United Kingdom
Re: ESP32 - SPIFFS
Reply #1 - Jun 29th, 2019 at 2:51pm
 
The silicon labs driver for windows universal (v10x) is never going to work with normal windows c# access. It's seems to be the way the driver manufacturer wants to work. You should install the 6x driver. We will in the future move away from the managed microsoft serial interface and revert to the really old way of doing things.

For all other errors please submit the information shown in yellow at the top of this page
Back to top
« Last Edit: Jun 29th, 2019 at 2:52pm by Visual Micro »  
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline



Posts: 37
Re: ESP32 - SPIFFS
Reply #2 - Jun 29th, 2019 at 3:47pm
 
OK

I got the 6.X driver installed and output now appears in the serial terminal window. The procedure, if it helps others, is to uninstall the device and then download/re-install the 6.X drivers from here:

https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vc...

However, the utility to upload files to SPIFFs still doesn't work. With verbose ON, all that happens is that shown on the screenshot in my first post. Nothing else. So I didn't really think I'd need to attach a 1 line text file....

But if I occupy the port with, say the Arduino port monitor, then I get this:

ESP32FSUpload.exe
   Traceback (most recent call last)
   File "esptool.py", line 2959, in <module>
   File "esptool.py", line 2952, in _main
   File "esptool.py", line 2652, in main
   File "esptool.py", line 222, in __init__
   File "site-packages\serial\__init__.py", line 88, in serial_for_url
   File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException*: could not open port COM60: WindowsError(5, Access is denied.)
   Failed to execute script esptool

I am on VM 1.1905.26
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10563
United Kingdom
Re: ESP32 - SPIFFS
Reply #3 - Jun 29th, 2019 at 3:56pm
 
Yes please always post it saves you having to give the information that is always required such as esp tool chain version and shows your config and shows the patterns. Enabling Verbose upload in this case is also useful.

It is also required to say which ide you are using, vs or atmel. If vs then which vs version.
Back to top
« Last Edit: Jun 29th, 2019 at 3:57pm by Visual Micro »  
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline



Posts: 37
Re: ESP32 - SPIFFS
Reply #4 - Jun 29th, 2019 at 4:23pm
 
Ah. I see. It was not obvious that there is an uploader verbose as well as a compiler verbose...

With this on, it does actually return a message that it's done its thing:

Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 1503232 bytes to 3220...
Writing at 0x00291000... (100 %)
Wrote 1503232 bytes (3220 compressed) at 0x00291000 in 0.0 seconds (effective 255869.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
SPIFFS Image Uploaded


Maybe it was working all along...but perhaps it may be useful to have the last 5 or 6 lines written in non-verbose upload mode.

Thanks! All good now. I think. Wink

Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10563
United Kingdom
Re: ESP32 - SPIFFS
Reply #5 - Jun 29th, 2019 at 6:10pm
 
Okay will look into that thanks
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print