Comments (6)
Hi,
could you tell your setup? i.e esp32 or esp8266, version of Esp Logger library and version of Arduino core
from esplogger.
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.
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.
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.
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.
@fabiuz7 Thank you, that solved the issue.
from esplogger.
Related Issues (15)
- Getting a compile error HOT 4
- LoggerSPIFFS in a class HOT 9
- File size limit ~1000 Byte HOT 1
- Loop logging
- Safely access to download
- Problems with using SD_MMC as the SD card protocol HOT 7
- Apple chip M1 compatibility HOT 2
- Serve it over HTTP HOT 1
- [ESP LOGGER] Opening log file error! HOT 3
- Release 1.1.1 has wrong version in library.properties HOT 2
- Mounting SPIFFS failed HOT 6
- issue in flush function when flushing is fail HOT 1
- PIFFS: mount failed, -10025 Error HOT 3
- Library incompatible with newest version of Ticker library HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esplogger.