Comments (5)
Following notes from a number of posts, I did these two steps to get it compiling:
Step 1 - Create a new file in the same directory as platformio.ini
called default_16MB.csv
with the following content:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x640000,
app1, app, ota_1, 0x650000,0x640000,
spiffs, data, spiffs, 0xc90000,0x370000,
sourced from m5stack support
Step 2 - Change the contents of the platformio.ini
file to be:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:m5paper]
platform = espressif32
board = m5stack-fire
board_build.partitions = default_16MB.csv
framework = arduino
upload_speed = 2000000
monitor_speed = 115200
build_flags =
-DCORE_DEBUG_LEVEL=4
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
lib_deps =
https://github.com/lovyan03/LovyanGFX
m5stack/M5EPD@^0.1.1
bblanchon/[email protected]
sourced from githubmemory comment
It then built fine for me
from m5paper-weatherstation.
Thank you so much, that made it compile :-)
from m5paper-weatherstation.
Same here :-(
from m5paper-weatherstation.
Hope someone can help. I get this error:
Compiling .pio\build\m5paper\lib8a9\LovyanGFX@src-e397216ef2ed944869fac240d3628454\lgfx\v1\platforms\esp8266\Bus_I2C.cpp.o
In file included from C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/esp32/include/hal/i2s_ll.h:30:0,
from C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/i2s_hal.h:28,
from C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/i2s.h:16,
from .pio/libdeps/m5paper/LovyanGFX@src-e397216ef2ed944869fac240d3628454/src/lgfx/v1/platforms/esp32/Bus_Parallel8.hpp:33,
from .pio/libdeps/m5paper/LovyanGFX@src-e397216ef2ed944869fac240d3628454/src/lgfx/v1/platforms/esp32/Bus_Parallel8.cpp:22:
C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:70:31: error: expected '}' before 'attribute'
I2S_COMM_FORMAT_I2S attribute((deprecated)) = 0x01, /!< I2S communication format I2S, correspond to I2S_COMM_FORMAT_STAND_I2S
/
^
C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:70:59: error: expected unqualified-id before '=' token
I2S_COMM_FORMAT_I2S attribute((deprecated)) = 0x01, /!< I2S communication format I2S, correspond to I2S_COMM_FORMAT_STAND_I2S
/
^
C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:76:3: error: 'i2s_comm_format_t' does not name a type
} i2s_comm_format_t;
^
C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:127:5: error: 'i2s_comm_format_t' does not name a type
i2s_comm_format_t communication_format; /*!< I2S communication format */
^
C:/Users/Christian/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:204:1: error: expected declaration before '}' token
}
^
cc1plus.exe: warning: unrecognized command line option '-Wno-frame-address'
*** [.pio\build\m5paper\lib8a9\LovyanGFX@src-e397216ef2ed944869fac240d3628454\lgfx\v1\platforms\esp32\Bus_Parallel8.cpp.o] Error 1
from m5paper-weatherstation.
Got a bit further, deleted the "depricated" part from i2s_types.
Now it get these errors:
In file included from src/main.cpp:9:0:
src/misc.h: In function 'int syncNTPTime(std::function<void(const tm&)>, const char*, const char*, const char*, const char*)':
src/misc.h:57:31: error: 'sntp_get_sync_status' was not declared in this scope
while (sntp_get_sync_status() != SNTP_SYNC_STATUS_COMPLETED && ++retry < retry_count)
^
src/misc.h:57:36: error: 'SNTP_SYNC_STATUS_COMPLETED' was not declared in this scope
while (sntp_get_sync_status() != SNTP_SYNC_STATUS_COMPLETED && ++retry < retry_count)
from m5paper-weatherstation.
Related Issues (5)
- NTP not working HOT 2
- Update code for arduinojson 6 HOT 1
- Compile error HOT 1
- Can not compile due to LGFX
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 m5paper-weatherstation.