Embedded
Count CPU cycles on ESP32 with esp_cpu_get_cycle_count
Time a code section on ESP32 in CPU cycles with esp_cpu_get_cycle_count, then convert to microseconds from the CPU frequency. ESP-IDF v5.4, C99.
1 min read
Short posts that solve one thing: the code, the output we got, and why it works.
Time a code section on ESP32 in CPU cycles with esp_cpu_get_cycle_count, then convert to microseconds from the CPU frequency. ESP-IDF v5.4, C99.
Change one field of an STM32 peripheral register in a single read-modify-write with MODIFY_REG, clear mask first and set mask second. STM32F4 CMSIS headers.
Run periodic work from a SysTick-driven superloop by setting task flags in the tick ISR and clearing them in main, on any Cortex-M with CMSIS.
Start an ESP32 OTA update with esp_ota_begin, stream the image through esp_ota_write, then finish with esp_ota_end, on ESP-IDF v5.4.
We send one email when a new post is published. No spam.