-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Selected flash size and CPU frequency not passed on to esptool #4347
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
Comments
It should not be necessary to pass However, since you say that adding them makes a difference, I assume that there is indeed some bug or side effect in esptool-ck. Could you please upload the problematic binary somewhere so that i could try to reproduce this? Additionally, could you post the verbose log output for both cases: successful upload and failed upload? |
this is the code I'm using an unsuccessful flash looks like this
|
#5635 would sidestep this, although I'm not sure I see where there is an issue... |
Closing as there's no feedback in months and we're not using the original esptool.exe anymore. |
Dear all,
relatively new to Arduino and esp8266, I stumbled across the following issue: compiled code of bigger projects fails to be flashed to the esp. This seems to be due to the fact, that the selected flash size and CPU frequency are not passed on to esptool.
command issued by Arduino IDE
esptool -vv -cd nodemcu -cb 9600 -cp /dev/ttyUSB0 -ca 0x00000 /tmp/arduino_build_523731/esp8266_LED_Matrix2_2018-02-09.ino.bin
all is working fine when the command is issued manually with the addition of -bz and -bf
esptool -vv -cd nodemcu -cb 9600 -cp /dev/ttyUSB0 -ca 0x00000 -bz 4M -bf 80 -cf /tmp/arduino_build_523731/esp8266_LED_Matrix2_2018-02-09.ino.bin
packages/esp8266/hardware/esp8266/2.4.0/platform.txt does not contain the parameters -bz and -bf
tools.esptool.upload.pattern="{path}/{cmd}" {upload.verbose} -cd {upload.resetmethod} -cb {upload.speed} -cp "{serial.port}" -ca 0x00000 -cf "{build.path}/{build.project_name}.bin"
Hardware: LoLin NodeMcu v3
Core Version: 2.4.0
Settings in IDE (1.8.5, from arduino.cc, on OpenSuse 42.3)
Board: NodeMCU 1.0 (ESP-12E Module)
Flash Size: 4M (1M SPIFFS)
CPU Frequency: 80Mhz
The text was updated successfully, but these errors were encountered: