kash4kev / vscode-esp8266fs

Visual Studio Code extension for ESP8266/ESP32 File System (SPIFFS)
Other
18 stars 11 forks source link

wrong parameters used for latest esptool #4

Open kseyhan opened 6 years ago

kseyhan commented 6 years ago

Hi, i just manually installed the latest esptool.py using the command "pip install espool".

After overriding the path in the settings the addon doesnt do its job anymore. It seems like there was a change in the latest version of the tool where the parameter of the --flash_freq got changed from number only to [0-9][0-9]m.

here is the output i get.

ESP8266 SPIFFS interface finished. ESP8266 SPIFFS interface started: "upload". Found ESP8266 packages: /home/ks_x270/.arduino15/packages/esp8266/hardware/esp8266/2.0.0 Found "esptool" via VSCode Configuration --- Uploading SPIFFS file with esptool.py --- SPIFFS Uploading Image... (/home/ks_x270/Arduino/wifi-analyser/spiffs.image) [SPIFFS] Python : python [SPIFFS] EspTool : /usr/bin/esptool.py [SPIFFS] address : 0x100000 [SPIFFS] port : /dev/ttyUSB0 [SPIFFS] speed : 921600 [SPIFFS] before : default_reset [SPIFFS] after : hard_reset [SPIFFS] flashMode: dio [SPIFFS] flashFreq: 80 [SPIFFS] flashSize: 4M3M

usage: esptool write_flash [-h] [--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] [--compress | --no-compress]

[
...] esptool write_flash: error: argument --flash_freq/-ff: invalid choice: '80' (choose from 'keep', '40m', '26m', '20m', '80m') python returned 2 ESP8266 SPIFFS interface finished. ---- esptool.py version esptool.py v2.5.0 2.5.0