Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
>> >> ESP 32 SPIFFS upload data files
https://www.visualmicro.com/forums/YaBB.pl?num=1525889795

Message started by Esteve on May 9th, 2018 at 7:16pm

Title: ESP 32 SPIFFS upload data files
Post by Esteve on May 9th, 2018 at 7:16pm
I'm using the ESP32 board as a web server and using the SPIFFS as a web files repository, but there is not any tool to upload these files inside visualMicro, there is one tool using the ESP8266.
I have to use the Arduino IDE to upload them, since exist one tool that can do it.
Is there are any plans to include this tool?

Title: Re: ESP 32 SPIFFS upload data files
Post by Visual Micro on May 9th, 2018 at 7:24pm
The menu item should appear.

Which core are you using for your esp32 board?

Title: Re: ESP 32 SPIFFS upload data files
Post by Esteve on May 10th, 2018 at 8:36am
I'm using the Adafruit HUZZAH32 – ESP32 Feather Board that has the ESP-WROOM-32 core

The arduino esp-32 uploader could be found here https://github.com/me-no-dev/arduino-esp32fs-plugin


Title: Re: ESP 32 SPIFFS upload data files
Post by Esteve on May 10th, 2018 at 9:10am
When I try to upload from the menu (Publish Server Data Files) appears these error
ESP8266FSUpload.exe
SPIFFS Not Supported on esp32

Title: Re: ESP 32 SPIFFS upload data files
Post by Visual Micro on May 10th, 2018 at 10:46am
Thanks for the info. There is an update here you can try

Title: Re: ESP 32 SPIFFS upload data files
Post by Esteve on May 11th, 2018 at 8:59am
Thanks a lot
Works perfect

Title: Re: ESP 32 SPIFFS upload data files
Post by Visual Micro on May 11th, 2018 at 10:40pm
Good to know thanks.

I forgot to put in the release notes that is supports password auth, not sure why it's missing from the esp .jar

Title: Re: ESP 32 SPIFFS upload data files
Post by Arecon on Oct 30th, 2018 at 9:25pm
Hi

Is there now a standard function for uploading files as part of a sketch?
I'm also looking for a way to have the functionality of the "data" folder people have with the Arduino IDE and ESP32.

Thanks

Title: Re: ESP 32 SPIFFS upload data files
Post by Visual Micro on Oct 31st, 2018 at 1:02pm
I believe this was put in for another user, please see release notes. If you are using atmel studio you might need the next update they happen less frequently. Why not use visual studio?

Title: Re: ESP 32 SPIFFS upload data files
Post by Arecon on Oct 31st, 2018 at 3:16pm
I'm using Atmel Studio for all microcontroller programming because it is C and C++ and in my opinion Visual Studio is only great for C#.

I really hate the way Visual Studio ignores my folder structure and separates code files from header files. I have a project with more than 20 classes and without folders this would be chaos.

I actually thought about switching to the hideous Visuals Studio Code and Platform.io because Visual Studio Professional makes even a small project look like a total mess.

I just started experimenting with ESP32 and I'm still learning how development for this platform works. At the moment I'm trying to use the graphics library TFT_eSPI. This library makes use of some Arduino framework functionality associated with a "data" folder in a project that stores files in a separate partition on the flash memory.
In the future I would also need such a functionality to embed HTML and JS files which could be presented by a webserver running on the ESP32.

Title: Re: ESP 32 SPIFFS upload data files
Post by Arecon on Oct 31st, 2018 at 3:44pm
The attached files show an empty STM32 project in Visual Studio and a part of my current project in Atmel Studio.
Can you imagine mixing all these files together and having to scroll all the way up for the headers and all the way down for the code files while not losing the overview?
Scr1_001.PNG (23 KB | )
Scr2_001.PNG (75 KB | )

Title: Re: ESP 32 SPIFFS upload data files
Post by Visual Micro on Oct 31st, 2018 at 4:52pm
Generally it is better to create your own threads for any questions. This avoids the original user of this thread from receiving unwanted emails.

The Solution Explorer "View" you see in Atmel studio is called the "Physical Files" view. It shows you the physical folder and files of the project(s). In Visual Studio there is a small button above the solution explorer called "Show all files". This switches the solution explorer to the Physical Files view that you like.

Atmel studio is a competitor to he semi-conductor company that makes the esp boards. The conditions of using atmel studio do actually state you should not use it for other non-atmel/microchip hardware. For this reason I have tried to keep as much non-atmel stuff out of atmel studio.

Visual Studio supports many languages especially c++ however it uses a slightly different flavour of c++ that can cause false intellisense errors for some advanced underlying syntax. Atmel studio suggests it handles this advanced syntax however in many cases the "handling" is just to ignore things it does not understand where as visual studio might show an intellisense error. Visual Studio will correctly show #if conditional code as disabled, atmel studio does not.

Each IDE has some benefits however Visual Studio is much more mature and better supported that atmel studio. Furthermore the Visual Studio gallery is much easier for me to work with therefore sees more regular updates and fixes.

I don't support custom button in atmel studio. That system is part of atmel and if it isn't working there is little I can do.


Title: Re: ESP 32 SPIFFS upload data files
Post by Arecon on Oct 31st, 2018 at 9:07pm
I didn't know about the restriction in the license conditions of Atmel Studio but it makes sense.
I will install Visual Studio on my embedded development VM and see how VisualMicro looks with it.

Title: Re: ESP 32 SPIFFS upload data files
Post by Visual Micro on Oct 31st, 2018 at 9:16pm
I doubt anyone will care that you use atmel I just mention it so you can see why I try to steer away from it for esp :)

Title: Re: ESP 32 SPIFFS upload data files
Post by Visual Micro on Jan 25th, 2019 at 2:05pm
Off-Topic replies have been moved to this Topic.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.