Skip to content

Commit 287e55a

Browse files
erhankurespressif-bot
authored andcommitted
fix(coredump): disable uart txd pullup using gpio hal
1 parent e58763c commit 287e55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/espcoredump/src/core_dump_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static esp_err_t esp_core_dump_uart_hw_init(void)
154154

155155
//Make sure txd/rxd are enabled
156156
// use direct reg access instead of gpio_pullup_dis which can cause exception when flash cache is disabled
157-
REG_CLR_BIT(GPIO_PIN_REG_1, FUN_PU); //TODO: IDF-9948
157+
gpio_hal_pullup_dis(&gpio_hal, U0TXD_GPIO_NUM);
158158
gpio_hal_func_sel(&gpio_hal, U0RXD_GPIO_NUM, U0RXD_MUX_FUNC);
159159
gpio_hal_func_sel(&gpio_hal, U0TXD_GPIO_NUM, U0TXD_MUX_FUNC);
160160
ESP_COREDUMP_LOGI("Press Enter to print core dump to UART...");

0 commit comments

Comments
 (0)