VS Arduino
Visual Micro >> Installation & Troubleshooting >> ESP32 - SPIFFS
https://www.visualmicro.com/forums/YaBB.pl?num=1561789325

Message started by davidcoward on Jun 29th, 2019 at 6:22am

Title: ESP32 - SPIFFS
Post by davidcoward on Jun 29th, 2019 at 6: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
spiff1.JPG ( 13 KB | 2 Downloads )
dm1.JPG ( 27 KB | 0 Downloads )

Title: Re: ESP32 - SPIFFS
Post by Visual Micro on Jun 29th, 2019 at 1: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

Title: Re: ESP32 - SPIFFS
Post by davidcoward on Jun 29th, 2019 at 2: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-vcp-drivers

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

Title: Re: ESP32 - SPIFFS
Post by Visual Micro on Jun 29th, 2019 at 2: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.

Title: Re: ESP32 - SPIFFS
Post by davidcoward on Jun 29th, 2019 at 3: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. ;)


Title: Re: ESP32 - SPIFFS
Post by Visual Micro on Jun 29th, 2019 at 5:10pm
Okay will look into that thanks

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.