Identifying CPU frequency dynamically
Posted: Sat Dec 28, 2019 2:43 am
Hello,
i wonder if it is possible to dynamically identify the CPU freq?
use case:
i have 2 visually identical dev boards (esp32-devkit). One works on 240 Mhz another on 160 Mhz. Changing config params manually everytime i have to upload the soft is error prone and not productive.
The desire is to have the code to identify what freq CPU is running on and adjust accordingly.
i wonder if it is possible to dynamically identify the CPU freq?
use case:
i have 2 visually identical dev boards (esp32-devkit). One works on 240 Mhz another on 160 Mhz. Changing config params manually everytime i have to upload the soft is error prone and not productive.
The desire is to have the code to identify what freq CPU is running on and adjust accordingly.