Skip to content

Incorrect minimum ESP-IDF version in component registry for esp_cam_sensor (AEGHB-1278) #50

@sjaramillo-yx

Description

@sjaramillo-yx

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

I expect the component to be built correctly under ESP-IDF v5.3 (as it says in the registry manifest), but SPI driver errors appear when building a project containing this component since it uses macros and functions that are not present on this version of the IDF

Actual behavior (suspected bug)

Build fails completely

Error logs or terminal output

/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c: In function 'esp_cam_spi_slave_initialize':
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:295:29: error: 'SPICOMMON_BUSFLAG_SLP_ALLOW_PD' undeclared (first use in this function); did you mean 'SPICOMMON_BUSFLAG_SLAVE'?
  295 |     if (bus_config->flags & SPICOMMON_BUSFLAG_SLP_ALLOW_PD) {
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                             SPICOMMON_BUSFLAG_SLAVE
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:295:29: note: each undeclared identifier is reported only once for each function it appears in
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c: In function 's_spi_slave_dma_prepare_data':
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:709:9: error: implicit declaration of function 'spi_slave_hal_hw_prepare_rx'; did you mean 'spi_slave_hal_prepare_data'? [-Werror=implicit-function-declaration]
  709 |         spi_slave_hal_hw_prepare_rx(hal->hw);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         spi_slave_hal_prepare_data
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:716:9: error: implicit declaration of function 'spi_slave_hal_hw_prepare_tx'; did you mean 'spi_slave_hal_prepare_data'? [-Werror=implicit-function-declaration]
  716 |         spi_slave_hal_hw_prepare_tx(hal->hw);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         spi_slave_hal_prepare_data
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c: In function 's_spi_slave_prepare_data':
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:729:9: error: implicit declaration of function 'spi_slave_hal_push_tx_buffer'; did you mean 'spi_slave_hal_usr_is_done'? [-Werror=implicit-function-declaration]
  729 |         spi_slave_hal_push_tx_buffer(hal);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         spi_slave_hal_usr_is_done
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:730:9: error: implicit declaration of function 'spi_slave_hal_hw_fifo_reset'; did you mean 'spi_slave_hal_store_result'? [-Werror=implicit-function-declaration]
  730 |         spi_slave_hal_hw_fifo_reset(hal, true, false);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         spi_slave_hal_store_result
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:732:5: error: implicit declaration of function 'spi_slave_hal_set_trans_bitlen'; did you mean 'spi_slave_hal_get_rcv_bitlen'? [-Werror=implicit-function-declaration]
  732 |     spi_slave_hal_set_trans_bitlen(hal);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     spi_slave_hal_get_rcv_bitlen
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c: In function 'spi_intr':
/home/try_except/ESPProjects/Video-Test_v2/managed_components/espressif__esp_cam_sensor/src/driver_spi/spi_slave.c:841:9: error: implicit declaration of function 'spi_slave_hal_hw_reset'; did you mean 'spi_slave_queue_reset'? [-Werror=implicit-function-declaration]
  841 |         spi_slave_hal_hw_reset(hal);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         spi_slave_queue_reset

Steps to reproduce the behavior

  1. Install ESP-IDF v5.3.x
  2. Include this component on the project
  3. Build

Project release version

latest

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Linux

Operating system version

Debian

Shell

Bash

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions