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 ESP32 - SPIFFS (Read 1855 times)
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
ESP32 - SPIFFS
Jun 29th, 2019 at 6:22am
Print Post  
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
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 - SPIFFS
Reply #1 - Jun 29th, 2019 at 1:51pm
Print Post  
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
« Last Edit: Jun 29th, 2019 at 1:52pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Re: ESP32 - SPIFFS
Reply #2 - Jun 29th, 2019 at 2:47pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 - SPIFFS
Reply #3 - Jun 29th, 2019 at 2:56pm
Print Post  
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.
« Last Edit: Jun 29th, 2019 at 2:57pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Re: ESP32 - SPIFFS
Reply #4 - Jun 29th, 2019 at 3:23pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 - SPIFFS
Reply #5 - Jun 29th, 2019 at 5:10pm
Print Post  
Okay will look into that thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint