Skip to content

Making the Core ESP8266 Support pre-compiled libraries #8499

Closed
@InqOnThat

Description

@InqOnThat

I'm new to Github, so I don't know if this is the appropriate place for this request. Apologies.

I'd like to request the addition of a single file to the ESP8266 distribution. By placing this in the same folder as the platform.txt file, it permits the use of any pre-compiled libraries.

On my Windows installation, this was in the folder:
C:\Users\Inq\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

Before adding the file, the compiler will error with something like
Library Inq has been declared precompiled:
Using precompiled library in C:\Users\Inq\Documents\Arduino\libraries\Inq\src\esp8266
The platform does not support 'compiler.libraries.ldflags' for precompiled libraries.

After adding the file, the compiler reports a successful build
Library Inq has been declared precompiled:
Using precompiled library in C:\Users\Dennis\Documents\ArduinoLW\libraries\Inq\src\esp8266
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 360304 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 27373 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1552 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 5936 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 26080 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 395165 bytes (37%) of program storage space. Maximum is 1044464 bytes.
Global variables use 33568 bytes (40%) of dynamic memory, leaving 48352 bytes for local variables. Maximum is 81920 bytes.

platform.local.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions