m5stack / M5Stack-Camera

Base espressif esp32-camera
203 stars 105 forks source link

error: 'rtc_gpio_desc' undeclared #32

Closed dcmcshan closed 4 years ago

dcmcshan commented 4 years ago

make in /qr fails. Does it mean rtc_io_desc?

`$ make Toolchain path: /Users/danielmcshan/.espressif/tools/xtensa-esp32-elf/esp-2020r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: esp-2020r1 Compiler version: 8.2.0 Python requirements from /Users/danielmcshan/esp/esp-idf/requirements.txt are satisfied. App "camera" version: f81a925-dirty Python requirements from /Users/danielmcshan/esp/esp-idf/requirements.txt are satisfied. Building partitions from /Users/danielmcshan/esp/esp-idf/components/partition_table/partitions_singleapp.csv... CC build/bootloader/bootloader_support/src/bootloader_clock.o CC build/bootloader/bootloader_support/src/bootloader_common.o CC build/bootloader/bootloader_support/src/bootloader_efuse_esp32.o CC build/bootloader/bootloader_support/src/bootloader_flash.o CC build/bootloader/bootloader_support/src/bootloader_flash_config_esp32.o CC build/bootloader/bootloader_support/src/bootloader_init.o CC build/bootloader/bootloader_support/src/bootloader_mem.o CC build/bootloader/bootloader_support/src/bootloader_random.o CC build/bootloader/bootloader_support/src/bootloader_utility.o CC build/bootloader/bootloader_support/src/esp_image_format.o CC build/bootloader/bootloader_support/src/flash_encrypt.o CC build/bootloader/bootloader_support/src/flash_partitions.o CC build/bootloader/bootloader_support/src/flash_qio_mode.o CC build/bootloader/bootloader_support/src/esp32/bootloader_esp32.o CC build/bootloader/bootloader_support/src/esp32/bootloader_sha.o CC build/bootloader/bootloader_support/src/esp32/flash_encrypt.o AR build/bootloader/bootloader_support/libbootloader_support.a CC build/bootloader/log/log.o CC build/bootloader/log/log_buffers.o CC build/bootloader/log/log_noos.o AR build/bootloader/log/liblog.a CC build/bootloader/spi_flash/esp32/spi_flash_rom_patch.o AR build/bootloader/spi_flash/libspi_flash.a CC build/bootloader/micro-ecc/uECC_verify_antifault.o AR build/bootloader/micro-ecc/libmicro-ecc.a CC build/bootloader/soc/src/compare_set.o CC build/bootloader/soc/src/cpu_util.o CC build/bootloader/soc/src/lldesc.o CC build/bootloader/soc/src/memory_layout_utils.o CC build/bootloader/soc/src/soc_include_legacy_warn.o CC build/bootloader/soc/src/hal/adc_hal.o CC build/bootloader/soc/src/hal/can_hal.o CC build/bootloader/soc/src/hal/cpu_hal.o CC build/bootloader/soc/src/hal/dac_hal.o CC build/bootloader/soc/src/hal/gpio_hal.o CC build/bootloader/soc/src/hal/i2c_hal.o CC build/bootloader/soc/src/hal/i2c_hal_iram.o CC build/bootloader/soc/src/hal/i2s_hal.o CC build/bootloader/soc/src/hal/ledc_hal.o CC build/bootloader/soc/src/hal/ledc_hal_iram.o CC build/bootloader/soc/src/hal/mcpwm_hal.o CC build/bootloader/soc/src/hal/mpu_hal.o CC build/bootloader/soc/src/hal/pcnt_hal.o CC build/bootloader/soc/src/hal/rmt_hal.o CC build/bootloader/soc/src/hal/rtc_io_hal.o CC build/bootloader/soc/src/hal/sdio_slave_hal.o CC build/bootloader/soc/src/hal/sigmadelta_hal.o CC build/bootloader/soc/src/hal/soc_hal.o CC build/bootloader/soc/src/hal/spi_flash_hal.o CC build/bootloader/soc/src/hal/spi_flash_hal_gpspi.o CC build/bootloader/soc/src/hal/spi_flash_hal_iram.o CC build/bootloader/soc/src/hal/spi_hal.o CC build/bootloader/soc/src/hal/spi_hal_iram.o CC build/bootloader/soc/src/hal/spi_slave_hal.o CC build/bootloader/soc/src/hal/spi_slave_hal_iram.o CC build/bootloader/soc/src/hal/timer_hal.o CC build/bootloader/soc/src/hal/touch_sensor_hal.o CC build/bootloader/soc/src/hal/uart_hal.o CC build/bootloader/soc/src/hal/uart_hal_iram.o CC build/bootloader/soc/src/hal/wdt_hal_iram.o CC build/bootloader/soc/src/esp32/adc_hal.o CC build/bootloader/soc/src/esp32/brownout_hal.o CC build/bootloader/soc/src/esp32/emac_hal.o CC build/bootloader/soc/src/esp32/rtc_clk.o CC build/bootloader/soc/src/esp32/rtc_clk_init.o CC build/bootloader/soc/src/esp32/rtc_init.o CC build/bootloader/soc/src/esp32/rtc_pm.o CC build/bootloader/soc/src/esp32/rtc_sleep.o CC build/bootloader/soc/src/esp32/rtc_time.o CC build/bootloader/soc/src/esp32/rtc_wdt.o CC build/bootloader/soc/src/esp32/soc_memory_layout.o CC build/bootloader/soc/src/esp32/touch_sensor_hal.o CC build/bootloader/soc/soc/esp32/adc_periph.o CC build/bootloader/soc/soc/esp32/dac_periph.o CC build/bootloader/soc/soc/esp32/gpio_periph.o CC build/bootloader/soc/soc/esp32/i2c_periph.o CC build/bootloader/soc/soc/esp32/i2s_periph.o CC build/bootloader/soc/soc/esp32/interrupts.o CC build/bootloader/soc/soc/esp32/ledc_periph.o CC build/bootloader/soc/soc/esp32/rtc_io_periph.o CC build/bootloader/soc/soc/esp32/rtc_periph.o CC build/bootloader/soc/soc/esp32/sdio_slave_periph.o CC build/bootloader/soc/soc/esp32/sdmmc_periph.o CC build/bootloader/soc/soc/esp32/spi_periph.o CC build/bootloader/soc/soc/esp32/touch_sensor_periph.o CC build/bootloader/soc/soc/esp32/uart_periph.o AR build/bootloader/soc/libsoc.a CC build/bootloader/main/bootloader_start.o AR build/bootloader/main/libmain.a CC build/bootloader/efuse/esp32/esp_efuse_table.o CC build/bootloader/efuse/src/esp_efuse_api.o CC build/bootloader/efuse/src/esp_efuse_fields.o CC build/bootloader/efuse/src/esp_efuse_utility.o CC build/bootloader/efuse/src/esp32/esp_efuse_api.o CC build/bootloader/efuse/src/esp32/esp_efuse_fields.o CC build/bootloader/efuse/src/esp32/esp_efuse_utility.o AR build/bootloader/efuse/libefuse.a LD build/bootloader/bootloader.elf esptool.py v3.0-dev

CC build/app_trace/app_trace.o CC build/app_trace/app_trace_util.o CC build/app_trace/heap_trace_tohost.o CC build/app_trace/host_file_io.o CC build/app_trace/gcov/gcov_rtio.o AR build/app_trace/libapp_trace.a App "camera" version: f81a925-dirty CC build/app_update/esp_app_desc.o CC build/app_update/esp_ota_ops.o AR build/app_update/libapp_update.a CXX build/asio/asio/asio/src/asio.o AR build/asio/libasio.a CC build/bootloader_support/src/bootloader_clock.o CC build/bootloader_support/src/bootloader_common.o CC build/bootloader_support/src/bootloader_efuse_esp32.o CC build/bootloader_support/src/bootloader_flash.o CC build/bootloader_support/src/bootloader_flash_config_esp32.o CC build/bootloader_support/src/bootloader_mem.o CC build/bootloader_support/src/bootloader_random.o CC build/bootloader_support/src/bootloader_utility.o CC build/bootloader_support/src/esp_image_format.o CC build/bootloader_support/src/flash_encrypt.o CC build/bootloader_support/src/flash_partitions.o CC build/bootloader_support/src/flash_qio_mode.o CC build/bootloader_support/src/idf/bootloader_sha.o AR build/bootloader_support/libbootloader_support.a AR build/bt/libbt.a CC build/cbor/tinycbor/src/cborencoder.o CC build/cbor/tinycbor/src/cborencoder_close_container_checked.o CC build/cbor/tinycbor/src/cborerrorstrings.o CC build/cbor/tinycbor/src/cborparser.o CC build/cbor/tinycbor/src/cborparser_dup_string.o CC build/cbor/tinycbor/src/cborpretty.o CC build/cbor/tinycbor/src/cborpretty_stdio.o CC build/cbor/tinycbor/src/cbortojson.o CC build/cbor/tinycbor/src/cborvalidation.o CC build/cbor/tinycbor/src/open_memstream.o AR build/cbor/libcbor.a CC build/coap/libcoap/src/address.o CC build/coap/libcoap/src/async.o CC build/coap/libcoap/src/block.o CC build/coap/libcoap/src/coap_event.o CC build/coap/libcoap/src/coap_hashkey.o CC build/coap/libcoap/src/coap_session.o CC build/coap/libcoap/src/coap_time.o CC build/coap/port/coap_debug.o CC build/coap/libcoap/src/encode.o CC build/coap/libcoap/src/mem.o CC build/coap/libcoap/src/net.o CC build/coap/libcoap/src/option.o CC build/coap/libcoap/src/pdu.o CC build/coap/libcoap/src/resource.o CC build/coap/libcoap/src/str.o CC build/coap/libcoap/src/subscribe.o CC build/coap/libcoap/src/uri.o CC build/coap/port/coap_mbedtls.o CC build/coap/libcoap/src/coap_io.o CC build/coap/port/coap_notls.o AR build/coap/libcoap.a CC build/console/linenoise/linenoise.o CC build/console/argtable3/argtable3.o CC build/console/commands.o CC build/console/esp_console_repl.o CC build/console/split_argv.o AR build/console/libconsole.a CXX build/cxx/cxx_exception_stubs.o CXX build/cxx/cxx_guards.o AR build/cxx/libcxx.a CC build/driver/adc_common.o CC build/driver/can.o CC build/driver/dac.o CC build/driver/gpio.o CC build/driver/i2c.o CC build/driver/i2s.o CC build/driver/ledc.o CC build/driver/mcpwm.o CC build/driver/pcnt.o CC build/driver/periph_ctrl.o CC build/driver/rmt.o CC build/driver/rtc_io.o CC build/driver/rtc_module.o CC build/driver/sdio_slave.o CC build/driver/sdmmc_host.o CC build/driver/sdmmc_transaction.o CC build/driver/sdspi_crc.o CC build/driver/sdspi_host.o CC build/driver/sdspi_transaction.o CC build/driver/sigmadelta.o CC build/driver/spi_bus_lock.o CC build/driver/spi_common.o CC build/driver/spi_master.o CC build/driver/spi_slave.o CC build/driver/timer.o CC build/driver/touch_sensor_common.o CC build/driver/uart.o CC build/driver/esp32/adc.o CC build/driver/esp32/touch_sensor.o AR build/driver/libdriver.a CC build/efuse/esp32/esp_efuse_table.o CC build/efuse/src/esp_efuse_api.o CC build/efuse/src/esp_efuse_fields.o CC build/efuse/src/esp_efuse_utility.o CC build/efuse/src/esp32/esp_efuse_api.o CC build/efuse/src/esp32/esp_efuse_fields.o CC build/efuse/src/esp32/esp_efuse_utility.o AR build/efuse/libefuse.a CC build/esp-tls/esp_tls.o CC build/esp-tls/esp_tls_mbedtls.o AR build/esp-tls/libesp-tls.a CC build/esp32/cache_err_int.o CC build/esp32/cache_sram_mmu.o CC build/esp32/clk.o CC build/esp32/cpu_start.o CC build/esp32/crosscore_int.o CC build/esp32/dport_access.o CC build/esp32/esp_himem.o CC build/esp32/hw_random.o CC build/esp32/intr_alloc.o CC build/esp32/pm_esp32.o CC build/esp32/pm_trace.o CC build/esp32/sleep_modes.o CC build/esp32/spiram.o CC build/esp32/spiram_psram.o CC build/esp32/system_api_esp32.o AR build/esp32/libesp32.a CC build/esp32-camera/driver/camera.o In file included from /Users/danielmcshan/Documents/GitHub/M5Stack-Camera/qr/components/esp32-camera/driver/camera.c:22: /Users/danielmcshan/esp/esp-idf/components/esp32/include/rom/lldesc.h:1:2: warning: #warning rom/lldesc.h is deprecated, please use esp32/rom/lldesc.h instead [-Wcpp]

warning rom/lldesc.h is deprecated, please use esp32/rom/lldesc.h instead

^~~ In file included from /Users/danielmcshan/Documents/GitHub/M5Stack-Camera/qr/components/esp32-camera/driver/private_include/camera_common.h:6, from /Users/danielmcshan/Documents/GitHub/M5Stack-Camera/qr/components/esp32-camera/driver/camera.c:35: /Users/danielmcshan/esp/esp-idf/components/esp32/include/rom/lldesc.h:1:2: warning: #warning rom/lldesc.h is deprecated, please use esp32/rom/lldesc.h instead [-Wcpp]

warning rom/lldesc.h is deprecated, please use esp32/rom/lldesc.h instead

^~~ CC build/esp32-camera/driver/sccb.o CC build/esp32-camera/driver/sensor.o CC build/esp32-camera/driver/twi.o /Users/danielmcshan/Documents/GitHub/M5Stack-Camera/qr/components/esp32-camera/driver/twi.c: In function 'pinMode': /Users/danielmcshan/Documents/GitHub/M5Stack-Camera/qr/components/esp32-camera/driver/twi.c:61:24: error: 'rtc_gpio_desc' undeclared (first use in this function); did you mean 'rtc_io_desc'? uint32_t rtc_reg = rtc_gpio_desc[pin].reg; ^~~~~ rtc_io_desc /Users/danielmcshan/Documents/GitHub/M5Stack-Camera/qr/components/esp32-camera/driver/twi.c:61:24: note: each undeclared identifier is reported only once for each function it appears in make[1]: [driver/twi.o] Error 1 make: [component-esp32-camera-build] Error 2 `

dcmcshan commented 4 years ago

Resolved by configuring RTCIO