I'm trying to switch to ESP-IDF v3.3 (I'm currently on ESP-IDF v3.2) but when compile I got some error
Code: Select all
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c: In function 'OTA_burn_protection_efuses':
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:96:25: error: 'EFUSE_DISABLE_DL_ENCRYPT' undeclared (first use in this function)
uint32_t new_fuse = EFUSE_DISABLE_DL_ENCRYPT | EFUSE_DISABLE_DL_DECRYPT | EFUSE_DISABLE_DL_CACHE | EFUSE_RD_DISABLE_JTAG | EFUSE_RD_CONSOLE_DEBUG_DISABLE;
^
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:96:25: note: each undeclared identifier is reported only once for each function it appears in
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:96:52: error: 'EFUSE_DISABLE_DL_DECRYPT' undeclared (first use in this function)
uint32_t new_fuse = EFUSE_DISABLE_DL_ENCRYPT | EFUSE_DISABLE_DL_DECRYPT | EFUSE_DISABLE_DL_CACHE | EFUSE_RD_DISABLE_JTAG | EFUSE_RD_CONSOLE_DEBUG_DISABLE;
^
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:96:79: error: 'EFUSE_DISABLE_DL_CACHE' undeclared (first use in this function)
uint32_t new_fuse = EFUSE_DISABLE_DL_ENCRYPT | EFUSE_DISABLE_DL_DECRYPT | EFUSE_DISABLE_DL_CACHE | EFUSE_RD_DISABLE_JTAG | EFUSE_RD_CONSOLE_DEBUG_DISABLE;
^
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:96:104: error: 'EFUSE_RD_DISABLE_JTAG' undeclared (first use in this function)
uint32_t new_fuse = EFUSE_DISABLE_DL_ENCRYPT | EFUSE_DISABLE_DL_DECRYPT | EFUSE_DISABLE_DL_CACHE | EFUSE_RD_DISABLE_JTAG | EFUSE_RD_CONSOLE_DEBUG_DISABLE;
^
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:96:128: error: 'EFUSE_RD_CONSOLE_DEBUG_DISABLE' undeclared (first use in this function)
uint32_t new_fuse = EFUSE_DISABLE_DL_ENCRYPT | EFUSE_DISABLE_DL_DECRYPT | EFUSE_DISABLE_DL_CACHE | EFUSE_RD_DISABLE_JTAG | EFUSE_RD_CONSOLE_DEBUG_DISABLE;
^
In file included from C:/msys32/home/Davide/esp/esp-idf-v3.3/components/esp32/include/rom/ets_sys.h:21:0,
from C:/msys32/home/Davide/esp/esp-idf-v3.3/components/freertos/include/freertos/FreeRTOSConfig.h:120,
from C:/msys32/home/Davide/esp/esp-idf-v3.3/components/esp32/include/esp_task.h:30,
from C:/msys32/home/Davide/esp/esp-idf-v3.3/components/lwip/port/esp32/include/lwipopts.h:43,
from C:/msys32/home/Davide/esp/esp-idf-v3.3/components/lwip/lwip/src/include/lwip/opt.h:51,
from C:/msys32/home/Davide/esp/esp-idf-v3.3/components/lwip/lwip/src/include/lwip/netdb.h:37,
from C:/msys32/home/Davide/esp/esp-idf-v3.3/components/lwip/port/esp32/include/netdb.h:33,
from C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/glob_inc.h:20,
from C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:3:
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:98:30: error: 'EFUSE_BLK0_RDATA6_REG' undeclared (first use in this function)
if ((new_fuse & REG_READ(EFUSE_BLK0_RDATA6_REG)) != new_fuse)
^
C:/msys32/home/Davide/esp/esp-idf-v3.3/components/soc/esp32/include/soc/soc.h:165:37: note: in definition of macro 'REG_READ'
(*(volatile uint32_t *)(_r)); \
^
C:/msys32/home/Davide/esp/Avior_ESP32_WiFi/main/ota.c:101:19: error: 'EFUSE_BLK0_WDATA6_REG' undeclared (first use in this function)
REG_WRITE(EFUSE_BLK0_WDATA6_REG, new_fuse);
^
C:/msys32/home/Davide/esp/esp-idf-v3.3/components/soc/esp32/include/soc/soc.h:159:37: note: in definition of macro 'REG_WRITE'
(*(volatile uint32_t *)(_r)) = (_v);
Code: Select all
IDF_PATH\components\soc\esp32\include\soc\efuse_reg.h
thanks