rtc_clk_cpu_freq_set(freq); ESP_EARLY_LOGI("esp_clk_init","%d",__LINE__);// Re calculate the ccount to make time calculation correct.uint32_t freq_after = CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ; This produces the following output (startcpu0_default() is also sprinkled with logging) C...
If I change CPU_CLK_FREQ_ROM from 26 Mhz to 80 Mhz then the discrepancy between ESP_LOG time stamps and cycle time reduces from 567 milliseconds to 18 millseconds, a vast improvement. 80 MHz is the clock value used after the scheduleris started. This indicates that the 80 MHz clock is...