please help i tring to compile with platformIO but it failed every time.
src/app_main.c: In function 'example_pdm_mic_init':
src/app_main.c:145:9: warning: 'I2S_COMM_FORMAT_I2S_MSB' is deprecated [-Wdeprecated-declarations]
145 | .communication_format = I2S_COMM_FORMAT_I2S_MSB, //pcm data format
| ^
In file included from C:/Users/prase/.platformio/packages/framework-espidf/components/driver/deprecated/driver/i2s.h:20:
C:/Users/prase/.platformio/packages/framework-espidf/components/driver/deprecated/driver/i2s_types_legacy.h:89:5: note: declared here
89 | I2S_COMM_FORMAT_I2S_MSB attribute((deprecated)) = 0x01, /!< I2S format MSB, (I2S_COMM_FORMAT_I2S |I2S_COMM_FORMAT_I2S_MSB) correspond to I2S_COMM_FORMAT_STAND_I2S
/
| ^~~~~~~~~~~~~~~~~~~~~~~
src/app_main.c: In function 'example_pdm_out_init':
src/app_main.c:179:9: warning: 'I2S_COMM_FORMAT_I2S_MSB' is deprecated [-Wdeprecated-declarations]
179 | .communication_format = I2S_COMM_FORMAT_I2S_MSB, //pcm data format
| ^
C:/Users/prase/.platformio/packages/framework-espidf/components/driver/deprecated/driver/i2s_types_legacy.h:89:5: note: declared here
89 | I2S_COMM_FORMAT_I2S_MSB attribute((deprecated)) = 0x01, /!< I2S format MSB, (I2S_COMM_FORMAT_I2S |I2S_COMM_FORMAT_I2S_MSB) correspond to I2S_COMM_FORMAT_STAND_I2S
/
| ^~~~~~~~~~~~~~~~~~~~~~~
src/app_main.c:198:5: warning: 'DAC_CHANNEL_1' is deprecated: please use 'DAC_CHAN_0' instead [-Wdeprecated-declarations]
198 | dac_output_disable(DAC_CHANNEL_1);
| ^~~~~~~~~~~~~~~~~~
In file included from C:/Users/prase/.platformio/packages/framework-espidf/components/driver/deprecated/driver/dac_types_legacy.h:14,
from C:/Users/prase/.platformio/packages/framework-espidf/components/driver/deprecated/driver/dac.h:13:
C:/Users/prase/.platformio/packages/framework-espidf/components/hal/include/hal/dac_types.h:10:5: note: declared here
10 | DAC_CHANNEL_1 attribute((deprecated("please use 'DAC_CHAN_0' instead"))) = 0, /!< Alias of 'DAC_CHAN_0', now the channel index start from '0' /
| ^~~~~~~~~~~~~
src/app_main.c: In function 'example_i2s_dac_out_init':
src/app_main.c:211:9: warning: 'I2S_COMM_FORMAT_I2S_MSB' is deprecated [-Wdeprecated-declarations]
211 | .communication_format = I2S_COMM_FORMAT_I2S_MSB,
| ^
C:/Users/prase/.platformio/packages/framework-espidf/components/driver/deprecated/driver/i2s_types_legacy.h:89:5: note: declared here
89 | I2S_COMM_FORMAT_I2S_MSB attribute((deprecated)) = 0x01, /!< I2S format MSB, (I2S_COMM_FORMAT_I2S |I2S_COMM_FORMAT_I2S_MSB) correspond to I2S_COMM_FORMAT_STAND_I2S
/
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/prase/.platformio/packages/framework-espidf/components/esp_hw_support/include/esp_cpu.h:20,
from C:/Users/prase/.platformio/packages/framework-espidf/components/esp_hw_support/include/spinlock.h:11,
from C:/Users/prase/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:49,
from C:/Users/prase/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/include/freertos/portable.h:57,
from C:/Users/prase/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:69,
from src/app_main.c:3:
C:/Users/prase/.platformio/packages/framework-espidf/components/esp_hw_support/include/esp_intr_alloc.h:33:37: warning: initialized field overwritten [-Woverride-init]
33 | #define ESP_INTR_FLAG_LEVEL1 (1<<1) ///< Accept a Level 1 interrupt vector (lowest priority)
| ^
src/app_main.c:218:29: note: in expansion of macro 'ESP_INTR_FLAG_LEVEL1'
218 | .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1 // Interrupt level 1
| ^~~~~~~~~~~~~~~~~~~~
C:/Users/prase/.platformio/packages/framework-espidf/components/esp_hw_support/include/esp_intr_alloc.h:33:37: note: (near initialization for 'i2s_config_tx.intr_alloc_flags')
33 | #define ESP_INTR_FLAG_LEVEL1 (1<<1) ///< Accept a Level 1 interrupt vector (lowest priority)
| ^
src/app_main.c:218:29: note: in expansion of macro 'ESP_INTR_FLAG_LEVEL1'
218 | .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1 // Interrupt level 1
| ^~~~~~~~~~~~~~~~~~~~
src/app_main.c: In function 'example_erase_flash':
src/app_main.c:256:37: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
256 | printf("partiton addr: 0x%08x; size: %d; label: %s\n", data_partition->address, data_partition->size, data_partition->label);
Compiling .pio\build\esp32dev\console\argtable3\arg_hashtable.c.o
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint32_t {aka long unsigned int}
| %08lx
src/app_main.c:256:47: error: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
256 | printf("partiton addr: 0x%08x; size: %d; label: %s\n", data_partition->address, data_partition->size, data_partition->label);
Compiling .pio\build\esp32dev\console\argtable3\arg_int.c.o
| ~^ ~~~~~~~~~~~~~~~~~~~~
| | |
| int uint32_t {aka long unsigned int}
| %ld
src/app_main.c: In function 'example_pdm_out':
src/app_main.c:410:37: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
410 | printf("partiton addr: 0x%08x; size: %d; label: %s\n", data_partition->address, data_partition->size, data_partition->label);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint32_t {aka long unsigned int}
| %08lx
src/app_main.c:410:47: error: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
410 | printf("partiton addr: 0x%08x; size: %d; label: %s\n", data_partition->address, data_partition->size, data_partition->label);
| ~^ ~~~~~~~~~~~~~~~~~~~~
| | |
| int uint32_t {aka long unsigned int}
| %ld
src/app_main.c:437:9: error: implicit declaration of function 'ets_printf'; did you mean 'vsiprintf'? [-Werror=implicit-function-declaration]
437 | ets_printf("Sound recording %u%%\n", flash_wr_size * 100 / FLASH_RECORD_SIZE);
| ^~~~~~~~~~
| vsiprintf
cc1.exe: some warnings being treated as errors
*** [.pio\build\esp32dev\src\app_main.c.o] Error 1
==================================================================== [FAILED] Took 6.71 seconds ====================================================================