mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
fix(coredump): disable uart txd pullup using gpio hal
This commit is contained in:
@@ -154,7 +154,7 @@ static esp_err_t esp_core_dump_uart_hw_init(void)
|
|||||||
|
|
||||||
//Make sure txd/rxd are enabled
|
//Make sure txd/rxd are enabled
|
||||||
// use direct reg access instead of gpio_pullup_dis which can cause exception when flash cache is disabled
|
// use direct reg access instead of gpio_pullup_dis which can cause exception when flash cache is disabled
|
||||||
REG_CLR_BIT(GPIO_PIN_REG_1, FUN_PU); //TODO: IDF-9948
|
gpio_hal_pullup_dis(&gpio_hal, U0TXD_GPIO_NUM);
|
||||||
gpio_hal_func_sel(&gpio_hal, U0RXD_GPIO_NUM, U0RXD_MUX_FUNC);
|
gpio_hal_func_sel(&gpio_hal, U0RXD_GPIO_NUM, U0RXD_MUX_FUNC);
|
||||||
gpio_hal_func_sel(&gpio_hal, U0TXD_GPIO_NUM, U0TXD_MUX_FUNC);
|
gpio_hal_func_sel(&gpio_hal, U0TXD_GPIO_NUM, U0TXD_MUX_FUNC);
|
||||||
ESP_COREDUMP_LOGI("Press Enter to print core dump to UART...");
|
ESP_COREDUMP_LOGI("Press Enter to print core dump to UART...");
|
||||||
|
Reference in New Issue
Block a user