ets_delay_us incorrect in wake stub
Posted: Mon Aug 10, 2020 11:58 am
Dear all,
I want to wait a specific time in the wake stub of the ESP32 and I use:
ets_delay_us(200*1000);
for a 200ms delay. Unfortunately I measure 68ms delay.
The function "ets_get_cpu_frequency()" returns 13 in the wake stub, which seems to be wrong? I could not find any information about the default CPU speed in the wake stub, but would assume 40MHz. Is this correct?
How can I wait for a correct amount of time in the wake stub?
Best, Timm
I want to wait a specific time in the wake stub of the ESP32 and I use:
ets_delay_us(200*1000);
for a 200ms delay. Unfortunately I measure 68ms delay.
The function "ets_get_cpu_frequency()" returns 13 in the wake stub, which seems to be wrong? I could not find any information about the default CPU speed in the wake stub, but would assume 40MHz. Is this correct?
How can I wait for a correct amount of time in the wake stub?
Best, Timm