Page 1 of 1

ESP32 cache block/line size

Posted: Sun Apr 09, 2023 7:03 pm
by daggone
The ESP32-C3 datasheet https://www.espressif.com/sites/default ... eet_en.pdf Section 3.1.5 specifies:
ESP32-C3 has an eight-way set associative cache. This cache is read-only and has the following features:
• size: 16 KB
• block size: 32 bytes
Unfortunately I have been unable to find similar information about the ESP32. I'm fairly certain that the ESP32 also has a block size of 32 bytes, but where can I find this information in the manual? The ESP32-C3 also has the function Cache_Get_ICache_Line_Size, but the ESP32 does not. Why not, and is there maybe another function that I could use?

Re: ESP32 cache block/line size

Posted: Thu Apr 20, 2023 2:39 am
by ESP_Sprite
It's 32 bytes, indeed. That API does not exist because it's in ROM and the ESP32 ROM didn't have that call yet.