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

Wont compile #4

Open
Inakito opened this issue Jul 29, 2021 · 5 comments
Open

Wont compile #4

Inakito opened this issue Jul 29, 2021 · 5 comments

Comments

@Inakito
Copy link

Inakito commented Jul 29, 2021

Using latest VScode, July 2021.

@chrwh
Copy link

chrwh commented Sep 25, 2021

Same here :-(

@chrwh
Copy link

chrwh commented Sep 25, 2021

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

@chrwh
Copy link

chrwh commented Sep 26, 2021

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)

image

@Calrain
Copy link

Calrain commented Sep 27, 2021

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

@chrwh
Copy link

chrwh commented Sep 27, 2021

Thank you so much, that made it compile :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants