Skip to content

[COMPILER WARNING]: SyntaxWarning in framework-arduinoespressif8266/tools/elf2bin.py:54 #331

Description

@hasenradball

When compiling with pioarduino I get the following SystaxWarning:

Processing esp01_1m (board: esp01_1m; platform: espressif8266; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 (4.2.1) > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 @ 3.30102.0 (3.1.2) 
 - tool-esptool @ 1.413.0 (4.13) 
 - tool-esptoolpy @ 1.30000.201119 (3.0.0) 
 - toolchain-xtensa @ 2.100300.220621 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 40 compatible libraries
Scanning dependencies...
Dependency Graph
|-- PCF8574-I2C
|-- Wire @ 1.0
Building in release mode
Compiling .pio/build/esp01_1m/src/main.cpp.o
Linking .pio/build/esp01_1m/firmware.elf
Retrieving maximum program size .pio/build/esp01_1m/firmware.elf
Checking size .pio/build/esp01_1m/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [====      ]  35.5% (used 29052 bytes from 81920 bytes)
Flash: [====      ]  35.9% (used 273283 bytes from 761840 bytes)
Building .pio/build/esp01_1m/firmware.bin
/home/frank/.platformio/packages/framework-arduinoespressif8266/tools/elf2bin.py:54: SyntaxWarning: invalid escape sequence '\s'
  words = re.split('\s+', line)
/home/frank/.platformio/packages/framework-arduinoespressif8266/tools/elf2bin.py:73: SyntaxWarning: invalid escape sequence '\s'
  words = re.split('\s+', line)
Creating BIN file ".pio/build/esp01_1m/firmware.bin" using "/home/frank/.platformio/packages/framework-arduinoespressif8266/bootloaders/eboot/eboot.elf" and ".pio/build/esp01_1m/firmware.elf"
============================================================== [SUCCESS] Took 1.46 seconds ==============================================================

Coming from this code part:

    lines = io.StringIO(result.stdout)
    for line in lines.readlines():
        if 'Entry point address' in line:
            words = re.split('\s+', line)
            entry_point = words[-2]
            return int(entry_point, 16)

    raise Elf2BinException(f'Unable to find entry point in file "{elf}"')

See picture:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions