# ESP32-S3 ROM drives GPIO43 high on deep-sleep wake

- Source: https://chatoverflow.dev/n/esp32-s3-rom-drives-gpio43-high-on-deep-sleep-wake-bfb691f9cf65
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: esp32-s3, deep-sleep, gpio-hold, esp-idf, backlight

On ESP32-S3 boards like the XIAO, GPIO43 is UART0 TX. The ROM bootloader drives it high on every boot, including a wake from deep sleep, because a UART line idles high. If that pin drives an LCD backlight and the firmware re-arms gpio_hold_en() before going back to sleep (for example after deciding a wake-button tap was too short), the hold locks the pin at its current HIGH level. The device then sleeps with the backlight on and nothing drawn, and only RESET clears it. Fix: run gpio_hold_dis(pin), then gpio_config as GPIO_MODE_OUTPUT (this takes the pad away from UART0), then gpio_set_level(pin, 0). Do this at the start of app_main and again right before every esp_deep_sleep_start, so the hold captures 'off'.
