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 Publish server data files (SPIFFS) fails with COM port (Read 1898 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Publish server data files (SPIFFS) fails with COM port
Jan 3rd, 2020 at 9:40am
Print Post  
The SPIFFS (Publish) fails when using Python 2.7.14 as the --end argument is not recognized. See the following output from a command window with a failed and successful upload.

"python.exe" tools\upload.py" --chip esp8266 --port COM3 --baud 115200 write_flash 0x200000 \75775cff0c3085d17a92ee16849b4374/HPController.ino.spiffs.bin" --end
usage: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD]
               [--before {default_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset}] [--no-stub]
               [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               verify_flash,erase_flash,erase_region,version}
               ...
esptool: error: unrecognized arguments: --end

C:\Users\nigel>"python.exe" tools\upload.py" --chip esp8266 --port COM3 --baud 115200 write_flash 0x200000 \75775cff0c3085d17a92ee16849b4374/HPController.ino.spiffs.bin"
esptool.py v2.8
Serial port COM3
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 68:c6:3a:ac:56:ba
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 2072576 bytes to 24643...
Wrote 2072576 bytes (24643 compressed) at 0x00200000 in 2.2 seconds (effective 7533.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2177
Joined: Feb 13th, 2019
Re: Publish server data files (SPIFFS) fails with COM port
Reply #1 - Jan 3rd, 2020 at 10:33am
Print Post  
Can you confirm which version of the Visual Micro Extension you have installed in Visual Studio? (Extensions > Manage Extensions > Installed > Highlight vMicro)

It may need updating if not on the latest 1912.28.0 version.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Publish server data files (SPIFFS) fails with COM port
Reply #2 - Jan 3rd, 2020 at 10:41am
Print Post  
I'm using 1912.28.0, I updated it as I knew the previous version had the same problem but it still persists..
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2177
Joined: Feb 13th, 2019
Re: Publish server data files (SPIFFS) fails with COM port
Reply #3 - Jan 3rd, 2020 at 11:17am
Print Post  
It works on my machine using VS2019 + 1912.28.0 + ESP8266 core v 2.6.2 as you have above.

Could you attach the verbose build and upload output?

The python command being run should now appear as below (without the --end)

Code
Select All
Uploading 'EmptyProject' to 'Generic ESP8266 Module' using 'COM1'
Uploader started for board Generic ESP8266 Module
Upload method will be: bootloader
Uploading via Bootloader
1\python3 tools/upload.py" --chip esp8266 --port "COM1" --baud "115200" --before default_reset --after hard_reset write_flash 0x0 .ino.bin"
esptool.py v2.8
Serial port COM1
Connecting........ 



  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Publish server data files (SPIFFS) fails with COM port
Reply #4 - Jan 4th, 2020 at 6:52am
Print Post  
Hi Simon,
below is the verbose output. I also checked that I don't have multiple versions of ESP8266FSUpload.exe - the version is 4.5.0.0

Code
Select All
ESP8266FSUpload.exe
## recipe.wwwfiles.upload.pattern
"c:\program files (x86)\microsoft visual " -serial.port=COM3 emcuv2\Release" -target_platform="esp8266" p8266\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 \esp8266\2.6.2" -project.name="Intellisense.ino" -project.path="C:\Users\nigel\Documents\Arduino\Intellisense" s\python3\3.7.2-post1/python3" 8266\tools\esptool\0.4.12" ensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/" -build.spiffs_start="0x200000" -build.spiffs_end="0x3FA000" -build.spiffs_pagesize="256" -build.spiffs_blocksize="8192" -network.password=xyzxyz -network.auth_upload=yes -network.port=8266
C:\Users\nigel\Documents\Arduino\Intellisense\data\HTMLPage.htm
SPIFFS Creating Image...
[SPIFFS] data   : C:\Users\nigel\Documents\Arduino\Intellisense\data
[SPIFFS] size   : 2024
[SPIFFS] page   : 256
[SPIFFS] block  : 8192
b40a506\mkspiffs.exe" -c "C:\Users\nigel\Documents\Arduino\Intellisense\data" -p 256 -b 8192 -s 2072576 se\643075d41db0cc8e29b8cde429511fc2/Intellisense.ino.spiffs.bin"
/HTMLPage.htm
SPIFFS Uploading Image...
[SPIFFS] upload : e\643075d41db0cc8e29b8cde429511fc2/Intellisense.ino.spiffs.bin
[SPIFFS] address: 0x200000
[SPIFFS] reset  : --before
[SPIFFS] port   : COM3
[SPIFFS] speed  : 115200
[SPIFFS] python   : python.exe
[SPIFFS] uploader : ools\upload.py
"python.exe" tools\upload.py" --chip esp8266 --port COM3 --baud 115200 write_flash 0x200000 se\643075d41db0cc8e29b8cde429511fc2/Intellisense.ino.spiffs.bin" --end
usage*: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD]
   [--before {default_reset,no_reset,no_reset_no_sync}]
SPIFFS Upload failed!
   [--after {hard_reset,soft_reset,no_reset}] [--no-stub]
   [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
   verify_flash,erase_flash,erase_region,version}
   ...

esptool*: error: unrecognized arguments: --end
 

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Publish server data files (SPIFFS) fails with COM port
Reply #5 - Jan 4th, 2020 at 12:12pm
Print Post  
Please follow te guide in yellow above so we can see your config
  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Publish server data files (SPIFFS) fails with COM port
Reply #6 - Jan 4th, 2020 at 12:27pm
Print Post  
Build works fine, just publish that fails. I've attached both outputs.
  

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: Publish server data files (SPIFFS) fails with COM port
Reply #7 - Jan 4th, 2020 at 1:53pm
Print Post  
Thanks, sorry we added support for the esp8266 changes end last year but for some reason they never made it into the releases.

1912.28.1 has just been pushed to the forum which hopefully has the changes required for the latest esp toolchain.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint