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
Locked Topic Publish server data files fails - Esp8266 v2.6.1 (Read 1419 times)
Ochsenblut
Newbies
*
Offline


Posts: 3
Joined: Nov 27th, 2019
Publish server data files fails - Esp8266 v2.6.1
Nov 27th, 2019 at 4:45pm
 
VM 1911.17.5
No IDE
ESP 8266 Arduino Core 2.6.1
VS Community 2017 - 15.9.7
Board: NodeMCU12E

Uploading a sketch works pretty smooth, but uploading data to the SPIFFS (4MB Flash, FS:1MB OTA) with "Publish server data files (spiffs)" fails.
Here is the uploader output:

Code
Select All
ESP8266FSUpload.exe
## recipe.wwwfiles.upload.pattern
"c:\program files (x86)\microsoft visual studio\2017\community\common7\ide\extensions\y4ur5orx.hne/ESP8266FSUpload.exe"
-serial.port=COM6
Release"
-target_platform="esp8266"
266\tools\mkspiffs\2.5.0-4-b40a506"
-board.name="NodeMCU 1.0 (ESP-12E Module)"
-upload.verbose=True
-upload.resetmethod=--before default_reset --after hard_reset
-upload.speed=115200
sp8266\2.6.1"
-project.name="SomeApp.ino" -project.path="C:\Users\yxz\MyPrj\ESP8266\SomeApp\SomeApp\SomeApp"
python3\3.7.2-post1/python3"
-runtime.tools.esptool.path="{runtime.tools.esptool.path}"
sa-lx106-elf-gcc\2.5.0-4-b40a506/bin/"
-build.spiffs_start="0x300000"
-build.spiffs_end="0x3FA000"
-build.spiffs_pagesize="256"
-build.spiffs_blocksize="8192"
-network.password={network.password}
-network.auth_upload={network.auth_upload}
-network.port={network.port}
C:\Users\yxz\MyPrj\ESP8266\SomeApp\SomeApp\SomeApp\data\config.html
C:\Users\yxz\MyPrj\ESP8266\SomeApp\SomeApp\SomeApp\data\favicon.ico
SPIFFS Creating Image...
[SPIFFS] data   : C:\Users\yxz\MyPrj\ESP8266\SomeApp\SomeApp\SomeApp\data
[SPIFFS] size   : 1000
[SPIFFS] page   : 256
[SPIFFS] block  : 8192
0a506\mkspiffs.exe"
-c "C:\Users\yxz\MyPrj\ESP8266\SomeApp\SomeApp\SomeApp\data"
-p 256 -b 8192
-s 1024000 c9242e9def5bd4d57cabb7b33b51/SomeApp.ino.spiffs.bin"
/config.html
/favicon.ico
SPIFFS Uploading Image...
[SPIFFS] upload : 9242e9def5bd4d57cabb7b33b51/SomeApp.ino.spiffs.bin
[SPIFFS] address: 0x300000
[SPIFFS] reset  : --before
[SPIFFS] port   : COM6
[SPIFFS] speed  : 115200
[SPIFFS] python   : python.exe
[SPIFFS] uploader : ls\upload.py
"python.exe" ols\upload.py" --chip esp8266 --port COM6 --baud 115200 write_flash 0x300000 c9242e9def5bd4d57cabb7b33b51/SomeApp.ino.spiffs.bin" --end
usage*: esptool write_flash [-h] [--erase-all]
   [--flash_freq {keep,40m,26m,20m,80m}]
   [--flash_mode {keep,qio,qout,dio,dout}]
   [--flash_size FLASH_SIZE]
   [--spi-connection SPI_CONNECTION] [--no-progress]
   [--verify] [--encrypt]
SPIFFS Upload failed!
   [--ignore-flash-encryption-efuse-setting]
   [--compress | --no-compress]
   <address> <filename> [<address> <filename> ...]

esptool write_flash*: error: argument <address> <filename>: Must be pairs of an address and the binary filename to write there
 



The spiffs bin file is created correctly and running an upload using
Code
Select All
ls\esptool>python esptool.py --port COM6 write_flash 0x300000 9242e9def5bd4d57cabb7b33b51/SomeApp.ino.spiffs.bin 

works without any problems.

But VM ist using the P script
Code
Select All
ls\upload.py
 

for both uploading up the sketch (that works well) and for uploading the spiffs bin file. It looks like upload.py creates an unvalid command line for esptool.py when uploading spiffs. 
Or causes ESP8266FSUpload.exe the problem? Unfortunately I dont know much about the toolchain dependencies...

Any hints?

BTW.: I got no issues when using the ESP8266 2.5.2 Arduino Core,
« Last Edit: Nov 28th, 2019 at 2:38pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Publish server data files fails
Reply #1 - Nov 27th, 2019 at 8:02pm
 
Does spiffs upload work in the arduino ide with same toolchain and new plugin?
  
Back to top
WWW  
IP Logged
 
Ochsenblut
Newbies
*
Offline


Posts: 3
Joined: Nov 27th, 2019
Re: Publish server data files fails
Reply #2 - Nov 27th, 2019 at 10:23pm
 
Thanks for your quick response!
I've got no Arduino IDE installed.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Publish server data files fails
Reply #3 - Nov 28th, 2019 at 11:57am
 
The developer of the esp core is still working on the FS upload for 2.6.1. He has made signifcant changes for 2.6.1 so I suggest you stick with 2.6.0 for now. 

We are looking at it anyway but his own plugin seems to also have issues. It might also be possible to dump the python script and for us to call the esptool directly. We will update ths thread when there is any news.
  
Back to top
WWW  
IP Logged
 
Ochsenblut
Newbies
*
Offline


Posts: 3
Joined: Nov 27th, 2019
Re: Publish server data files fails
Reply #4 - Nov 29th, 2019 at 11:00am
 
Tim@Visual Micro wrote on Nov 28th, 2019 at 11:57am:
T.. It might also be possible to dump the python script and for us to call the esptool directly. ...

Yep - using esptool.py from the commandline is my current way to upload the spiffs bin file. Well, I don't have to upload spiffs very often, so that's ok for me.

Thank you for your reply!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint