File tree Expand file tree Collapse file tree 7 files changed +32
-2
lines changed
esp_hw_support/port/esp32c5 Expand file tree Collapse file tree 7 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ uint32_t get_act_hp_dbias(void)
439
439
hp_cali_dbias = 31 ;
440
440
}
441
441
} else {
442
- ESP_HW_LOGW (TAG , "hp_cali_dbias not burnt in efuse, use default." );
442
+ ESP_HW_LOGD (TAG , "hp_cali_dbias not burnt in efuse, use default." );
443
443
}
444
444
return hp_cali_dbias ;
445
445
}
@@ -463,7 +463,7 @@ uint32_t get_act_lp_dbias(void)
463
463
lp_cali_dbias = 31 ;
464
464
}
465
465
} else {
466
- ESP_HW_LOGW (TAG , "hp_cali_dbias not burnt in efuse, use default." );
466
+ ESP_HW_LOGD (TAG , "lp_cali_dbias not burnt in efuse, use default." );
467
467
}
468
468
469
469
return lp_cali_dbias ;
Original file line number Diff line number Diff line change 22
22
#include "soc/rtc_periph.h"
23
23
#include "soc/uart_reg.h"
24
24
#include "hal/wdt_hal.h"
25
+ #include "hal/uart_ll.h"
25
26
#if SOC_MODEM_CLOCK_SUPPORTED
26
27
#include "hal/modem_syscon_ll.h"
27
28
#include "hal/modem_lpcon_ll.h"
@@ -82,6 +83,10 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void)
82
83
CLEAR_PERI_REG_MASK (PCR_RSA_CONF_REG , PCR_RSA_RST_EN );
83
84
SET_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
84
85
CLEAR_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
86
+
87
+ // UART's sclk is controlled in the PCR register and does not reset with the UART module. The ROM missed enabling
88
+ // it when initializing the ROM UART. If it is not turned on, it will trigger LP_WDT in the ROM.
89
+ uart_ll_sclk_enable (& UART0 );
85
90
}
86
91
87
92
/* "inner" restart function for after RTOS, interrupts & anything else on this
Original file line number Diff line number Diff line change 20
20
#include "esp_private/rtc_clk.h"
21
21
#include "soc/rtc_periph.h"
22
22
#include "soc/uart_reg.h"
23
+ #include "hal/uart_ll.h"
23
24
#include "hal/wdt_hal.h"
24
25
#include "hal/modem_syscon_ll.h"
25
26
#include "hal/modem_lpcon_ll.h"
@@ -75,6 +76,10 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void)
75
76
CLEAR_PERI_REG_MASK (PCR_HMAC_CONF_REG , PCR_HMAC_RST_EN );
76
77
CLEAR_PERI_REG_MASK (PCR_RSA_CONF_REG , PCR_RSA_RST_EN );
77
78
CLEAR_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
79
+
80
+ // UART's sclk is controlled in the PCR register and does not reset with the UART module. The ROM missed enabling
81
+ // it when initializing the ROM UART. If it is not turned on, it will trigger LP_WDT in the ROM.
82
+ uart_ll_sclk_enable (& UART0 );
78
83
}
79
84
80
85
/* "inner" restart function for after RTOS, interrupts & anything else on this
Original file line number Diff line number Diff line change 20
20
#include "esp_private/rtc_clk.h"
21
21
#include "soc/rtc_periph.h"
22
22
#include "soc/uart_reg.h"
23
+ #include "hal/uart_ll.h"
23
24
#include "hal/wdt_hal.h"
24
25
#include "esp_private/cache_err_int.h"
25
26
@@ -82,6 +83,10 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void)
82
83
CLEAR_PERI_REG_MASK (PCR_RSA_CONF_REG , PCR_RSA_RST_EN );
83
84
SET_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
84
85
CLEAR_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
86
+
87
+ // UART's sclk is controlled in the PCR register and does not reset with the UART module. The ROM missed enabling
88
+ // it when initializing the ROM UART. If it is not turned on, it will trigger LP_WDT in the ROM.
89
+ uart_ll_sclk_enable (& UART0 );
85
90
}
86
91
87
92
/* "inner" restart function for after RTOS, interrupts & anything else on this
Original file line number Diff line number Diff line change 23
23
#include "soc/uart_reg.h"
24
24
#include "hal/wdt_hal.h"
25
25
#include "hal/spimem_flash_ll.h"
26
+ #include "hal/uart_ll.h"
26
27
#include "esp_private/cache_err_int.h"
27
28
#include "esp_private/mspi_timing_tuning.h"
28
29
@@ -73,6 +74,10 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void)
73
74
CLEAR_PERI_REG_MASK (PCR_HMAC_CONF_REG , PCR_HMAC_RST_EN );
74
75
CLEAR_PERI_REG_MASK (PCR_RSA_CONF_REG , PCR_RSA_RST_EN );
75
76
CLEAR_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
77
+
78
+ // UART's sclk is controlled in the PCR register and does not reset with the UART module. The ROM missed enabling
79
+ // it when initializing the ROM UART. If it is not turned on, it will trigger LP_WDT in the ROM.
80
+ uart_ll_sclk_enable (& UART0 );
76
81
}
77
82
78
83
/* "inner" restart function for after RTOS, interrupts & anything else on this
Original file line number Diff line number Diff line change 20
20
#include "esp_private/rtc_clk.h"
21
21
#include "soc/rtc_periph.h"
22
22
#include "soc/uart_reg.h"
23
+ #include "hal/uart_ll.h"
23
24
#include "hal/wdt_hal.h"
24
25
#include "hal/spimem_flash_ll.h"
25
26
#include "esp_private/cache_err_int.h"
@@ -77,6 +78,10 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void)
77
78
CLEAR_PERI_REG_MASK (PCR_RSA_CONF_REG , PCR_RSA_RST_EN );
78
79
SET_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
79
80
CLEAR_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
81
+
82
+ // UART's sclk is controlled in the PCR register and does not reset with the UART module. The ROM missed enabling
83
+ // it when initializing the ROM UART. If it is not turned on, it will trigger LP_WDT in the ROM.
84
+ uart_ll_sclk_enable (& UART0 );
80
85
}
81
86
82
87
/* "inner" restart function for after RTOS, interrupts & anything else on this
Original file line number Diff line number Diff line change 20
20
#include "soc/rtc_periph.h"
21
21
#include "soc/uart_reg.h"
22
22
#include "hal/wdt_hal.h"
23
+ #include "hal/uart_ll.h"
23
24
24
25
#include "esp32h4/rom/cache.h"
25
26
// TODO: IDF-11911 need refactor
@@ -69,6 +70,10 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void)
69
70
CLEAR_PERI_REG_MASK (PCR_HMAC_CONF_REG , PCR_HMAC_RST_EN );
70
71
SET_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
71
72
CLEAR_PERI_REG_MASK (PCR_SHA_CONF_REG , PCR_SHA_RST_EN );
73
+
74
+ // UART's sclk is controlled in the PCR register and does not reset with the UART module. The ROM missed enabling
75
+ // it when initializing the ROM UART. If it is not turned on, it will trigger LP_WDT in the ROM.
76
+ uart_ll_sclk_enable (& UART0 );
72
77
}
73
78
74
79
/* "inner" restart function for after RTOS, interrupts & anything else on this
You can’t perform that action at this time.
0 commit comments