virtual eFuses

petr.ent
Posts: 1
Joined: Fri May 26, 2023 7:54 am

virtual eFuses

Postby petr.ent » Fri May 26, 2023 8:11 am

I am trying to enable virtual eFuses following the docs

https://docs.espressif.com/projects/esp ... unit-tests

CONFIG_EFUSE_VIRTUAL is fine, code works, I have a line in log saying eFuses are virtual

CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH sends ESP to restart loop. It prints eFuses content on startup. Since it is empty, it should trigger a read from real eFuses, or at least that is how I understand this line from docs
During startup, the eFuses are copied from flash or, in case if flash is empty, from real eFuse to RAM and then update flash.
But this does not happen, and when I try to read Bluetooth MAC, wrong CRC is detected > abort > restart, rinse and repeat. Am I missing something?

I use esp-idf plugin in VS Code, the options are activated in SDK Configuration editor.

Code: Select all

W (13) efuse: Loading virtual efuse blocks from flash
EFUSE_BLKx:
0) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff
1) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff
2) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff
3) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff

W (444) cpu_start: eFuse virtual mode is enabled. If Secure boot or Flash encryption is enabled then it does not provide any security. FOR TESTING ONLY!
W (449) efuse: Loading virtual efuse blocks from flash
EFUSE_BLKx:
0) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 
1) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 
2) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 
3) 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 

Who is online

Users browsing this forum: No registered users and 91 guests