espidf_pdm_mic_out's People
espidf_pdm_mic_out's Issues
fail to compiling
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 ====================================================================
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.