reading EFUSE

Posts: 19
Joined: Thu Jan 23, 2020 9:31 am

reading EFUSE

Postby egoncalves » Fri Feb 07, 2020 8:46 am


I'm trying to read the efuses and I can only read 192 bits.
When I try to read beyond that an error is thrown:

This is the code:

Code: Select all

    esp_err_t err;
    uint8_t dst_key[256];
    err = esp_efuse_read_block(EFUSE_BLK2, dst_key, 0/*offset_in_bits*/, 193/*size_bits*/ );
The error shown is:
E (32431) efuse: Range of data does not match the coding scheme
C:/eclipse-workspace-EG/anna_dispense_espfw/components/ctLOG/test/test_ctLOG.c:186:Testing EFUSE:FAIL: Expected 0 Was 5636
If I change the call to esp_efuse_read_block() to
err = esp_efuse_read_block(EFUSE_BLK2, dst_key, 0/*offset_in_bits*/, 192/*size_bits*/ );
All goes well.

Shouldn't it be possible to read 256 bits?

Posts: 2887
Joined: Tue Dec 01, 2015 7:35 am

Re: reading EFUSE

Postby WiFive » Fri Feb 07, 2020 10:09 am

If you have 3/4 coding scheme then only 192bits are available

Who is online

Users browsing this forum: Baidu [Spider] and 46 guests