-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266SdFat and SDFS linked when not used #6760
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
Not linked in Tasmota using https://github.com/Jason2866/platform-espressif8266.git#core_2_6_0 as platform |
@Jason2866 You are not using SPIFFS in Tasmota, right? |
Ahhh, sorry overlooked (read not exactly...) |
Yep, but I wanted to check if there may be a link somewhere. |
SDFS.h replaces SD.h |
Do you have any idea what these include and if it is needed when you don't use the SD functionality? |
I find none. |
Maybe retest building with Arduino IDE? |
That's easier said than done. |
@TD-er Build chain for platformIO used (with my setup for core 2.6.0) is |
Just as a test, I added those libraries to the platformIO
|
@TD-er adding those libraries to |
@Misiu Yep, I agree. This issue (and the one with loosing all available RAM when including SD.h) has already taken a lot of time, so for now it is a quick work-around to make sure I can continue. |
@TD-er, I think this is probably best handled at the Platform.IO GH site, no? We're not seeing it on the Arduino IDE builds, and it seems like not everyone with PIO is seeing it, either. |
I guess so. I will open one on the PIO github repo At least something is fishy with SD.h, see my other issue. (which is reproducible in Arduino IDE) |
OK, I'll close this on the Arduino side. If something comes up w/PIO and they need Core changes, we can re-open and track. The SD.h F() problem is repro'd and on its way in #6767 . |
Let's first see if this linking is still an issue after the #6767 is fixed and if it is still an issue, I will add an issue on PIO's issues list for it. |
Similar to #6691
The PlatformIO inspect tool shows both libraries
ESP8266SdFat
andSDFS
are linked in the binary and thus taking both around 20k of flash size. (debug build, release size may differ)As far as I can see, all includes for
SD.h
in my code are in #ifdef wrappers and I cannot see where the fileSD.h
is included in the code of esp8266/Arduino.Right now, I am using https://github.com/Jason2866/platform-espressif8266.git#core_2_6_0 as platform (has the latest build toolchain included).
Does any of you have an idea why it is linked?
The text was updated successfully, but these errors were encountered: