Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing BT related fields when trying to compile this against esp-idf v5.2.2 #442

Closed
oddlama opened this issue Jul 3, 2024 · 4 comments
Closed

Comments

@oddlama
Copy link

oddlama commented Jul 3, 2024

I'm trying to compile this project (https://github.com/ivmarkov/esp-idf-matter) as-is,
but - no matter what I do - it fails to compile esp-idf-svc complaining about some bluetooth-related defines that are apparently missing.

   Compiling esp-idf-svc v0.49.0
error[E0425]: cannot find value `ESP_BT_CTRL_CONFIG_MAGIC_VAL` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:497:32
    |
497 |             magic: crate::sys::ESP_BT_CTRL_CONFIG_MAGIC_VAL,
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

(full error log below)

Is there anything obvious I am missing? I am compiling for MCU=esp32c6 by using cargo build --target riscv32imac-esp-espidf and made sure to use a fresh clone of esp-idf v5.2.2 where esp-idf-sys compiles just fine. The sdkconfig.defaults of the project contains the following:

# Increase a bit these stack sizes as they are too low by default
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096
# For async-io
#CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT=8192

# Go figure...
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=4096

# BT
CONFIG_BT_BTC_TASK_STACK_SIZE=15000
CONFIG_BT_ENABLED=y
CONFIG_BT_BLUEDROID_ENABLED=y
CONFIG_BT_CLASSIC_ENABLED=n
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
CONFIG_BTDM_CTRL_MODE_BTDM=n
CONFIG_BT_A2DP_ENABLE=n
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y
CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n
CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=y
cargo build output
   Compiling esp-idf-svc v0.49.0
error[E0425]: cannot find value `ESP_BT_CTRL_CONFIG_MAGIC_VAL` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:497:32
    |
497 |             magic: crate::sys::ESP_BT_CTRL_CONFIG_MAGIC_VAL,
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `ESP_BT_CTRL_CONFIG_VERSION` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:498:34
    |
498 |             version: crate::sys::ESP_BT_CTRL_CONFIG_VERSION,
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_PINNED_TO_CORE` in module `crate::sys`
    --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:501:50
     |
501  |             controller_task_run_cpu: crate::sys::CONFIG_BT_CTRL_PINNED_TO_CORE as _,
     |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `CONFIG_BLUEDROID_PINNED_TO_CORE`
     |
    ::: /home/nixuser/projects/embedded/esp-idf-matter/target/riscv32imac-esp-espidf/debug/build/esp-idf-sys-c8d14348dff4d490/out/bindings.rs:1167:1
     |
1167 | pub const CONFIG_BLUEDROID_PINNED_TO_CORE: u32 = 0;
     | ---------------------------------------------- similarly named constant `CONFIG_BLUEDROID_PINNED_TO_CORE` defined here

error[E0425]: cannot find value `CONFIG_BT_CTRL_MODE_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:502:41
    |
502 |             bluetooth_mode: crate::sys::CONFIG_BT_CTRL_MODE_EFF as _,
    |                                         ^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_BLE_MAX_ACT_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:503:38
    |
503 |             ble_max_act: crate::sys::CONFIG_BT_CTRL_BLE_MAX_ACT_EFF as _,
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_SLEEP_MODE_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:504:37
    |
504 |             sleep_mode: crate::sys::CONFIG_BT_CTRL_SLEEP_MODE_EFF as _,
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_SLEEP_CLOCK_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:505:38
    |
505 |             sleep_clock: crate::sys::CONFIG_BT_CTRL_SLEEP_CLOCK_EFF as _,
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_BLE_STATIC_ACL_TX_BUF_NB` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:506:47
    |
506 |             ble_st_acl_tx_buf_nb: crate::sys::CONFIG_BT_CTRL_BLE_STATIC_ACL_TX_BUF_NB as _,
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_HW_CCA_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:507:43
    |
507 |             ble_hw_cca_check: crate::sys::CONFIG_BT_CTRL_HW_CCA_EFF as _,
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_ADV_DUP_FILT_MAX` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:508:47
    |
508 |             ble_adv_dup_filt_max: crate::sys::CONFIG_BT_CTRL_ADV_DUP_FILT_MAX as _,
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_CE_LENGTH_TYPE_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:509:38
    |
509 |             ce_len_type: crate::sys::CONFIG_BT_CTRL_CE_LENGTH_TYPE_EFF as _,
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_HCI_TL_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:510:38
    |
510 |             hci_tl_type: crate::sys::CONFIG_BT_CTRL_HCI_TL_EFF as _,
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_TX_ANTENNA_INDEX_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:512:36
    |
512 |             txant_dft: crate::sys::CONFIG_BT_CTRL_TX_ANTENNA_INDEX_EFF as _,
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_RX_ANTENNA_INDEX_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:513:36
    |
513 |             rxant_dft: crate::sys::CONFIG_BT_CTRL_RX_ANTENNA_INDEX_EFF as _,
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_DFT_TX_POWER_LEVEL_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:514:36
    |
514 |             txpwr_dft: crate::sys::CONFIG_BT_CTRL_DFT_TX_POWER_LEVEL_EFF as _,
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CFG_MASK` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:515:35
    |
515 |             cfg_mask: crate::sys::CFG_MASK,
    |                                   ^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `SCAN_DUPLICATE_MODE` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:516:46
    |
516 |             scan_duplicate_mode: crate::sys::SCAN_DUPLICATE_MODE as _,
    |                                              ^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `SCAN_DUPLICATE_TYPE_VALUE` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:517:46
    |
517 |             scan_duplicate_type: crate::sys::SCAN_DUPLICATE_TYPE_VALUE as _,
    |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `NORMAL_SCAN_DUPLICATE_CACHE_SIZE` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:518:42
    |
518 |             normal_adv_size: crate::sys::NORMAL_SCAN_DUPLICATE_CACHE_SIZE as _,
    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `MESH_DUPLICATE_SCAN_CACHE_SIZE` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:519:40
    |
519 |             mesh_adv_size: crate::sys::MESH_DUPLICATE_SCAN_CACHE_SIZE as _,
    |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EFF` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:521:29
    |
521 |                 crate::sys::CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EFF as _,
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF`
    |
   ::: /home/nixuser/projects/embedded/esp-idf-matter/target/riscv32imac-esp-espidf/debug/build/esp-idf-sys-c8d14348dff4d490/out/bindings.rs:754:1
    |
754 | pub const CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF: u32 = 0;
    | --------------------------------------------------------- similarly named constant `CONFIG_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF` defined here

error[E0425]: cannot find value `BLE_HW_TARGET_CODE_CHIP_ECO0` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:522:41
    |
522 |             hw_target_code: crate::sys::BLE_HW_TARGET_CODE_CHIP_ECO0 as _,
    |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `SLAVE_CE_LEN_MIN_DEFAULT` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:523:43
    |
523 |             slave_ce_len_min: crate::sys::SLAVE_CE_LEN_MIN_DEFAULT as _,
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `AGC_RECORRECT_EN` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:524:42
    |
524 |             hw_recorrect_en: crate::sys::AGC_RECORRECT_EN as _,
    |                                          ^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `CONFIG_BT_CTRL_HW_CCA_VAL` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:525:37
    |
525 |             cca_thresh: crate::sys::CONFIG_BT_CTRL_HW_CCA_VAL as _,
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `BT_CTRL_50_FEATURE_SUPPORT` in module `crate::sys`
    --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:528:43
     |
528  |             ble_50_feat_supp: crate::sys::BT_CTRL_50_FEATURE_SUPPORT != 0,
     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `EXT_CSD_SEC_FEATURE_SUPPORT`
     |
    ::: /home/nixuser/projects/embedded/esp-idf-matter/target/riscv32imac-esp-espidf/debug/build/esp-idf-sys-c8d14348dff4d490/out/bindings.rs:4935:1
     |
4935 | pub const EXT_CSD_SEC_FEATURE_SUPPORT: u32 = 231;
     | ------------------------------------------ similarly named constant `EXT_CSD_SEC_FEATURE_SUPPORT` defined here

error[E0425]: cannot find value `DUPL_SCAN_CACHE_REFRESH_PERIOD` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:529:50
    |
529 |             dup_list_refresh_period: crate::sys::DUPL_SCAN_CACHE_REFRESH_PERIOD as _,
    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0425]: cannot find value `BT_CTRL_SCAN_BACKOFF_UPPERLIMITMAX` in module `crate::sys`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:530:53
    |
530 |             scan_backoff_upperlimitmax: crate::sys::BT_CTRL_SCAN_BACKOFF_UPPERLIMITMAX as _,
    |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `crate::sys`

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `magic`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:497:13
    |
497 |             magic: crate::sys::ESP_BT_CTRL_CONFIG_MAGIC_VAL,
    |             ^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `version`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:498:13
    |
498 |             version: crate::sys::ESP_BT_CTRL_CONFIG_VERSION,
    |             ^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `controller_task_run_cpu`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:501:13
    |
501 |             controller_task_run_cpu: crate::sys::CONFIG_BT_CTRL_PINNED_TO_CORE as _,
    |             ^^^^^^^^^^^^^^^^^^^^^^^ unknown field
    |
help: a field with a similar name exists
    |
501 |             controller_run_cpu: crate::sys::CONFIG_BT_CTRL_PINNED_TO_CORE as _,
    |             ~~~~~~~~~~~~~~~~~~

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `bluetooth_mode`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:502:13
    |
502 |             bluetooth_mode: crate::sys::CONFIG_BT_CTRL_MODE_EFF as _,
    |             ^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `ble_max_act`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:503:13
    |
503 |             ble_max_act: crate::sys::CONFIG_BT_CTRL_BLE_MAX_ACT_EFF as _,
    |             ^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `sleep_mode`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:504:13
    |
504 |             sleep_mode: crate::sys::CONFIG_BT_CTRL_SLEEP_MODE_EFF as _,
    |             ^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `sleep_clock`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:505:13
    |
505 |             sleep_clock: crate::sys::CONFIG_BT_CTRL_SLEEP_CLOCK_EFF as _,
    |             ^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `ble_st_acl_tx_buf_nb`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:506:13
    |
506 |             ble_st_acl_tx_buf_nb: crate::sys::CONFIG_BT_CTRL_BLE_STATIC_ACL_TX_BUF_NB as _,
    |             ^^^^^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `ble_hw_cca_check`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:507:13
    |
507 |             ble_hw_cca_check: crate::sys::CONFIG_BT_CTRL_HW_CCA_EFF as _,
    |             ^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `ble_adv_dup_filt_max`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:508:13
    |
508 |             ble_adv_dup_filt_max: crate::sys::CONFIG_BT_CTRL_ADV_DUP_FILT_MAX as _,
    |             ^^^^^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `ce_len_type`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:509:13
    |
509 |             ce_len_type: crate::sys::CONFIG_BT_CTRL_CE_LENGTH_TYPE_EFF as _,
    |             ^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `hci_tl_type`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:510:13
    |
510 |             hci_tl_type: crate::sys::CONFIG_BT_CTRL_HCI_TL_EFF as _,
    |             ^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `hci_tl_funcs`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:511:13
    |
511 |             hci_tl_funcs: core::ptr::null_mut(),
    |             ^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `txant_dft`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:512:13
    |
512 |             txant_dft: crate::sys::CONFIG_BT_CTRL_TX_ANTENNA_INDEX_EFF as _,
    |             ^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `rxant_dft`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:513:13
    |
513 |             rxant_dft: crate::sys::CONFIG_BT_CTRL_RX_ANTENNA_INDEX_EFF as _,
    |             ^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `txpwr_dft`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:514:13
    |
514 |             txpwr_dft: crate::sys::CONFIG_BT_CTRL_DFT_TX_POWER_LEVEL_EFF as _,
    |             ^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `cfg_mask`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:515:13
    |
515 |             cfg_mask: crate::sys::CFG_MASK,
    |             ^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `scan_duplicate_mode`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:516:13
    |
516 |             scan_duplicate_mode: crate::sys::SCAN_DUPLICATE_MODE as _,
    |             ^^^^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `scan_duplicate_type`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:517:13
    |
517 |             scan_duplicate_type: crate::sys::SCAN_DUPLICATE_TYPE_VALUE as _,
    |             ^^^^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `normal_adv_size`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:518:13
    |
518 |             normal_adv_size: crate::sys::NORMAL_SCAN_DUPLICATE_CACHE_SIZE as _,
    |             ^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `mesh_adv_size`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:519:13
    |
519 |             mesh_adv_size: crate::sys::MESH_DUPLICATE_SCAN_CACHE_SIZE as _,
    |             ^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `hw_target_code`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:522:13
    |
522 |             hw_target_code: crate::sys::BLE_HW_TARGET_CODE_CHIP_ECO0 as _,
    |             ^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `slave_ce_len_min`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:523:13
    |
523 |             slave_ce_len_min: crate::sys::SLAVE_CE_LEN_MIN_DEFAULT as _,
    |             ^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `hw_recorrect_en`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:524:13
    |
524 |             hw_recorrect_en: crate::sys::AGC_RECORRECT_EN as _,
    |             ^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `cca_thresh`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:525:13
    |
525 |             cca_thresh: crate::sys::CONFIG_BT_CTRL_HW_CCA_VAL as _,
    |             ^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `coex_param_en`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:526:13
    |
526 |             coex_param_en: false,
    |             ^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `coex_use_hooks`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:527:13
    |
527 |             coex_use_hooks: false,
    |             ^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `ble_50_feat_supp`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:528:13
    |
528 |             ble_50_feat_supp: crate::sys::BT_CTRL_50_FEATURE_SUPPORT != 0,
    |             ^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `dup_list_refresh_period`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:529:13
    |
529 |             dup_list_refresh_period: crate::sys::DUPL_SCAN_CACHE_REFRESH_PERIOD as _,
    |             ^^^^^^^^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

error[E0560]: struct `esp_idf_hal::sys::esp_bt_controller_config_t` has no field named `scan_backoff_upperlimitmax`
   --> /home/nixuser/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-svc-0.49.0/src/bt.rs:530:13
    |
530 |             scan_backoff_upperlimitmax: crate::sys::BT_CTRL_SCAN_BACKOFF_UPPERLIMITMAX as _,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::esp_bt_controller_config_t` does not have this field
    |
    = note: available fields are: `config_version`, `ble_ll_resolv_list_size`, `ble_hci_evt_hi_buf_count`, `ble_hci_evt_lo_buf_count`, `ble_ll_sync_list_cnt` ... and 46 others

Some errors have detailed explanations: E0425, E0560.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `esp-idf-svc` (lib) due to 58 previous errors
@ivmarkov
Copy link
Collaborator

ivmarkov commented Jul 3, 2024

  1. Does the compile work when using esp idf v5.2 and just changing the target to riscv32imac-esp-espidf?
  2. Can you re-open the issue in the esp-idf-matter repository please?

@Vollbrecht
Copy link
Collaborator

@ivmarkov you can transfer the issue with the transfer-issue button on the right

@oddlama
Copy link
Author

oddlama commented Jul 3, 2024

  1. Does the compile work when using esp idf v5.2 and just changing the target to riscv32imac-esp-espidf?

Unfortunately not, it leads to exactly the same error.

  1. Can you re-open the issue in the esp-idf-matter repository please?

Of course, it was hard to tell what crate is the true cause of the issue, so since esp-idf-svc failed first I reported it here initially. It may also very well be that I still have a wrong environment setup.


@Vollbrecht Does this work if the other repository is not part of the same org?

@oddlama
Copy link
Author

oddlama commented Jul 3, 2024

Closing this and re-opening here: ivmarkov/esp-idf-matter#5

@oddlama oddlama closed this as completed Jul 3, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants