Skip to content

Can't determine FlashSize. #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ysg1998 opened this issue Dec 7, 2019 · 3 comments
Open

Can't determine FlashSize. #13

ysg1998 opened this issue Dec 7, 2019 · 3 comments

Comments

@ysg1998
Copy link

ysg1998 commented Dec 7, 2019

No description provided.

@maciekn
Copy link

maciekn commented Dec 8, 2019

Looks like duplicate of #10

@InnuendoPi
Copy link

Not working for LOLIN(WEMOS) D1 R2 & mini with ESP8266 2.6.3, ESP8266fs 0.5.0 and fix #9
Arduino IDE 1.8.10, Visual Code 1.41.1

`ESP8266 SPIFFS interface started: "upload".
Found ESP8266 packages: C:\Users\xxx\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3
Found "esptool" via VSCode Configuration
--- Uploading SPIFFS file with esptool.py ---
SPIFFS Uploading Image... (C:\Arduino\xxx\build\xxx.spiffs.bin)
[SPIFFS] Python : python
[SPIFFS] EspTool : C:/Users/xxx/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py
[SPIFFS] address : 0x100000
[SPIFFS] port : COM3
[SPIFFS] speed : 460800
[SPIFFS] before : default_reset
[SPIFFS] after : hard_reset
[SPIFFS] flashMode: qio
[SPIFFS] flashFreq: 40m
[SPIFFS] flashSize: 4M3M

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]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]

[ ...]
esptool write_flash: error: argument --flash_size/-fs: 4M3M is not a known flash size. Known sizes: 512KB, 256KB, 1MB, 2MB, 4MB, 2MB-c1, 4MB-c1, 8MB, 16MB, detect, keep

python returned 2
ESP8266 SPIFFS interface finished.`

@maciekn
Copy link

maciekn commented Jan 6, 2020

@InnuendoPi it looks like we can try to jump over the problem instead of solving it. In the meantime distribution of esptool has changed and it looks like it is easier to just not pass it. At least "official" Arduino SPIFFS addon is not doing it (https://github.com/esp8266/arduino-esp8266fs-plugin/blob/56a6c515545ff5301be5e679d014ab7062600d81/src/ESP8266FS.java#L334)

You may want to try my fixed version of extension as it is working for my case: #12 (comment) (YMMV, but I am more than happy to make sure it will work for both if us)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants