Open Inakito opened 3 years ago
Same here :-(
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
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)
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/ArduinoJson@5.13.4
sourced from githubmemory comment
It then built fine for me
Thank you so much, that made it compile :-)
Using latest VScode, July 2021.