Skip to content

Selected flash size and CPU frequency not passed on to esptool #4347

Closed
@00pi

Description

@00pi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions