Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
f04b08a
feat(mbedtls): Add mbedtls_esp_random()
rojer Mar 29, 2025
314a314
change(wpa_supplicant): Replace use of mbedtls_ctr_drbg with esp_mbed…
rojer Mar 29, 2025
3cf1f74
fix(mbedtls): Addressed comments on PR15679
kapilkedawat May 28, 2025
d3e3fae
fix(examples): fixed bridge example test endnode to host send
kostaond Oct 27, 2025
774cd19
fix(esp_wifi): NAN improvements and bugfixes
nachiketkukade Sep 25, 2025
fbf49d7
change(i2s): update i2s soc and hal for p4 hw_ver3
L-KAYA Sep 2, 2025
3286e45
fix(bt/blurdoird): fixed an OOB write in bta_dm_sdp_result
BetterJincheng Oct 28, 2025
8ab8eee
fix(802.15.4): fix line save in 154 debug
Nov 10, 2025
700392f
feat(touch): support touch sensor on p4 eco5
L-KAYA Sep 10, 2025
92c6557
fix(bt/bluedroid): update the COD before enabling inquiry scan
BetterJincheng Aug 25, 2025
0f639a9
feat(mbedtls): update to version 3.6.5
Ashish285 Oct 16, 2025
f483e9f
Merge branch 'fix/fix_save_line_in_debug_for_154_v5.4' into 'release/…
chshu Nov 11, 2025
479727d
Merge branch 'feature/support_i2s_on_p4_eco5_v5.4' into 'release/v5.4'
suda-morris Nov 12, 2025
2a26b96
feat(isp): support on p4 rev3
Icarus113 Sep 2, 2025
7439d67
Merge branch 'feature/support_touch_on_p4_eco5_v5.4' into 'release/v5.4'
suda-morris Nov 12, 2025
5be7740
ci: attach_log_url for multi dut tests
Oct 27, 2025
828d923
Merge branch 'bugfix/cod_chg_by_scan_ena_v5.4' into 'release/v5.4'
wmy-espressif Nov 12, 2025
186b366
fix(ble): increase default ble log stack size for xtensa chips
Nov 12, 2025
8bb368f
Merge branch 'ci/attach_dut_log_url-v5.4' into 'release/v5.4'
ESP-Marius Nov 12, 2025
cdc8658
Merge branch 'feat/p4_rev3_isp_v5.4' into 'release/v5.4'
suda-morris Nov 13, 2025
331e968
feat(isp): allow isp bf to be configured dyncamically
Icarus113 Jan 16, 2025
bc23a60
refactor(isp): use hw auto clock control mode for pipelines
Icarus113 Jan 16, 2025
76fb136
feat(isp): support BLC driver
Icarus113 Sep 3, 2025
70b8e40
feat(esp_coex): set the pull mode of the external coex input pin
zwx1995esp Nov 3, 2025
0c5efa6
feat(ledc): ESP32P4 ECO5 LEDC related updates
songruo Sep 4, 2025
c2390aa
fix(lwip): allow task stack from SPIRAM except for ESP32 ECO2 and below
mahavirj Nov 5, 2025
c81229d
feat(uart): ESP32P4 ECO5 UART related updates
songruo Sep 4, 2025
514d9bc
feat(interrupts): ESP32P4 ECO5 interrupt sources update
songruo Sep 10, 2025
55f3730
feat(2ddma): ESP32P4 ECO5 2DDMA related updates
songruo Sep 12, 2025
0c243c9
feat(ppa): ESP32P4 ECO5 PPA related updates
songruo Sep 17, 2025
c841253
Merge branch 'fix/increase_ble_log_task_stack_size_for_xtensa_chips_v…
Isl2017 Nov 13, 2025
06dda85
fix(bt/bluedroid): Fixed HID memory leak
boblane1 Oct 23, 2025
066ba5a
fix(bt/controller): Fixed some controller bugs
BetterJincheng Nov 10, 2025
2815baf
fix(lcd): fix mipi dsi phy type for p4 version below 3.0
Kainarx Nov 13, 2025
dd5e7a2
feat(ble/bluedroid): Added BLE debug LOG for bluedroid
esp-zhp Aug 28, 2025
4b27487
Merge branch 'bugfix/fix_hid_memory_leak_v5.4' into 'release/v5.4'
wmy-espressif Nov 14, 2025
7168e29
fix(esp_system): fix XTAL32K power breaks ADC function on 32k XTAL cl…
esp-wzh Nov 10, 2025
90a83ba
Merge branch 'feat/p4_rev3_isp_blc_v5.4' into 'release/v5.4'
suda-morris Nov 14, 2025
fa8b875
feat(isp): support AWB driver setting wbgain and subwindow feature
Icarus113 Sep 15, 2025
90176b9
change(isp): make wbg standalone
Icarus113 Oct 27, 2025
9b479e7
fix(isp): use atomic fsm check
Icarus113 Oct 27, 2025
d764c40
test(usj): Fix usj test
mythbuster5 Oct 28, 2025
b6fcb78
fix(esp_hw_support): add dependency of the TOP domain to the RTC_PERI…
esp-wzh Nov 12, 2025
2e20edc
Merge branch 'bugfix/ndp_wait_events_issue_v5.4' into 'release/v5.4'
Nov 14, 2025
b63b422
fix(esp_driver_usb_serial_jtag): check USJ accessibility before read/…
esp-wzh Oct 13, 2025
38ea06b
test(esp_pm): add test case for USJ printing performance during wake-up
esp-wzh Oct 13, 2025
5d1bfef
Merge branch 'bugfix/oob_in_bta_dm_sdp_result_v5.4' into 'release/v5.4'
wmy-espressif Nov 14, 2025
5b576f9
fix(gpio): fix USB DP pin unusable after CPU reset for S3/C3
songruo Sep 2, 2025
4495803
Merge branch 'bugfix/cleanup_ctr_drbg_v5.4' into 'release/v5.4'
kapilkedawat Nov 15, 2025
35332ce
Merge branch 'bugfix/bluetooth_chan_map_error_v5.4' into 'release/v5.4'
wmy-espressif Nov 17, 2025
3bb766f
feat(psram): support 250MHz in experimental
Icarus113 Jul 12, 2024
803ea77
Merge branch 'feat/p4_rev3_isp_awb_wbg_v5.4' into 'release/v5.4'
suda-morris Nov 17, 2025
499edb4
fix(nvs_sec_provider): Emit warning when `nvs_keys` partition is missing
klew Nov 13, 2025
ff195a9
feat(isp): added shadow reg settings
Icarus113 Oct 17, 2025
85f3055
feat(phy): ESP32-C5 ECO2/ECO3 coex and ESP32-C6 track reset
Nov 17, 2025
fcafa0d
test(ulp): added larger delay in ULP FSM I_WR_REG instruction test
ESP-Marius Nov 17, 2025
b3721ca
feat(pcnt,mcpwm,rmt): update struct on p4 eco5
Kainarx Aug 27, 2025
5790912
change(ble): [AUTO_MR] Update lib_esp32c2 to 27b6e1dc
Nov 7, 2025
a7fafa4
change(ble): [AUTO_MR] updated rom linker script for ESP32-C2
Nov 5, 2025
ba9c554
change(ble): [AUTO_MR] Update lib_esp32h2 to b6027aeb
Nov 7, 2025
bb18bed
change(ble): [AUTO_MR] Update lib_esp32c6 to b6027aeb
Nov 7, 2025
a6090c3
feat: rename ble sleep related apt on ESP32-C6
zhaoweiliang2021 Nov 7, 2025
db05954
feat: rename ble sleep related apt on ESP32-H2
zhaoweiliang2021 Nov 7, 2025
9b8eb10
feat(ble): add peripheral fast rx data in latency config on ESP32-C6
zhaoweiliang2021 Nov 7, 2025
e30a46e
Merge branch 'ci/ulp_fsm_i_wr_reg_v5.4' into 'release/v5.4'
ESP-Marius Nov 18, 2025
25270ca
change(psram): use 200M as default
Icarus113 Nov 17, 2025
1c3a4aa
feat(gpio): add IO hold support for Deep-sleep for ESP32-P4 ECO5
songruo Nov 5, 2025
b9819b3
fix(clk): add compile warning if 400MHz CPU freq is used on ESP32P4 l…
songruo Nov 11, 2025
0bd10e1
feat(gpio): ESP32P4 ECO5 GPIO related update
songruo Nov 12, 2025
f322fb5
change(g0): use hw_ver3 to build g0 components test app
Icarus113 Sep 23, 2025
60353c5
Merge branch 'feat/isp_shadow_reg_v5.4' into 'release/v5.4'
suda-morris Nov 18, 2025
a0e8f64
Merge branch 'feat/update_mbedtls_3.6.5_v5.4' into 'release/v5.4'
mahavirj Nov 18, 2025
ed72d9e
Merge branch 'contrib/github_pr_17710_v5.4' into 'release/v5.4'
mahavirj Nov 18, 2025
bd11845
Merge branch 'opt/opt_ble_log_v5.4' into 'release/v5.4'
Isl2017 Nov 18, 2025
08ca62b
feat(esp_hw_support): add gpio reset workaround in esp32h21 & esp32h4
hbler99 Oct 11, 2025
530bbbc
fix(openthread): resolve deadlock issues due to switching_lock
tanyanquan Nov 18, 2025
1e975c6
Merge branch 'feature/esp32p4_eco5_support_v5.4' into 'release/v5.4'
suda-morris Nov 18, 2025
b7a58b3
fix(esp_lcd): Issue where M5Stack CoreS3 uses GPIO 35 for MISO and LC…
jboynes Nov 12, 2025
4b38cbd
Merge branch 'fix/mipi_dsi_phy_clk_type_v5.4' into 'release/v5.4'
suda-morris Nov 18, 2025
0e37b46
Merge branch 'fix/fix_some_deadlock_issue_v5.4' into 'release/v5.4'
chshu Nov 19, 2025
ba3bb38
Merge branch 'feat/p4_eco5_pcnt_v5.4' into 'release/v5.4'
suda-morris Nov 19, 2025
6b1630b
Merge branch 'contrib/github_pr_17858_v5.4' into 'release/v5.4'
suda-morris Nov 19, 2025
7cfda34
Merge branch 'feat/psram_250m_p4_v5.4' into 'release/v5.4'
suda-morris Nov 19, 2025
7f11b39
Merge branch 'bugfix/usb_dp_pin_unusable_after_cpu_reset_v5.4' into '…
suda-morris Nov 19, 2025
14dd2d2
Merge branch 'feature/esp32p4_eco5_io_hold_v5.4' into 'release/v5.4'
suda-morris Nov 19, 2025
886b372
Merge branch 'change/ble_update_lib_20251106_v5.4' into 'release/v5.4'
Isl2017 Nov 19, 2025
9acf55f
Merge branch 'feat/phy_lib_update_c5eco3_coex_v5.4' into 'release/v5.4'
Nov 20, 2025
b8af6f5
Merge branch 'fix/bridge_example_v5.4' into 'release/v5.4'
euripedesrocha Nov 20, 2025
ef96b53
fix(esp_hw_support): fix flash cs unhold during sleep when pd top in …
hbler99 Nov 20, 2025
ec76ac2
refactor(tools): test_idf_tools.py ruff changes
mfialaf Nov 19, 2025
aebec71
feat(tools): Updated ccache 4.11.2 -> 4.12.1
mfialaf Nov 19, 2025
0598576
fix(esp_netif): Remove doxygen groups as esp-docs is flat docs style
david-cermak Jul 24, 2025
ba3d150
Merge branch 'test/usj_test_v5.4' into 'release/v5.4'
suda-morris Nov 21, 2025
65b7c19
Merge branch 'fix/esp_netif_docs_v5.4' into 'release/v5.4'
Nov 21, 2025
b50852d
fix(ble/bluedroid): Fixed GATT response timeout setting
esp-cjh Oct 27, 2025
adb4cab
feat(ble/bluedroid): Add more debug log for bluedroid
esp-cjh Sep 4, 2025
81bd945
fix(bt/bluedroid): Fixed memory debug error
esp-cjh Sep 16, 2025
25424ba
fix(bt/example): Fixed hf_ag build error
Finney-esp Nov 7, 2025
c7d1f8b
feat(bt): Adds an SPP API parameter to indicate whether to create SPP…
xiongweichao Nov 18, 2025
f8d97f6
fix(ble/bluedroid): Fixed BLE incorrect device record count issue
esp-zhp Nov 21, 2025
4d09368
fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECO…
Finney-esp Nov 17, 2025
354e6c1
fix(ble/bluedroid): Fixed missing BLE connect and disconnect events
esp-zhp Nov 21, 2025
c2bc31a
fix(uart): fix release pin logic if switching only one pin
songruo Jun 24, 2025
9b3dd6f
fix(light_sleep/example): fix potential compilation error in light_sl…
songruo Jun 24, 2025
aef9061
fix(console): release default console UART pins if console is switche…
songruo Jul 14, 2025
f7d0b03
ci: pytest-ignore skip using dut id
Nov 24, 2025
25b783c
Merge branch 'feat/add_param_indicate_create_spp_records_v5.4' into '…
wmy-espressif Nov 24, 2025
0d7c665
fix(uart): correct uart_get_tx_buffer_free_size calculation
songruo Oct 17, 2025
e1eceef
fix(uart): fix some uart port generate a RX BRK_DET intr on reset issue
songruo Nov 3, 2025
7bb3b13
fix(uart): fix RTC wdt get triggered due to uart sclk not exist on C5
songruo Nov 22, 2025
222d819
fix(gpio): oe control by register only take effect when func sel is GPIO
songruo Nov 11, 2025
d5c0ab7
refactor(ppa): avoid the use of yuv422_pack_order field in PPA driver
songruo Nov 22, 2025
9cfbb27
Merge branch 'bugfix/bt_idf_ci_v5.4' into 'release/v5.4'
wmy-espressif Nov 24, 2025
d1e14a0
Merge branch 'feat/update_ccache_to_4.12.1_v5.4' into 'release/v5.4'
dobairoland Nov 24, 2025
500e550
fix(bt): Update esp32 libbtdm_app.a (15a18b1a)
esp-zhp Nov 25, 2025
74d2a5f
fix(openthread): remove the duplicate macro definition
gytxxsy Nov 20, 2025
2103e58
feat(openthread): Use PSRAM by default for OpenThread message buffers…
gytxxsy Nov 19, 2025
9c85cf5
Merge branch 'ci/known-failure-dut-id-v5.4' into 'release/v5.4'
hfudev Nov 25, 2025
5e45ef9
Merge branch 'feature/change_ot_psram_default_config_v5.4' into 'rele…
chshu Nov 26, 2025
d60a590
Merge branch 'fix/remove_the_duplicate_macro_definition_v5.4' into 'r…
chshu Nov 26, 2025
871a406
feat(openthread): optimize fail cases in CI test
Nov 21, 2025
2e37621
feat(nimble): Add support for HCI commands / events
rahult-github Sep 25, 2025
149caed
Merge branch 'feat/support_bhost2025_44_v5.4' into 'release/v5.4'
Isl2017 Nov 26, 2025
c3e6c31
Merge branch 'feat/read_all_local_remote_sup_feat_v5.4' into 'release…
rahult-github Nov 27, 2025
14fdfcd
Merge branch 'bugfix/uart_related_backports_v5.4' into 'release/v5.4'
suda-morris Nov 27, 2025
6d8a856
Merge branch 'bugfix/update_thread_ci_testcases_v5.4' into 'release/v…
chshu Nov 27, 2025
284c66b
ci(parlio): fixed incorrect condition in rx test case
L-KAYA Oct 28, 2025
f42b153
fix(i2s): fixed divide-by-zero coverity issue
L-KAYA Nov 3, 2025
2798c89
Merge branch 'bugfix/bug_ble_max_device_record_v5.4' into 'release/v5.4'
Isl2017 Nov 27, 2025
3aec1ac
Merge branch 'bugfix/fix_ble_scan_enable_timeout_v5.4' into 'release/…
Isl2017 Nov 28, 2025
e3a34f5
docs: fix some description in security guide docs
Sep 22, 2025
a4e05f4
fix : apply the suggestion from doc team
Sep 22, 2025
7514c17
docs: implement comments
0cici Nov 27, 2025
e219422
fix(i2s): fix the auto port failure when use simplex on ESP32
L-KAYA Nov 25, 2025
04a6e32
fix(ble_mesh): add proper memory cleanup in composition data parsing
forx157 Nov 28, 2025
495ecf6
Merge branch 'docs/fix_some_expressions_in_security_guide_v5.4' into …
AdityaHPatwardhan Nov 28, 2025
9ec28bd
refactor(ble): modularize compressed log scripts for better maintaina…
forx157 Nov 20, 2025
9da15cf
fix(app_trace): prevent possible system crash on uart buffer access
erhankur Nov 28, 2025
d2fa261
Merge branch 'feat/ble_log_compression_modularized_v5.4' into 'releas…
Isl2017 Dec 1, 2025
d0d43c2
Merge branch 'fix/ble_mesh_rpr_example_fix_v5.4' into 'release/v5.4'
Isl2017 Dec 1, 2025
1e73ebc
Merge branch 'backport/recent_backport_collection_v5.4' into 'release…
suda-morris Dec 1, 2025
5917afa
fix(ble): put ble_log_write_hex in iram to avoid cache error
Dec 1, 2025
9405cb9
feat(ble): enabled lc get time for ceva controller
Dec 1, 2025
2347864
fix(bt/controller): Fixed hci connection request event filter bug
boblane1 Nov 28, 2025
2aa83b1
fix(wifi): fix issue that disarm send wake null timer donot take effect
Nov 6, 2025
01c2690
fix(wifi): Added scan stop when user call smartconfig stop
zhangyanjiaoesp Dec 1, 2025
8b1c9bb
feat(ble_mesh): Miscellaneous update for BLE Mesh
Aug 27, 2025
7be59c2
feat(ble_mesh): Miscellaneous log enhancement for BLE Mesh
Aug 26, 2025
3240e46
feat(ble_mesh): Miscellaneous log enhancement for Provisioning
forx157 Sep 1, 2025
ae93cc0
fix(ble_mesh): fixed issues with incorrect logs format and position
RainerSeventeen Sep 3, 2025
f3a47cc
fix(ble_mesh): resolve miscellaneous logging issues
forx157 Sep 9, 2025
3a527b6
Merge branch 'bugfix/lwip_stack_in_psram_limitation_v5.4' into 'relea…
AdityaHPatwardhan Dec 1, 2025
6a04f83
Merge branch 'fix/apptrace_uart_crash_v5.4' into 'release/v5.4'
gerekon Dec 1, 2025
4b45046
fix(bt): fixed crash caused by deinit during A2DP connection initiation
xiongweichao Nov 20, 2025
02240b1
Merge branch 'bugfix/fix_event_filter_bug_v5.4' into 'release/v5.4'
wmy-espressif Dec 2, 2025
b252464
Merge branch 'bugfix/a2dp_deinit_crash_v5.4' into 'release/v5.4'
wmy-espressif Dec 2, 2025
9186459
Merge branch 'feat/ble_mesh_log_enh_v5.4' into 'release/v5.4'
Isl2017 Dec 2, 2025
38bd707
Merge branch 'fix/ble_log_v2_cache_error_v5.4' into 'release/v5.4'
Isl2017 Dec 2, 2025
bd4f4a8
fix(sdmmc): Deinitialize only initialized slots (sdmmc_host_deinit fu…
adokitkat Dec 2, 2025
07a7951
Merge branch 'fix/sdmmc_deinit_only_inited_slots_v5.4' into 'release/…
pacucha42 Dec 2, 2025
0b5e532
ci: rename wifi_two_dut to two_duts
ydhub Dec 3, 2025
48483fd
ci: fix sdkconfig.ci.xxx for wifi examples
ydhub Nov 12, 2025
4febfa7
Merge branch 'fix/check_usj_status_before_access_v5.4' into 'release/…
Dec 3, 2025
e7759b9
Merge branch 'fix/fix_c6_rtc_periph_depends_on_top_v5.4' into 'releas…
Dec 3, 2025
eb64ef2
Merge branch 'fix/fix_xtal32k_power_breaks_adc_v5.4' into 'release/v5.4'
Dec 3, 2025
f17f6ae
feat(usb_host): Add power and clock gating LL, HAL
peter-marcisovsky Oct 21, 2025
daf1988
Merge branch 'ci/fix_wifi_cases_5.4' into 'release/v5.4'
Dec 5, 2025
7df3a80
Merge branch 'feat/set_pull_mode_of_coex_input_pin_v5.4' into 'releas…
Dec 5, 2025
ff28876
Merge branch 'bugfix/esp_idf_h2_flash_cs_hold_v5.4' into 'release/v5.4'
Dec 5, 2025
773d81d
Merge branch 'feat/esp_idf_feat_gpioworkaround_v5.4' into 'release/v5.4'
Dec 5, 2025
55ddae9
Merge branch 'bugfix/add_scan_stop_when_smartconfig_stop_v5.4' into '…
Dec 5, 2025
e095674
bugfix(wifi): Set the dialog token of last FTM resp to zero
Nov 25, 2025
0567ef5
feat(ble/nimble): support runtime allocation for mempool
esp-cjh Oct 28, 2025
7dd41a7
fix(nimble): Add a check for psync before processing
rahult-github Oct 6, 2025
43076f1
Merge branch 'bugfix/check_psync_status_v5.4' into 'release/v5.4'
rahult-github Dec 6, 2025
17e850f
fix(nimble): Add change to cancel sync in case of reattempt
rahult-github Dec 2, 2025
87b889a
Merge branch 'bugfix/ftm_last_dial_tok_v5.4' into 'release/v5.4'
Dec 8, 2025
0296849
Merge branch 'feat/usb_host_pwr_clk_gating_ll_backport_5.4' into 'rel…
suda-morris Dec 8, 2025
0b17bbd
Merge branch 'bugfix/fix_reattempt_sync_estab_v5.4' into 'release/v5.4'
rahult-github Dec 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 4 additions & 5 deletions components/app_trace/port/port_uart.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2017-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -288,10 +288,9 @@ static esp_err_t esp_apptrace_uart_up_buffer_put(esp_apptrace_uart_data_t *hw_da

static void esp_apptrace_uart_down_buffer_config(esp_apptrace_uart_data_t *hw_data, uint8_t *buf, uint32_t size)
{
hw_data->down_buffer = (uint8_t *)malloc(size);
if (hw_data->down_buffer == NULL){
assert(false && "Failed to allocate apptrace uart down buffer!");
}
assert(buf != NULL && "Down buffer cannot be NULL");

hw_data->down_buffer = buf;
hw_data->down_buffer_size = size;
}

Expand Down
27 changes: 22 additions & 5 deletions components/bootloader_support/src/bootloader_console.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -10,7 +10,6 @@
#include "soc/uart_periph.h"
#include "soc/uart_channel.h"
#include "soc/io_mux_reg.h"
#include "soc/gpio_periph.h"
#include "soc/gpio_sig_map.h"
#include "soc/rtc.h"
#include "hal/gpio_ll.h"
Expand All @@ -26,9 +25,21 @@
#include "esp_rom_sys.h"
#include "esp_rom_caps.h"

static void __attribute__((unused)) release_default_console_io(void)
{
// Default console is UART0 with TX and RX on their IOMUX pins
gpio_ll_output_disable(&GPIO, UART_NUM_0_TXD_DIRECT_GPIO_NUM);
gpio_ll_func_sel(&GPIO, U0TXD_GPIO_NUM, PIN_FUNC_GPIO); // Set TX pin to GPIO function to truly disable output
esp_rom_gpio_connect_in_signal(GPIO_MATRIX_CONST_ONE_INPUT, UART_PERIPH_SIGNAL(UART_NUM_0, SOC_UART_RX_PIN_IDX), 0);
}

#ifdef CONFIG_ESP_CONSOLE_NONE
void bootloader_console_init(void)
{
// Wait for UART FIFO to be empty.
esp_rom_output_tx_wait_idle(0);
release_default_console_io();

esp_rom_install_channel_putc(1, NULL);
esp_rom_install_channel_putc(2, NULL);
}
Expand Down Expand Up @@ -59,9 +70,7 @@ void bootloader_console_init(void)
if (uart_num != 0 ||
uart_tx_gpio != UART_NUM_0_TXD_DIRECT_GPIO_NUM ||
uart_rx_gpio != UART_NUM_0_RXD_DIRECT_GPIO_NUM) {
// Change default UART pins back to GPIOs
gpio_ll_func_sel(&GPIO, UART_NUM_0_RXD_DIRECT_GPIO_NUM, PIN_FUNC_GPIO);
gpio_ll_func_sel(&GPIO, UART_NUM_0_TXD_DIRECT_GPIO_NUM, PIN_FUNC_GPIO);
release_default_console_io();
// Route GPIO signals to/from pins
const uint32_t tx_idx = UART_PERIPH_SIGNAL(uart_num, SOC_UART_TX_PIN_IDX);
const uint32_t rx_idx = UART_PERIPH_SIGNAL(uart_num, SOC_UART_RX_PIN_IDX);
Expand Down Expand Up @@ -101,6 +110,10 @@ static char s_usb_cdc_buf[ESP_ROM_CDC_ACM_WORK_BUF_MIN];

void bootloader_console_init(void)
{
// Wait for UART FIFO to be empty.
esp_rom_output_tx_wait_idle(0);
release_default_console_io();

#ifdef CONFIG_IDF_TARGET_ESP32S2
/* ESP32-S2 specific patch to set the correct serial number in the descriptor.
* Later chips don't need this.
Expand All @@ -120,6 +133,10 @@ void bootloader_console_init(void)
#ifdef CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
void bootloader_console_init(void)
{
// Wait for UART FIFO to be empty.
esp_rom_output_tx_wait_idle(0);
release_default_console_io();

esp_rom_output_switch_buffer(ESP_ROM_USB_SERIAL_DEVICE_NUM);

/* Switch console channel to avoid output on UART and allow */
Expand Down
8 changes: 3 additions & 5 deletions components/bt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -616,19 +616,17 @@ if(CONFIG_BT_ENABLED)
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_sar_model.c"
"esp_ble_mesh/v1.1/btc/btc_ble_mesh_srpl_model.c"
"esp_ble_mesh/lib/ext.c")

if(CONFIG_BLE_MESH_SAR_ENHANCEMENT)
list(APPEND srcs "esp_ble_mesh/core/transport.enh.c")
else()
list(APPEND srcs "esp_ble_mesh/core/transport.c")
endif()
else()
list(APPEND srcs
"esp_ble_mesh/core/transport.c")
list(APPEND srcs "esp_ble_mesh/core/transport.c")
endif()
endif()



if(CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT)
list(APPEND srcs
"porting/npl/freertos/src/npl_os_freertos.c"
Expand Down Expand Up @@ -935,7 +933,7 @@ set(bt_priv_requires
)

if(CONFIG_BLE_COMPRESSED_LOG_ENABLE)
set(BT_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
set(CODE_BASE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
# When log compression is enabled, selected logs are replaced
# by auto-generated macros that emit pre-encoded data.
# This eliminates the original format strings, reducing firmware size and
Expand Down
2 changes: 2 additions & 0 deletions components/bt/common/ble_log/Kconfig.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ config BLE_LOG_ENABLED
if BLE_LOG_ENABLED
config BLE_LOG_TASK_STACK_SIZE
int "Stack size for BLE Log Task"
default 1024 if IDF_TARGET_ARCH_RISCV
default 2048 if IDF_TARGET_ARCH_XTENSA
default 1024
help
Stack size for BLE Log Task
Expand Down
7 changes: 7 additions & 0 deletions components/bt/common/ble_log/ble_log_spi_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@
#define SPI_OUT_LOG_STR_BUF_SIZE (100)
#define SPI_OUT_MALLOC(size) heap_caps_malloc(size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)
#define SPI_OUT_TASK_PRIORITY (ESP_TASK_PRIO_MAX - 1)

#if CONFIG_IDF_TARGET_ARCH_RISCV
#define SPI_OUT_TASK_STACK_SIZE (1024)
#elif CONFIG_IDF_TARGET_ARCH_XTENSA
#define SPI_OUT_TASK_STACK_SIZE (2048)
#else
static_assert(false, "BLE Log SPI Out: Unsupported target architecture");
#endif /* CONFIG_IDF_TARGET_ARCH_RISCV */

#if SPI_OUT_TS_SYNC_ENABLED
#define SPI_OUT_TS_SYNC_TIMEOUT_MS (1000)
Expand Down
105 changes: 79 additions & 26 deletions components/bt/common/ble_log/extension/log_compression/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

set(LOG_COMPRESSED_MODULE "")
set(LOG_COMPRESSED_MODULE_CODE_PATH "")
set(BT_ROOT_PATH $ENV{IDF_PATH}/components/bt)
set(LOG_COMPRESSED_SRCS_DIR "${CMAKE_BINARY_DIR}/ble_log/.compressed_srcs")

# default config value for ble mesh module
Expand All @@ -17,32 +17,62 @@ set(BLE_HOST_TAGS_PRESERVE "")

if(CONFIG_BLE_MESH_COMPRESSED_LOG_ENABLE)
list(APPEND LOG_COMPRESSED_MODULE "BLE_MESH")
if(NOT EXISTS "${CMAKE_BINARY_DIR}/ble_log/include/mesh_log_index.h")
file(WRITE "${CMAKE_BINARY_DIR}/ble_log/include/mesh_log_index.h" "")
endif()
list(APPEND LOG_COMPRESSED_MODULE_CODE_PATH "esp_ble_mesh")

# update config file
set(BLE_MESH_CODE_PATH "esp_ble_mesh")
set(BLE_MESH_LOG_INDEX_HEADER "mesh_log_index.h")
set(BLE_MESH_LOG_SCRIPT_PATH
"${CMAKE_CURRENT_LIST_DIR}/scripts/module_scripts/ble_mesh/make_mesh_log_macro.py")
# update BLE_MESH_TAGS and BLE_MESH_TAGS_PRESERVE
include(${CMAKE_CURRENT_LIST_DIR}/cmake/ble_mesh_log_tags.cmake)

if(NOT EXISTS "${CMAKE_BINARY_DIR}/ble_log/include/${BLE_MESH_LOG_INDEX_HEADER}")
file(WRITE "${CMAKE_BINARY_DIR}/ble_log/include/${BLE_MESH_LOG_INDEX_HEADER}" "")
endif()
list(APPEND LOG_COMPRESSED_MODULE_CODE_PATH ${BLE_MESH_CODE_PATH})
endif()

if(CONFIG_BLE_HOST_COMPRESSED_LOG_ENABLE AND CONFIG_BT_BLUEDROID_ENABLED)
list(APPEND LOG_COMPRESSED_MODULE "BLE_HOST")
list(APPEND LOG_COMPRESSED_MODULE_CODE_PATH "host/bluedroid/stack")
if(NOT EXISTS "${CMAKE_BINARY_DIR}/ble_log/include/host_log_index.h")
file(WRITE "${CMAKE_BINARY_DIR}/ble_log/include/host_log_index.h" "")
endif()

# update config file
set(HOST_CODE_PATH "host/bluedroid/stack")
set(HOST_LOG_INDEX_HEADER "host_log_index.h")
set(BLE_HOST_LOG_SCRIPT_PATH
"${CMAKE_CURRENT_LIST_DIR}/scripts/module_scripts/bluedroid/make_bluedroid_log_macro.py")

include(${CMAKE_CURRENT_LIST_DIR}/cmake/ble_host_bluedroid_tags.cmake)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/ble_log/include/${HOST_LOG_INDEX_HEADER}")
file(WRITE "${CMAKE_BINARY_DIR}/ble_log/include/${HOST_LOG_INDEX_HEADER}" "")
endif()
list(APPEND LOG_COMPRESSED_MODULE_CODE_PATH ${HOST_CODE_PATH})
endif()

if(BLE_COMPRESSED_LIB_LOG_BUILD)
if(NOT (BLE_COMPRESSED_LIB_NAME AND BLE_COMPRESSED_LIB_CODE_DIR AND BLE_COMPRESSED_LIB_LOG_TAGS))
message(FATAL_ERROR "Invalid settings")
else()
message("Building compressed log for ${BLE_COMPRESSED_LIB_NAME}")
endif()
list(APPEND LOG_COMPRESSED_MODULE ${BLE_COMPRESSED_LIB_NAME})
if(NOT EXISTS "${CMAKE_BINARY_DIR}/ble_log/include/${BLE_COMPRESSED_LIB_LOG_INDEX_HEADER}")
file(WRITE "${CMAKE_BINARY_DIR}/ble_log/include/${BLE_COMPRESSED_LIB_LOG_INDEX_HEADER}" "")
endif()
list(APPEND LOG_COMPRESSED_MODULE_CODE_PATH ${BLE_COMPRESSED_LIB_CODE_DIR})

string(REPLACE ";" "," BLE_COMPRESSED_LIB_CODE_DIR "${BLE_COMPRESSED_LIB_CODE_DIR}")
string(REPLACE ";" "," BLE_COMPRESSED_LIB_LOG_TAGS "${BLE_COMPRESSED_LIB_LOG_TAGS}")
string(REPLACE ";" "," BLE_COMPRESSED_LIB_LOG_TAGS_PRESERVE "${BLE_COMPRESSED_LIB_LOG_TAGS_PRESERVE}")
else()
set(BLE_COMPRESSED_LIB_NAME "placeholder")
endif()


if(LOG_COMPRESSED_MODULE)
list(APPEND srcs "common/ble_log/extension/log_compression/ble_log_compression.c")
list(APPEND include_dirs "${CMAKE_BINARY_DIR}/ble_log/include")
# When building the library, ble_log_compression.c and its dependencies are not needed
if(NOT BLE_COMPRESSED_LIB_LOG_BUILD)
list(APPEND srcs "common/ble_log/extension/log_compression/ble_log_compression.c")
list(APPEND include_dirs "${CMAKE_BINARY_DIR}/ble_log/include")
endif()
if(NOT CMAKE_VERSION VERSION_LESS 3.15.0)
set(Python3_FIND_STRATEGY LOCATION)
find_package(Python3 COMPONENTS Interpreter)
Expand Down Expand Up @@ -111,19 +141,39 @@ if(LOG_COMPRESSED_MODULE)
"host/nimble/nimble/nimble/host/store/config/src")
endif()

add_custom_target(ble_log_compression ALL
COMMAND ${BLE_PYTHON_EXECUTABLE} ${PYTHON_SCRIPT}
compress
--compressed_srcs_path "${LOG_COMPRESSED_SRCS_DIR}"
--build_path "${CMAKE_BINARY_DIR}"
--module "'${LOG_COMPRESSED_MODULE}'"
--bt_path "${BT_ROOT_PATH}"
--srcs "'${compressed_srcs}'"
DEPENDS ${compressed_srcs_with_abs_path} ${PYTHON_SCRIPT}
COMMENT "Log compression is being performed, please wait..."
WORKING_DIRECTORY ${BT_ROOT_PATH}
USES_TERMINAL
)
if(BLE_COMPRESSED_LIB_LOG_BUILD)
execute_process(COMMAND ${BLE_PYTHON_EXECUTABLE} ${PYTHON_SCRIPT}
compress
--compressed_srcs_path "${LOG_COMPRESSED_SRCS_DIR}"
--build_path "${CMAKE_BINARY_DIR}"
--module "${LOG_COMPRESSED_MODULE}"
--code_base_path "${CODE_BASE_PATH}"
--srcs "${compressed_srcs}"
RESULT_VARIABLE result
OUTPUT_VARIABLE out
ERROR_VARIABLE err)
if(NOT ${result} EQUAL 0)
message(WARNING "${err}")
message(WARNING "Exit this log compression due to failure of compression")
set(LOG_COMPRESS_INCLUDE_DIRS ${include_dirs} PARENT_SCOPE)
set(LOG_COMPRESSION_TARGET "" PARENT_SCOPE)
return()
endif()
else()
add_custom_target(ble_log_compression ALL
COMMAND ${BLE_PYTHON_EXECUTABLE} ${PYTHON_SCRIPT}
compress
--compressed_srcs_path "${LOG_COMPRESSED_SRCS_DIR}"
--build_path "${CMAKE_BINARY_DIR}"
--module "'${LOG_COMPRESSED_MODULE}'"
--code_base_path "${CODE_BASE_PATH}"
--srcs "'${compressed_srcs}'"
DEPENDS ${compressed_srcs_with_abs_path} ${PYTHON_SCRIPT}
COMMENT "Log compression is being performed, please wait..."
WORKING_DIRECTORY ${BT_ROOT_PATH}
USES_TERMINAL
)
endif()

function(add_flags_if_in_list file file_list compile_flags)
set(PROCESSED OFF PARENT_SCOPE)
Expand Down Expand Up @@ -190,7 +240,10 @@ if(LOG_COMPRESSED_MODULE)
set(LOG_COMPRESSION_TARGET ble_log_compression PARENT_SCOPE)
# set(LOG_COMPRESSION_TARGET "" PARENT_SCOPE)
set(LOG_COMPRESS_SRCS "${compressed_srcs_with_abs_path};${uncompressed_srcs}" PARENT_SCOPE)
list(APPEND include_dirs "common/ble_log/extension/log_compression/include")
if(NOT BLE_COMPRESSED_LIB_LOG_BUILD)
list(APPEND include_dirs "common/ble_log/extension/log_compression/include")
endif()
list(APPEND include_dirs "${CMAKE_BINARY_DIR}/ble_log/include")
set(LOG_COMPRESS_INCLUDE_DIRS ${include_dirs} PARENT_SCOPE)
else()
set(LOG_COMPRESSION_TARGET "" PARENT_SCOPE)
Expand Down
Loading
Loading