Skip to content

Build problem: wafer_version_major

Followed the steps from https://wiki.why2025.org/How_to_develop_an_app

Then I run idf.py build flash monitor which results in this error:

In file included from /home/roland/projects/badgeWHY2025/esp/esp-idf/components/bootloader_support/include/esp_flash_encrypt.h:12, from /home/roland/projects/badgeWHY2025/esp/esp-idf/components/mbedtls/port/aes/dma/esp_aes_dma_core.c:45: /home/roland/projects/badgeWHY2025/firmware/components/hal/esp32p4/include/hal/efuse_ll.h: In function 'efuse_ll_get_chip_wafer_version_major': /home/roland/projects/badgeWHY2025/firmware/components/hal/esp32p4/include/hal/efuse_ll.h:61:31: error: 'efuse_rd_mac_sys_2_reg_t' has no member named 'wafer_version_major'; did you mean 'wafer_version_minor'? 61 | return EFUSE.rd_mac_sys_2.wafer_version_major; | ^~~~~~~~~~~~~~~~~~~ | wafer_version_minor [117/1387] Performing configure step for 'connectivity_esp_hosted'

Extra info: ubuntu 24.04

$ source /path/to/esp-idf/export.fish
Checking "python3" ...
Python 3.12.3
python3 has been detected
Activating ESP-IDF 5.5
Setting IDF_PATH to '/home/roland/projects/badgeWHY2025/esp/esp-idf'.
* Checking python version ... 3.12.3
* Checking python dependencies ... OK
* Deactivating the current ESP-IDF environment (if any) ... OK
* Establishing a new ESP-IDF environment ... OK
* Identifying shell ... fish
* Detecting outdated tools in system ... OK - no outdated tools found
* Shell completion ... OK

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build