功能丰富的 Wi-Fi & 蓝牙 MCU适用于多样的物联网应用
esp32/sources/esp-idf$ python -m pip install --user -r requirements.txt
$ make menuconfig
$ xtensa-esp32-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-esp32-elf-gcc
COLLECT_LTO_WRAPPER=......
Target: xtensa-esp32-elf
......
Thread model: posix
gcc version 5.2.0 (crosstool-NG crosstool-ng-......)
问题:
esp32/sources/esp-idf/components/soc/include/hal/i2s_types.h:70:31: error: expected ',' or '}' before '__attribute__'
I2S_COMM_FORMAT_I2S __attribute__((deprecated)) = 0x01, /*!< I2S comm
^
esp32/sources/esp-idf/components/soc/src/hal/i2s_hal.c: In function 'i2s_hal_format_config':
esp32/sources/esp-idf/components/soc/src/hal/i2s_hal.c:120:9: error: case value '3' not in enumerated type 'i2s_comm_format_t {aka const enum <anonymous>}' [-Werror=switch]
case I2S_COMM_FORMAT_STAND_MSB:
^
esp32/sources/esp-idf/components/soc/src/hal/i2s_hal.c:128:9: error: case value '4' not in enumerated type 'i2s_comm_format_t {aka const enum <anonymous>}' [-Werror=switch]
case I2S_COMM_FORMAT_STAND_PCM_SHORT:
^
esp32/sources/esp-idf/components/soc/src/hal/i2s_hal.c:136:9: error: case value '12' not in enumerated type 'i2s_comm_format_t {aka const enum <anonymous>}' [-Werror=switch]
case I2S_COMM_FORMAT_STAND_PCM_LONG:
^
esp32/sources/esp-idf/components/soc/src/hal/i2s_hal.c: At top level:
cc1: warning: unrecognized command line option '-Wno-frame-address'
cc1: some warnings being treated as errors
esp32/sources/esp-idf/make/component_wrapper.mk:291: recipe for target 'src/hal/i2s_hal.o' failed
make[2]: *** [src/hal/i2s_hal.o] Error 1
esp32/sources/esp-idf/make/project.mk:635: recipe for target 'component-soc-build' failed
make[1]: *** [component-soc-build] Error 2
解决:
官网:
https://www.espressif.com/zh-hans/products/socs/esp32/resources
https://dl.espressif.com/dl/esp-idf/releases/esp-idf-v4.0.1.zip
来源:oschina
链接:https://my.oschina.net/u/4354729/blog/4338874