mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
esp32: Add KConfig option to disable ROM Console fallback on first boot
This commit is contained in:

committed by
Angus Gratton

parent
881aa43b69
commit
1e22bcdfde
@@ -604,6 +604,18 @@ config ESP32_XTAL_FREQ
|
||||
default 40 if ESP32_XTAL_FREQ_40
|
||||
default 26 if ESP32_XTAL_FREQ_26
|
||||
|
||||
config DISABLE_BASIC_ROM_CONSOLE
|
||||
bool "Permanently disable BASIC ROM Console"
|
||||
default n
|
||||
help
|
||||
If set, the first time the app boots it will disable the BASIC ROM Console
|
||||
permanently (by burning an efuse).
|
||||
|
||||
Otherwise, the BASIC ROM Console starts on reset if no valid bootloader is
|
||||
read from the flash.
|
||||
|
||||
(Enabling secure boot also disables the BASIC ROM Console by default.)
|
||||
|
||||
config NO_BLOBS
|
||||
bool "No Binary Blobs"
|
||||
depends on !BT_ENABLED
|
||||
@@ -624,7 +636,7 @@ config ESP_TIMER_PROFILING
|
||||
used for timer storage, and should only be used for debugging/testing
|
||||
purposes.
|
||||
|
||||
endmenu
|
||||
endmenu # ESP32-Specific
|
||||
|
||||
menu Wi-Fi
|
||||
|
||||
@@ -748,10 +760,10 @@ config ESP32_WIFI_NVS_ENABLED
|
||||
help
|
||||
Select this option to enable WiFi NVS flash
|
||||
|
||||
endmenu
|
||||
endmenu # Wi-Fi
|
||||
|
||||
menu Phy
|
||||
|
||||
|
||||
config ESP32_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
bool "Do phy calibration and store calibration data in NVS"
|
||||
default y
|
||||
@@ -790,4 +802,4 @@ config ESP32_PHY_MAX_TX_POWER
|
||||
int
|
||||
default ESP32_PHY_MAX_WIFI_TX_POWER
|
||||
|
||||
endmenu
|
||||
endmenu # PHY
|
||||
|
@@ -62,6 +62,7 @@
|
||||
#include "esp_panic.h"
|
||||
#include "esp_core_dump.h"
|
||||
#include "esp_app_trace.h"
|
||||
#include "esp_efuse.h"
|
||||
#include "esp_clk.h"
|
||||
#include "esp_timer.h"
|
||||
#include "trax.h"
|
||||
@@ -244,6 +245,9 @@ void start_cpu0_default(void)
|
||||
#endif
|
||||
#if CONFIG_BROWNOUT_DET
|
||||
esp_brownout_init();
|
||||
#endif
|
||||
#if CONFIG_DISABLE_BASIC_ROM_CONSOLE
|
||||
esp_efuse_disable_basic_rom_console();
|
||||
#endif
|
||||
rtc_gpio_force_hold_dis_all();
|
||||
esp_vfs_dev_uart_register();
|
||||
|
Reference in New Issue
Block a user