Skip to content
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

LittleFS debug messages polluting Serial(0). #7700

Closed
1 task done
everslick opened this issue Jan 11, 2023 · 8 comments
Closed
1 task done

LittleFS debug messages polluting Serial(0). #7700

everslick opened this issue Jan 11, 2023 · 8 comments
Labels
Area: LIB Builder Depends on Lib Builder

Comments

@everslick
Copy link
Contributor

Board

n.a.

Device Description

n.a.

Hardware Configuration

n.a.

Version

latest master (checkout manually)

IDE Name

n.a.

Operating System

n.a.

Flash frequency

n.a.

PSRAM enabled

yes

Upload speed

n.a.

Description

It seems as if LittleFS is compiled with debug macros enabled so it will pollute the serial output of any program. I do not think it can be switched off at runtime.

Sketch

n.a.

Debug Message

./components/esp_littlefs/src/littlefs/lfs.c:2246:debug: Relocating {0x2f, 0x2e} -> {0x79f, 0x2f}

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@everslick everslick added the Status: Awaiting triage Issue is waiting for triage label Jan 11, 2023
@mrengineer7777
Copy link
Collaborator

Possibly wrong repository. This is IDF functionality. Are you seeing LFS debug messages in Arduino projects?

That message is printed if LFS_DEBUG is defined in lfs_util.h. The only thing this repository might be able to control is defining LFS_NO_DEBUG.

@everslick
Copy link
Contributor Author

Are you seeing LFS debug messages in Arduino projects?

yes, that's the point.

I was confused by the ./components/esp_littlefs path as well and looked into IDF source first to report the issue there, but could not find it anythere in the repo. I assume it must be in some code Arduino CORE pulls in from elsewhere.

As this component is pre-compiled into tools/sdk/esp32/lib/libesp_littlefs.a it is something to be fixed in the build of that library I guess.

@mrengineer7777
Copy link
Collaborator

The .a files (and config options) are built here: https://github.com/espressif/esp32-arduino-lib-builder

Hmmm. I have a local copy of IDF 4.4.3 on my computer, but I can't find the "components\esp_littlefs" in the IDF repository. I did notice that SPIFFS (which I use) uses ESP_LOGE() macros for debug statements vs printf in LittleFS. I believe the Arduino compile turns those off ESP_LOGE(), which is why they aren't an issue. This looks like an issue that IDF should solve: https://github.com/espressif/esp-idf. Odd though that LittleFS has disappeared....

@mrengineer7777
Copy link
Collaborator

This implies LFS may be a separate component now: espressif/esp-idf#5469

@lbernstone
Copy link
Contributor

LittleFS is added as an additional component in lib-builder. Open a similar issue there so they can track it.

@everslick
Copy link
Contributor Author

@mrengineer7777 thanks for archeological work! ;-) I opened an issue here: espressif/esp32-arduino-lib-builder#103

@Jason2866
Copy link
Collaborator

Fixed in repo LittleFS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: LIB Builder Depends on Lib Builder
Projects
None yet
Development

No branches or pull requests

5 participants