How to change the RTC Source of ESP32

I want to use change the rtc clock source ,use extenal 32.768 oscillator,after i use rtc_clk_slow_freq_set(RTC_SLOW_FREQ_32K_XTAL); and the value of return is ok ,but the board can not wake up when i use the deep-sleep demo?
what can i do?

Your topic has been moved to a more suitable location on the forum as this has nothing to do with Avrdude, stk500 or Bootloader