z3ugma 07/05/2026 02:22 AMI'm working on an ESP32-C6 project with Jaguar and I need to read (and possibly write) ESP32 eFuse values from my Toit application code (e.g., reading the MAC, checking chip revision, or burning custom fields for device identity).
I searched the toitlang/toit and toitlang/jaguar repos and found:
- The Toit firmware internally calls esp_efuse_mac_get_default() to read the MAC, and links against the IDF efuse component.
- But there's no Toit-level API — no efuse.toit library, no primitives like efuse_read or efuse_write.
Is there an efuse API I'm missing somewhere in the SDK, a package, or an undocumented primitive?
Specifically EFUSE_BLK3 - I want to set some serial numbers into the device
I think what I see is that the firmware already links against the IDF efuse component, but there are no Toit primitives or library functions exposed for reading or writing eFuses from Toit code. I expect I would need to add C++ primitives and a Toit library to surface esp_efuse_read_field_blob(), esp_efuse_write_field_blob(), etc.