esp-idf sample code for efuse fails for esp32-s3

davidzuhn
Posts: 17
Joined: Fri Sep 20, 2019 1:50 am

esp-idf sample code for efuse fails for esp32-s3

Postby davidzuhn » Sat Apr 16, 2022 3:14 am

Using the master branch of esp-idf (specifically, v5.0-dev-2483-g3aeb80acb6), I can't show the fuse table for the example code in examples/system/efuse when I'm building for esp32-s3. From a clean unmodified checked out tree, I run the following:

Code: Select all

$ idf.py set-target esp32s3
....
$ idf.py show-efuse-table
Executing action: show-efuse-table
Running ninja in directory /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build
Executing "ninja show-efuse-table"...
[1/1] cd /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build/esp-idf/efuse && /Users/zoo/.espressif/python_env/idf... /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/main/esp_efuse_custom_table.csv -t esp32s3 --max_blk_len 256 --info
FAILED: esp-idf/efuse/CMakeFiles/show-efuse-table /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build/esp-idf/efuse/CMakeFiles/show-efuse-table 
cd /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build/esp-idf/efuse && /Users/zoo/.espressif/python_env/idf5.0_py3.9_env/bin/python /Users/zoo/esp32/esp-idf-latest-20220415/components/efuse/efuse_table_gen.py /Users/zoo/esp32/esp-idf-latest-20220415/components/efuse/esp32s3/esp_efuse_table.csv /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/main/esp_efuse_custom_table.csv -t esp32s3 --max_blk_len 256 --info
Parsing efuse CSV input file /Users/zoo/esp32/esp-idf-latest-20220415/components/efuse/esp32s3/esp_efuse_table.csv ...
Verifying efuse table...
Parsing efuse CSV input file /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/main/esp_efuse_custom_table.csv ...
Verifying efuse table...
Field at USER_DATA, EFUSE_BLK3, 0, 256  wraps  MODULE_VERSION, EFUSE_BLK3, 56, 8
Max number of bits in BLK 256
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

$ idf.py efuse-custom-table
Executing action: efuse-custom-table
Running ninja in directory /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build
Executing "ninja efuse-custom-table"...
[1/1] cd /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build/esp-idf/efuse && /Users/zoo/.espressif/python_env/idf5.0_py3.9_env/bin/python /User...nts/efuse/esp32s3/esp_efuse_table.csv /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/main/esp_efuse_custom_table.csv -t esp32s3 --max_blk_len 25
FAILED: esp-idf/efuse/CMakeFiles/efuse-custom-table /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build/esp-idf/efuse/CMakeFiles/efuse-custom-table 
cd /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/build/esp-idf/efuse && /Users/zoo/.espressif/python_env/idf5.0_py3.9_env/bin/python /Users/zoo/esp32/esp-idf-latest-20220415/components/efuse/efuse_table_gen.py /Users/zoo/esp32/esp-idf-latest-20220415/components/efuse/esp32s3/esp_efuse_table.csv /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/main/esp_efuse_custom_table.csv -t esp32s3 --max_blk_len 256
Parsing efuse CSV input file /Users/zoo/esp32/esp-idf-latest-20220415/components/efuse/esp32s3/esp_efuse_table.csv ...
Verifying efuse table...
Parsing efuse CSV input file /Users/zoo/esp32/esp-idf-latest-20220415/examples/system/efuse/main/esp_efuse_custom_table.csv ...
Verifying efuse table...
Field at USER_DATA, EFUSE_BLK3, 0, 256  wraps  MODULE_VERSION, EFUSE_BLK3, 56, 8
Max number of bits in BLK 256
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
-

Konstantin
Posts: 13
Joined: Tue Feb 05, 2019 7:31 am

Re: esp-idf sample code for efuse fails for esp32-s3

Postby Konstantin » Fri Apr 22, 2022 7:54 am

Hi!
Please take a look the github thread - https://github.com/espressif/esp-idf/issues/8810
You need to change the names in your custom_efuse_table.csv

USER_DATA.MODULE_VERSION, EFUSE_BLK3, 56, 8

Final efuse name - USER_DATA_MODULE_VERSION

Who is online

Users browsing this forum: No registered users and 252 guests