Use explicit error checking instead of asserts, use SOC_LOG to print error/warning messages where needed.
Add missing call to rtc_clk_cpu_freq_set_config Merges https://github.com/espressif/esp-idf/pull/2398
rtc_clk_init and related functions don’t need to be in IRAM/DRAM.