Skip to content

Commit

Permalink
fix(startup): fixed failing to boot if rom log ctrl efuse was burned
Browse files Browse the repository at this point in the history
Closes #12894
  • Loading branch information
ESP-Marius committed Jan 3, 2024
1 parent 0c99a58 commit 53682ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/esp_system/startup_funcs.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -248,7 +248,12 @@ ESP_SYSTEM_INIT_FN(init_secure, CORE, BIT(0), 150)
#ifdef ROM_LOG_MODE
ESP_SYSTEM_INIT_FN(init_rom_log, CORE, BIT(0), 160)
{
if(ets_efuse_get_uart_print_control() == ROM_LOG_MODE) {
return ESP_OK;
}

esp_err_t err = esp_efuse_set_rom_log_scheme(ROM_LOG_MODE);

if (err == ESP_ERR_NOT_SUPPORTED) {
err = ESP_OK;
}
Expand Down

0 comments on commit 53682ed

Please sign in to comment.