Maximum possible CPU clock with heatsink and clock throttling.

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Maximum possible CPU clock with heatsink and clock throttling.

Postby Vader_Mester » Mon Jan 15, 2018 8:27 am

Hi All,

So I was reading on the technical ref that there is a 320MHz clock in the ESP, but most sources state that the maximum core frequency is 240MHz.

So question in short: If I provide some sort of heatsink for the ESP32, is it possible to configure the chip for a higher clock frequency, let's say 320MHz?

Also is it possible to use software as "clock throttle" in the ESP, so I can change the clock devider on the fly depending on the needs of the application, so it's only running full clock only when I need it to.

Thanks for the answers.
Ben

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Maximum possible CPU clock with heatsink and clock throttling.

Postby ESP_igrr » Mon Jan 15, 2018 12:52 pm

Regarding the first question: the official answer is "not possible". However, the source code of clock selection functions is provided inside rtc_clk.c in rtc component, so feel free to poke there...

Regarding clock throttling: we call this "dynamic frequency scaling", it is explained in http://esp-idf.readthedocs.io/en/latest ... ement.html.

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: Maximum possible CPU clock with heatsink and clock throttling.

Postby Vader_Mester » Mon Jan 15, 2018 12:59 pm

Thanks for the support! :mrgreen:

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 113 guests