Skip to content

Commit 43cd349

Browse files
fix(ble): fix ble light sleep error on esp32c2
(cherry picked from commit 23f7e33) Co-authored-by: cjin <jinchen@espressif.com>
1 parent 9240757 commit 43cd349

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

components/bt/controller/esp32c2/bt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ static void esp_bt_ctrl_log_partition_get_and_erase_first_block(void);
199199
/* Local variable definition
200200
***************************************************************************
201201
*/
202+
#if CONFIG_ESP32C2_REV_MIN_FULL < 200
203+
void *g_ble_lll_rfmgmt_env_p;
204+
#endif
202205
/* Static variable declare */
203206
static DRAM_ATTR esp_bt_controller_status_t ble_controller_status = ESP_BT_CONTROLLER_STATUS_IDLE;
204207
#if CONFIG_BT_LE_CONTROLLER_LOG_ENABLED

components/esp_rom/esp32c2/ld/esp32c2.rom.ble-eco4.ld

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,9 @@ r_ble_lll_per_adv_coex_dpc_update_on_start = 0x40001640;
766766
r_ble_lll_reset = 0x40001644;
767767
r_ble_lll_rfmgmt_controller_sleep_en = 0x40001648;
768768
r_ble_lll_rfmgmt_deinit = 0x4000164c;
769-
r_ble_lll_rfmgmt_disable = 0x40001650;
770-
r_ble_lll_rfmgmt_enable = 0x40001654;
771-
r_ble_lll_rfmgmt_enable_now = 0x40001658;
769+
//r_ble_lll_rfmgmt_disable = 0x40001650;
770+
//r_ble_lll_rfmgmt_enable = 0x40001654;
771+
//r_ble_lll_rfmgmt_enable_now = 0x40001658;
772772
r_ble_lll_rfmgmt_init = 0x4000165c;
773773
r_ble_lll_rfmgmt_is_enabled = 0x40001660;
774774
r_ble_lll_rfmgmt_release = 0x40001664;
@@ -778,8 +778,8 @@ r_ble_lll_rfmgmt_scan_changed = 0x40001670;
778778
r_ble_lll_rfmgmt_sched_changed = 0x40001674;
779779
r_ble_lll_rfmgmt_set_sleep_cb = 0x40001678;
780780
r_ble_lll_rfmgmt_ticks_to_enabled = 0x4000167c;
781-
r_ble_lll_rfmgmt_timer_exp = 0x40001680;
782-
r_ble_lll_rfmgmt_timer_reschedule = 0x40001684;
781+
//r_ble_lll_rfmgmt_timer_exp = 0x40001680;
782+
//r_ble_lll_rfmgmt_timer_reschedule = 0x40001684;
783783
r_ble_lll_rx_pdu_in = 0x40001688;
784784
r_ble_lll_rx_pkt_in = 0x4000168c;
785785
r_ble_lll_rx_pkt_isr = 0x40001690;
@@ -1146,7 +1146,7 @@ r_ble_phy_get_txdbm_by_level = 0x40002edc;
11461146
r_hal_timer_disable_intr = 0x40002ee0;
11471147
r_hal_timer_enable_intr = 0x40002ee4;
11481148
r_hal_timer_task_stop = 0x40002ee8;
1149-
r_ble_lll_rfmgmt_env_init = 0x40002eec;
1149+
//r_ble_lll_rfmgmt_env_init = 0x40002eec;
11501150
r_ble_ll_scan_set_aux_ll_flag = 0x40002ef0;
11511151
r_ble_ll_rf_temp_calibration = 0x40002ef4;
11521152
r_ble_ll_adv_env_deinit = 0x40002ef8;
@@ -1225,5 +1225,6 @@ r_ble_lll_adv_ext_event_rmvd_from_sched = 0x40003018;
12251225
r_ble_lll_conn_process_rx_data_after_halt = 0x4000301c;
12261226
r_ble_phy_global_rxbuf_get = 0x40003020;
12271227
/* Data (.data, .bss, .rodata) */
1228+
g_ble_lll_rfmgmt_env_p = 0x3fcdf3cc;
12281229
priv_config_additional_opts_ptr = 0x3fcdfa70;
12291230
g_ble_ll_ctrl_pkt_lengths_eco4_ro = 0x3ff4fbac;

0 commit comments

Comments
 (0)