ESP32 cache block/line size

daggone
Posts: 1
Joined: Sat Apr 08, 2023 11:18 am

ESP32 cache block/line size

Postby daggone » Sun Apr 09, 2023 7:03 pm

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?

ESP_Sprite
Posts: 9654
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 cache block/line size

Postby ESP_Sprite » Thu Apr 20, 2023 2:39 am

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.

Who is online

Users browsing this forum: No registered users and 15 guests