Closed firex726 closed 2 years ago
Please update the M5Stack version to 2.0.4, it will work well in this version.
Low versions may cause incompatibility problems.
Exactly what am I supposed to be updating?
I have already downloaded the latest versions of M5Burner, UIflow and arduino libraries. And why would the hardware being out of date cause your software to not compile?
Exactly what am I supposed to be updating?
I have already downloaded the latest versions of M5Burner, UIflow and arduino libraries. And why would the hardware being out of date cause your software to not compile?
Platform m5stack:esp32@2.0.5+1.0 already installed
Results in:
` exit status 1
Compilation error: exit status 1`
`Using board 'm5stack-core2' from platform in folder: C:\Users\firex\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5+1.0 Using core 'esp32' from platform in folder: C:\Users\firex\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5+1.0 cmd /c if exist "C:\Users\firex\Downloads\M5Core2-master (1)\M5Core2-master\examples\Unit\THERMAL_MLX90640\partitions.csv" COPY /y "C:\Users\firex\Downloads\M5Core2-master (1)\M5Core2-master\examples\Unit\THERMAL_MLX90640\partitions.csv" "C:\Users\firex\AppData\Local\Temp\arduino-sketch-1965224AC4B08F3D9DE353C7264828B5\partitions.csv" cmd /c if not exist "C:\Users\firex\AppData\Local\Temp\arduino-sketch-1965224AC4B08F3D9DE353C7264828B5\partitions.csv" if exist "C:\Users\firex\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5+1.0\variants\m5stack_core2\partitions.csv" COPY "C:\Users\firex\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5+1.0\variants\m5stack_core2\partitions.csv" "C:\Users\firex\AppData\Local\Temp\arduino-sketch-1965224AC4B08F3D9DE353C7264828B5\partitions.csv"
cmd /c if not exist "C:\Users\firex\AppData\Local\Temp\arduino-sketch-1965224AC4B08F3D9DE353C7264828B5\partitions.csv" COPY "C:\Users\firex\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5+1.0\tools\partitions\default_16MB.csv" "C:\Users\firex\AppData\Local\Temp\arduino-sketch-1965224AC4B08F3D9DE353C7264828B5\partitions.csv" The system cannot find the file specified. exit status 1
Compilation error: exit status 1`
Now, you can try the latest version 2.0.5_1.0
The example Arduino file for the M5Core2 unit will not compile.
Source file
Error from Arduino IDE:
` In file included from C:\Users\firex\Downloads\M5Core2-master (1)\M5Core2-master\examples\Unit\THERMAL_MLX90640\MLX90640_I2C_Driver.cpp:18:0: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire\src/Wire.h: In function 'int MLX90640_I2CRead(uint8_t, unsigned int, unsigned int, uint16_t*)': C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire\src/Wire.h:103:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int) uint8_t requestFrom(int address, int size); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire\src/Wire.h:101:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t) uint8_t requestFrom(uint8_t address, uint8_t size); ^ In file included from C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:30:0, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.h:4, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.cpp:1: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/semphr.h:74:3: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"
error "include FreeRTOS.h" must appear in source files before "include semphr.h"
^ In file included from C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/semphr.h:77:0, from C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:30, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.h:4, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.cpp:1: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:75:3: error: #error "include FreeRTOS.h" must appear in source files before "include queue.h"
error "include FreeRTOS.h" must appear in source files before "include queue.h"
^ In file included from C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/semphr.h:77:0, from C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:30, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.h:4, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.cpp:1: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:613:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:725:1: error: 'BaseType_t' does not name a type BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void const pvBuffer ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:906:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericReceive( QueueHandle_t xQueue, void const pvBuffer, TickType_t xTicksToWait, const BaseType_t xJustPeek ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:917:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:930:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:940:43: error: expected initializer before 'PRIVILEGED_FUNCTION' void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1267:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void const pvItemToQueue, BaseType_t const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1268:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1347:1: error: 'BaseType_t' does not name a type BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void const pvBuffer, BaseType_t const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1354:1: error: 'BaseType_t' does not name a type BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1355:1: error: 'BaseType_t' does not name a type BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1356:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1374:1: error: 'BaseType_t' does not name a type BaseType_t xQueueAltGenericSend( QueueHandle_t xQueue, const void const pvItemToQueue, TickType_t xTicksToWait, BaseType_t xCopyPosition ); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1375:1: error: 'BaseType_t' does not name a type BaseType_t xQueueAltGenericReceive( QueueHandle_t xQueue, void const pvBuffer, TickType_t xTicksToWait, BaseType_t xJustPeeking ); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1390:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRSendFromISR( QueueHandle_t xQueue, const void pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken ); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1391:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void pvBuffer, BaseType_t pxTaskWoken ); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1392:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void pvItemToQueue, TickType_t xTicksToWait ); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1393:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRReceive( QueueHandle_t xQueue, void pvBuffer, TickType_t xTicksToWait ); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1400:62: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1401:67: error: 'StaticQueue_t' has not been declared QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1401:98: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1402:52: error: 'UBaseType_t' does not name a type QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1402:82: error: 'UBaseType_t' does not name a type QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1402:111: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1403:58: error: 'UBaseType_t' does not name a type QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1403:88: error: 'UBaseType_t' does not name a type QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1403:116: error: 'StaticQueue_t' has not been declared QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1403:147: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1404:56: error: expected initializer before 'PRIVILEGED_FUNCTION' void xQueueGetMutexHolder( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1410:1: error: 'BaseType_t' does not name a type BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1411:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGiveMutexRecursive( QueueHandle_t pxMutex ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1548:41: error: 'UBaseType_t' does not name a type QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1548:74: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1572:1: error: 'BaseType_t' does not name a type BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1591:1: error: 'BaseType_t' does not name a type BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1627:79: error: 'TickType_t' does not name a type QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1627:105: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1632:81: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1636:60: error: 'TickType_t' has not been declared void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1636:86: error: expected initializer before 'PRIVILEGED_FUNCTION' void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1637:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1638:50: error: 'UBaseType_t' has not been declared void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1638:78: error: expected initializer before 'PRIVILEGED_FUNCTION' void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1639:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos/freertos/queue.h:1640:53: error: expected initializer before 'PRIVILEGED_FUNCTION' uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ In file included from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.h:4:0, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.cpp:1: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:301:71: error: 'TickType_t' has not been declared int i2s_write_bytes(i2s_port_t i2s_num, const void src, size_t size, TickType_t ticks_to_wait) attribute ((deprecated)); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:325:94: error: 'TickType_t' has not been declared esp_err_t i2s_write(i2s_port_t i2s_num, const void src, size_t size, size_t bytes_written, TickType_t ticks_to_wait); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:356:135: error: 'TickType_t' has not been declared esp_err_t i2s_write_expand(i2s_port_t i2s_num, const void src, size_t size, size_t src_bits, size_t aim_bits, size_t bytes_written, TickType_t ticks_to_wait); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:368:65: error: 'TickType_t' has not been declared int i2s_read_bytes(i2s_port_t i2s_num, void dest, size_t size, TickType_t ticks_to_wait) attribute ((deprecated)); ^ In file included from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.h:4:0, from C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.cpp:1: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:390:85: error: 'TickType_t' has not been declared esp_err_t i2s_read(i2s_port_t i2s_num, void dest, size_t size, size_t bytes_read, TickType_t ticks_to_wait); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:408:61: error: 'TickType_t' has not been declared int i2s_push_sample(i2s_port_t i2s_num, const void sample, TickType_t ticks_to_wait) attribute ((deprecated)); ^ C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver/driver/i2s.h:426:54: error: 'TickType_t' has not been declared int i2s_pop_sample(i2s_port_t i2s_num, void sample, TickType_t ticks_to_wait) attribute ((deprecated)); ^ C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.cpp: In member function 'bool Speaker::InitI2SSpeakOrMic(int)': C:\Users\firex\OneDrive\Documents\Arduino\libraries\M5Core2\src\Speaker.cpp:17:11: error: 'I2S_COMM_FORMAT_STAND_I2S' was not declared in this scope I2S_COMM_FORMAT_STAND_I2S, // Set the format of the communication. ^ Multiple libraries were found for "WiFiClient.h" Used: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi Not used: C:\Program Files (x86)\Arduino\libraries\WiFi Multiple libraries were found for "SD.h" Used: C:\Users\firex\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\SD Not used: C:\Program Files (x86)\Arduino\libraries\SD exit status 1 Error compiling for board M5Stack-Core2. `