Skip to content

Upload issue "Can't determine FlashMode" #2

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
damianog opened this issue May 26, 2018 · 8 comments · May be fixed by #9
Open

Upload issue "Can't determine FlashMode" #2

damianog opened this issue May 26, 2018 · 8 comments · May be fixed by #9

Comments

@damianog
Copy link

Since last update when I try to upload my data folder the extension tells: "Can't determine FlashMode"

@kash4kev
Copy link
Owner

Hi damianog,

What's in your arduino.json file?

@damianog
Copy link
Author

damianog commented May 26, 2018

Hi,

{
   "board": "esp8266:esp8266:nodemcuv2",
   "configuration": "CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200",
   "port": "COM3",
   "sketch": "EVRemote.ino",
   "output": "../build"
}

It goes well two week ago with these settings but now I can't upload. No problem from Aruino SPIFFS uploader.

spiffs

@kash4kev
Copy link
Owner

Works fine on my machine with that board/config (under Windows):

Found ESP8266 packages: C:\Users\Kev\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1
--- Uploading SPIFFS file with esptool[.exe] ---
SPIFFS Uploading Image... (c:\Code\PlatformIO\Blink\spiffs.image)
[SPIFFS] program: C:\Users\Kev\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13\esptool.exe
[SPIFFS] address: 0x300000
[SPIFFS] reset : nodemcu
[SPIFFS] port : COM18
[SPIFFS] speed : 115200


What OS are you running? Can you add "esp8266fs.logLevel": "verbose" to your settings and see if that gives us a better clue as to where it's screwing up.

Thanks, Kev

@damianog
Copy link
Author

Hi @kash4kev

If I add "FlashMode=keep,FlashFreq=keep" in configuration

"configuration": "CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200,FlashMode=keep,FlashFreq=keep",

I managed to start the upload process.

I used "keep" as default parameter as explained in https://github.com/espressif/esptool

But I can't set these pararameters by board configuration

arduinoboardconfiguration

Maybe you should pass these parameters by default if absent or avoid FlashMode and FlashFreq arguments if not defined.

Thanks.

@TildenG
Copy link

TildenG commented Oct 28, 2018

I'm having the same problem and even after using your fix it freezes before It starts to pack the file...

ESP8266 SPIFFS interface started: "pack".
Preferences Path: "C:\Users\FirstName LastName\AppData\Local\Arduino15"
Reading preferences from "C:\Users\FirstName LastName\AppData\Local\Arduino15\preferences.txt"
ESP8266 Data Files path: "c:\Users\FirstName LastName\OneDrive\Documents_\Arduino\testing\FH_Tbot\data"
SPIFFS Image: "c:\Users\FirstName LastName\OneDrive\Documents_\Arduino\testing\FH_Tbot\spiffs.image"
Arduino User Path: "C:\Users\FirstName LastName\Documents\Arduino"
Found ESP8266 packages: C:\Users\FirstName LastName\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2
Tools Path: "C:\Users\FirstName LastName\AppData\Local\Arduino15\packages\esp8266\tools"
Output Port: COM4
--- Packing SPIFFS file ---
SPIFFS Creating Image... (c:\Users\FirstName LastName\OneDrive\Documents_\Arduino\testing\FH_Tbot\spiffs.image)
[SPIFFS] program: C:\Users\FirstName LastName\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0\mkspiffs.exe
[SPIFFS] data : c:\Users\FirstName LastName\OneDrive\Documents_\Arduino\testing\FH_Tbot\data
[SPIFFS] size : 3053K
[SPIFFS] page : 256
[SPIFFS] block : 8192
Running: "C:/Users/FirstName LastName/AppData/Local/Arduino15/packages/esp8266/tools/mkspiffs/0.2.0/mkspiffs.exe" --create "c:/Users/FirstName LastName/OneDrive/Documents_/Arduino/testing/FH_Tbot/data" --size 3125248 --page 256 --block 8192 "c:/Users/FirstName LastName/OneDrive/Documents_/Arduino/testing/FH_Tbot/spiffs.image"

And.... nothing, it just sits there, after leaving it for some time if I try to pack it again it says "ESP8266FS already running "pack"! ".

I'm running this on Windows 10.

@TildenG
Copy link

TildenG commented Oct 30, 2018

If you change the Arduino preferences.txt from...
custom_CpuFrequency=d1_mini_80
custom_Debug=d1_mini_Disabled
custom_DebugLevel=d1_mini_None____
custom_FlashErase=d1_mini_none
custom_FlashSize=d1_mini_4M3M
custom_LwIPVariant=d1_mini_v2mss536
custom_UploadSpeed=d1_mini_921600
custom_VTable=d1_mini_flash

to

custom_CpuFrequency=d1_mini_80
custom_Debug=d1_mini_Disabled
custom_DebugLevel=d1_mini_None____
custom_FlashErase=d1_mini_none
custom_FlashFreq=esp32_80
custom_FlashMode=esp32_qio
custom_FlashSize=d1_mini_4M3M
custom_LwIPVariant=d1_mini_v2mss536
custom_UploadSpeed=d1_mini_921600
custom_VTable=d1_mini_flash

You wont have to keep adding ,FlashMode=keep,FlashFreq=keep every time you change settings in visual studio code.

I suspect the freezing problem is caused by white space in my user name. As it works fine on my laptop the only difference being that my username is only one word on my laptop.

@TildenG
Copy link

TildenG commented Oct 30, 2018

I relocated esptool.exe and mkspiffs.exe to a directory with no spaces in there name, updated there location in the visual studio ESP8266FS settings.

Relocated my project to a directory with no spaces and its working fine.

@rossiniscarface
Copy link

Yeah, had also a whitespace problem on my environment.
My project folder had a space in it.
Result: files to pack not found, image not found. If i enable verbose logging i can copy the comands and execute them without problems.

maciekn added a commit to maciekn/vscode-esp8266fs that referenced this issue Mar 9, 2019
@maciekn maciekn linked a pull request Mar 9, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

4 participants