Skip to content

esp8266: make flash fails #12247

@benpicco

Description

@benpicco

Description

When following the instructions from the documentation, esptool.py v2.5.1 gets installed.

422644b switched to a notation introduced by esptool.py v2.6 that the old esptool does not understand.

Steps to reproduce the issue

from the documentation
sudo git clone https://github.com/gschorcht/RIOT-Xtensa-ESP8266-toolchain.git /opt/esp
export PATH=$PATH:/opt/esp/esp-open-sdk/xtensa-lx106-elf/bin
trying to flash something
make -C examples/hello-world BOARD=esp8266-esp-12x flash

Expected results

Flashing works.

Actual results

esptool.py elf2image -fs 1MB /home/benpicco/dev/RIOT/examples/hello-world/bin/esp8266-esp-12x/hello-world.elf
usage: esptool elf2image [-h] [--output OUTPUT] [--version {1,2}]
                         [--flash_freq {40m,26m,20m,80m}]
                         [--flash_mode {qio,qout,dio,dout}]
                         [--flash_size {4m,2m,8m,16m,32m,16m-c1,32m-c1,32m-c2}]
                         input
esptool elf2image: error: argument --flash_size/-fs: invalid choice: '1mb' (choose from '4m', '2m', '8m', '16m', '32m', '16m-c1', '32m-c1', '32m-c2')
make: *** [/home/benpicco/dev/RIOT/examples/hello-world/../../Makefile.include:605: preflash] Error 2

Versions

Riot master

Metadata

Metadata

Assignees

Labels

Area: docArea: DocumentationArea: toolchainArea: toolchains; everything related to compilation, libc, linking, …Type: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions