Giter VIP home page Giter VIP logo

Comments (6)

fabianoriccardi avatar fabianoriccardi commented on May 27, 2024

Hi,
could you tell your setup? i.e esp32 or esp8266, version of Esp Logger library and version of Arduino core

from esplogger.

sw-dev-code avatar sw-dev-code commented on May 27, 2024

Hi @fabiuz7,

Thank you for the quick answer. Below is log, I think there is all the information you need.

> Executing task: C:\Users\User\.platformio\penv\Scripts\platformio.exe run --target upload --target monitor <

Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
-------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 1.12.1 > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 3.10004.200129 (1.0.4)       
 - tool-esptoolpy 1.20600.0 (2.6.0)
 - tool-mkspiffs 2.230.0 (2.30)
 - toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP Logger> 1.3.0
|   |-- <Ticker> 1.1
|   |-- <FS> 1.0
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
Building in release mode
Compiling .pio\build\esp32doit-devkit-v1\src\main.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib2e8\ESP Logger_ID5879\logger_sd.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPv6Address.cpp.o
src\main.cpp: In function 'void somethingHappening()':
src\main.cpp:31:42: warning: 'bool Logger::append(String, bool)' is deprecated: record is duplicated, augmenting heap fragmentation: consider append(const char*, bool) that is zero-copy [-Wdeprecated-declarations]
     myLog.append(String("val:") + counter);
                                          ^
In file included from .pio\libdeps\esp32doit-devkit-v1\ESP Logger_ID5879\src/logger_spiffs.h:32:0,
                 from src\main.cpp:1:
.pio\libdeps\esp32doit-devkit-v1\ESP Logger_ID5879\src/logger.h:93:8: note: declared here
   bool append(String record, bool timestamp = true)
        ^
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\MD5Builder.cpp.o
.pio\libdeps\esp32doit-devkit-v1\ESP Logger_ID5879\src\logger_sd.cpp:30:16: fatal error: SD.h: No such file or directory  

************************************************************ 
* Looking for SD.h dependency? Check our library registry!   
*
* CLI  > platformio lib search "header:SD.h"
* Web  > https://platformio.org/lib/search?query=header:SD.h
*
************************************************************ 

compilation terminated.
*** [.pio\build\esp32doit-devkit-v1\lib2e8\ESP Logger_ID5879\logger_sd.cpp.o] Error 1
================ [FAILED] Took 10.11 seconds ================

from esplogger.

fabianoriccardi avatar fabianoriccardi commented on May 27, 2024

I've tested on Arduino IDE (same ESP logger version and same arduino core) and it works. Probably there is some problems with platformIO integration, I will look later.

from esplogger.

fabianoriccardi avatar fabianoriccardi commented on May 27, 2024

I have the same issue on platformIO. The problem is related to include file and how PIO handle it. I didn't found the exact cause of this problem, but a workaround is placing #include "SD.h" in the main file to force the inclusion.

from esplogger.

fabianoriccardi avatar fabianoriccardi commented on May 27, 2024

I've opened an issue on platformIO.org. Another solution is adding the following line to platformio.ini file:

lib_ldf_mode = deep

from esplogger.

sw-dev-code avatar sw-dev-code commented on May 27, 2024

@fabiuz7 Thank you, that solved the issue.

from esplogger.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.