I have udpated with the last version of SDK , but sambles/net/wifi does not compile, hello_word works good on saola
INSTRUCTIONS
(v311zep) PS C:\pyenv\zp\zephyr> west build -b esp32s2_saola samples/net/wifi
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/pyenv/zp/zephyr/samples/net/wifi
-- CMake version: 3.26.3
-- Found Python3: C:/pyenv/v311zep/Scripts/python.exe (found suitable exact version "3.11.3") found components: Interpreter
-- Cache files will be written to: C:/pyenv/zp/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/pyenv/zp/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: esp32s2_saola
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.0 (C:/pyenv/zephyr-sdk-0.16.0)
-- Found toolchain: zephyr 0.16.0 (C:/pyenv/zephyr-sdk-0.16.0)
-- Found Dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: C:/pyenv/zp/zephyr/boards/xtensa/esp32s2_saola/esp32s2_saola.dts
-- Found devicetree overlay: C:/pyenv/zp/zephyr/samples/net/wifi/boards/esp32s2_saola.overlay
-- Generated zephyr.dts: C:/pyenv/zp/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/pyenv/zp/zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/pyenv/zp/zephyr/build/zephyr/dts.cmake
Parsing C:/pyenv/zp/zephyr/Kconfig
Loaded configuration 'C:/pyenv/zp/zephyr/boards/xtensa/esp32s2_saola/esp32s2_saola_defconfig'
Merged configuration 'C:/pyenv/zp/zephyr/samples/net/wifi/prj.conf'
Merged configuration 'C:/pyenv/zp/zephyr/samples/net/wifi/boards/esp32s2_saola.conf'
Configuration saved to 'C:/pyenv/zp/zephyr/build/zephyr/.config'
Kconfig header saved to 'C:/pyenv/zp/zephyr/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/pyenv/zephyr-sdk-0.16.0/xtensa-espressif_esp32s2_zephyr-elf/bin/../lib/gcc/xtensa-espressif_esp32s2_zephyr-elf/12.2.0/../../../../xtensa-espressif_esp32s2_zephyr-elf/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/pyenv/zephyr-sdk-0.16.0/xtensa-espressif_esp32s2_zephyr-elf/bin/xtensa-espressif_esp32s2_zephyr-elf-gcc.exe
CMake Warning at C:/pyenv/zp/zephyr/CMakeLists.txt:838 (message):
No SOURCES given to Zephyr library: lib__libc__common
Excluding target from build.
CMake Warning at C:/pyenv/zp/zephyr/CMakeLists.txt:838 (message):
No SOURCES given to Zephyr library: drivers__ethernet
Excluding target from build.
-- Configuring done (27.8s)
-- Generating done (0.6s)
-- Build files have been written to: C:/pyenv/zp/zephyr/build
�[92m-- west build: building application
[15/404] Generating include/generated/version.h
-- Zephyr version: 3.3.99 (C:/pyenv/zp/zephyr), build: zephyr-v3.3.0-3089-ga01dc33ef1a2
[108/404] Building C object zephyr/CMakeFiles/zephyr.dir/C_/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/C_/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c.obj
C:\pyenv\zephyr-sdk-0.16.0\xtensa-espressif_esp32s2_zephyr-elf\bin\xtensa-espressif_esp32s2_zephyr-elf-gcc.exe -DCONFIG_DPP -DCONFIG_ECC -DCONFIG_IEEE80211W -DCONFIG_SHA256 -DCONFIG_SPI_FLASH_ROM_DRIVER_PATCH -DCONFIG_SPI_FLASH_USE_LEGACY_IMPL -DCONFIG_WNM -DCONFIG_WPA3_SAE -DEAP_FAST -DEAP_MSCHAPv2 -DEAP_PEAP -DEAP_PEER_METHOD -DEAP_TLS -DEAP_TTLS -DESP32_WORKAROUND -DESPRESSIF_USE -DESP_PLATFORM -DESP_SUPPLICANT -DIEEE8021X_EAPOL -DKERNEL -DMBEDTLS_CONFIG_FILE="config-tls-generic.h" -DUSE_WPA2_TASK -D__ZEPHYR__=1 -D__ets__ -IC:/pyenv/zp/zephyr/kernel/include -IC:/pyenv/zp/zephyr/arch/xtensa/include -IC:/pyenv/zp/zephyr/include -IC:/pyenv/zp/zephyr/build/zephyr/include/generated -IC:/pyenv/zp/zephyr/soc/xtensa/esp32s2 -IC:/pyenv/zp/zephyr/soc/xtensa/esp32s2/include -IC:/pyenv/zp/zephyr/lib/posix/getopt/. -IC:/pyenv/zp/zephyr/subsys/net/l2 -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/include/crypto -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/include/wifi -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../esp_shared/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../esp_shared/include/wifi -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../esp_shared/components/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/hal/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/hal/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/hal/platform_port/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_hw_support/port/esp32s2 -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_hw_support/port/esp32s2/private_include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_hw_support/include/soc -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_hw_support/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_common/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_pm/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_rom/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_rom/esp32s2/ld -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_rom/include/esp32s2/rom -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/driver/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/soc/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/xtensa/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/xtensa/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/soc/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/soc/include/soc -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/driver/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_system/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_system/port/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_system/port/public_compat -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_wifi/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_wifi/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_phy/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_phy/include/esp32s2 -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_phy/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_timer/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_timer/private_include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_netif/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/esp_event/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/log/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/port/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/src -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/include/esp_supplicant -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/esp_supplicant/src -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/esp_supplicant/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/src/utils -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/wpa_supplicant/src/eap_peer -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/spi_flash/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/spi_flash/include/spi_flash -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/spi_flash/private_include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/bootloader_support/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/efuse/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/efuse/include/esp32s2 -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/efuse/esp32s2/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/bootloader_support/include_bootloader -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/heap/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/mbedtls/port/include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/efuse/private_include -IC:/pyenv/zp/modules/hal/espressif/zephyr/esp32s2/../../components/efuse/esp32s2/private_include -IC:/pyenv/zp/modules/crypto/mbedtls/include -IC:/pyenv/zp/modules/crypto/mbedtls/library -IC:/pyenv/zp/zephyr/modules/mbedtls/configs -IC:/pyenv/zp/zephyr/modules/mbedtls/include -isystem C:/pyenv/zp/zephyr/lib/libc/minimal/include -fno-strict-aliasing -Os -imacros C:/pyenv/zp/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always --sysroot=C:/pyenv/zephyr-sdk-0.16.0/xtensa-espressif_esp32s2_zephyr-elf/xtensa-espressif_esp32s2_zephyr-elf -imacros C:/pyenv/zp/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/pyenv/zp/zephyr/samples/net/wifi=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/pyenv/zp/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/pyenv/zp=WEST_TOPDIR -ffunction-sections -fdata-sections -mlongcalls -D_POSIX_THREADS -Wno-unused-variable -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/C_/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c.obj -MF zephyr\CMakeFiles\zephyr.dir\C_\pyenv\zp\modules\hal\espressif\components\esp_phy\src\phy_init.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/C_/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c.obj -c C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c
In file included from c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:19,
from c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\rtc.h:19,
from C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:13:
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c: In function 'esp_wifi_bt_power_domain_on':
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:27: error: 'SYSCON_WIFI_RST_EN_REG' undeclared (first use in this function)
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:71: note: in definition of macro 'TRY_STATIC_ASSERT'
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:57: note: in expansion of macro 'IS_DPORT_REG'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:216:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
216 | ASSERT_IF_DPORT_REG((reg), SET_PERI_REG_MASK);
| ^~~~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:27: note: each undeclared identifier is reported only once for each function it appears in
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:71: note: in definition of macro 'TRY_STATIC_ASSERT'
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:57: note: in expansion of macro 'IS_DPORT_REG'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:216:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
216 | ASSERT_IF_DPORT_REG((reg), SET_PERI_REG_MASK);
| ^~~~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:216:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
216 | ASSERT_IF_DPORT_REG((reg), SET_PERI_REG_MASK);
| ^~~~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: expression in static assertion is not an integer
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:216:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
216 | ASSERT_IF_DPORT_REG((reg), SET_PERI_REG_MASK);
| ^~~~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:204:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
204 | ASSERT_IF_DPORT_REG((addr), WRITE_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:217:13: note: in expansion of macro 'WRITE_PERI_REG'
217 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask)));
| ^~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: expression in static assertion is not an integer
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:204:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
204 | ASSERT_IF_DPORT_REG((addr), WRITE_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:217:13: note: in expansion of macro 'WRITE_PERI_REG'
217 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask)));
| ^~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
23 | _Static_assert(__builtin_choose_expr(_builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:205:76: note: in definition of macro 'WRITE_PERI_REG'
205 | (*((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val);
| ^~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:198:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
198 | ASSERT_IF_DPORT_REG((addr), READ_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:217:36: note: in expansion of macro 'READ_PERI_REG'
217 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask)));
| ^~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: expression in static assertion is not an integer
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:205:76: note: in definition of macro 'WRITE_PERI_REG'
205 | (((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val);
| ^~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:198:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
198 | ASSERT_IF_DPORT_REG((addr), READ_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:217:36: note: in expansion of macro 'READ_PERI_REG'
217 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask)));
| ^~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:51: error: 'SYSTEM_BB_RST' undeclared (first use in this function)
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:205:76: note: in definition of macro 'WRITE_PERI_REG'
205 | (((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val);
| ^~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:67: error: 'SYSTEM_FE_RST' undeclared (first use in this function)
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:205:76: note: in definition of macro 'WRITE_PERI_REG'
205 | (((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val);
| ^~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:300:9: note: in expansion of macro 'SET_PERI_REG_MASK'
300 | SET_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:210:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
210 | ASSERT_IF_DPORT_REG((reg), CLEAR_PERI_REG_MASK);
| ^~~~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:301:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
301 | CLEAR_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: expression in static assertion is not an integer
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:210:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
210 | ASSERT_IF_DPORT_REG((reg), CLEAR_PERI_REG_MASK);
| ^~~~~~~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:301:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
301 | CLEAR_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:204:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
204 | ASSERT_IF_DPORT_REG((addr), WRITE_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:211:13: note: in expansion of macro 'WRITE_PERI_REG'
211 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&((mask))));
| ^~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:301:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
301 | CLEAR_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: expression in static assertion is not an integer
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:204:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
204 | ASSERT_IF_DPORT_REG((addr), WRITE_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:211:13: note: in expansion of macro 'WRITE_PERI_REG'
211 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&((mask))));
| ^~~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:301:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
301 | CLEAR_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:205:76: note: in definition of macro 'WRITE_PERI_REG'
205 | (((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val);
| ^~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
125 | #define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(r), (Cannot use OP for DPORT registers use DPORT##OP));
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:198:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
198 | ASSERT_IF_DPORT_REG((addr), READ_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:211:36: note: in expansion of macro 'READ_PERI_REG'
211 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask))));
| ^~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:301:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
301 | CLEAR_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\esp_common\include\esp_assert.h:23:28: error: expression in static assertion is not an integer
23 | _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
| ^~~~~~~~~~~~~~~~~~~~~
205 | (((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val);
| ^~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:125:38: note: in expansion of macro 'TRY_STATIC_ASSERT'
| ^~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:198:13: note: in expansion of macro 'ASSERT_IF_DPORT_REG'
198 | ASSERT_IF_DPORT_REG((addr), READ_PERI_REG);
| ^~~~~~~~~~~~~~~~~~~
c:\pyenv\zp\modules\hal\espressif\components\soc\esp32s2\include\soc\soc.h:211:36: note: in expansion of macro 'READ_PERI_REG'
211 | WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask))));
| ^~~~~~~~~~~~~
C:/pyenv/zp/modules/hal/espressif/components/esp_phy/src/phy_init.c:301:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
301 | CLEAR_PERI_REG_MASK(SYSCON_WIFI_RST_EN_REG, SYSTEM_BB_RST | SYSTEM_FE_RST);
| ^~~~~~~~~~~~~~~~~~~
[110/404] Performing configure step for 'EspIdfBootloader'
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.40.0.windows.1")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/pyenv/zephyr-sdk-0.16.0/xtensa-espressif_esp32s2_zephyr-elf/bin/xtensa-espressif_esp32s2_zephyr-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/pyenv/zephyr-sdk-0.16.0/xtensa-espressif_esp32s2_zephyr-elf/bin/xtensa-espressif_esp32s2_zephyr-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/pyenv/zephyr-sdk-0.16.0/xtensa-espressif_esp32s2_zephyr-elf/bin/xtensa-espressif_esp32s2_zephyr-elf-gcc.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s2
-- Project sdkconfig file C:/pyenv/zp/zephyr/build/esp-idf/build/sdkconfig
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/soc/esp32s2/ld/esp32s2.peripherals.ld
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/esp_rom/esp32s2/ld/esp32s2.rom.ld
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/esp_rom/esp32s2/ld/esp32s2.rom.api.ld
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/esp_rom/esp32s2/ld/esp32s2.rom.libgcc.ld
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-funcs.ld
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/esp_rom/esp32s2/ld/esp32s2.rom.spiflash.ld
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/bootloader/subproject/main/ld/esp32s2/bootloader.ld
-- Adding linker script C:/pyenv/zp/modules/hal/espressif/components/bootloader/subproject/main/ld/esp32s2/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32s2 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/pyenv/zp/modules/hal/espressif/components/bootloader C:/pyenv/zp/modules/hal/espressif/components/bootloader_support C:/pyenv/zp/modules/hal/espressif/components/efuse C:/pyenv/zp/modules/hal/espressif/components/esp32s2 C:/pyenv/zp/modules/hal/espressif/components/esp_common C:/pyenv/zp/modules/hal/espressif/components/esp_hw_support C:/pyenv/zp/modules/hal/espressif/components/esp_rom C:/pyenv/zp/modules/hal/espressif/components/esp_system C:/pyenv/zp/modules/hal/espressif/components/esptool_py C:/pyenv/zp/modules/hal/espressif/components/freertos C:/pyenv/zp/modules/hal/espressif/components/hal C:/pyenv/zp/modules/hal/espressif/components/log C:/pyenv/zp/modules/hal/espressif/components/bootloader/subproject/main C:/pyenv/zp/modules/hal/espressif/components/bootloader/subproject/components/micro-ecc C:/pyenv/zp/modules/hal/espressif/components/newlib C:/pyenv/zp/modules/hal/espressif/components/partition_table C:/pyenv/zp/modules/hal/espressif/components/soc C:/pyenv/zp/modules/hal/espressif/components/spi_flash C:/pyenv/zp/modules/hal/espressif/components/xtensa
-- Configuring done (7.2s)
-- Generating done (0.3s)
-- Build files have been written to: C:/pyenv/zp/zephyr/build/esp-idf/build/bootloader
[117/404] Building C object zephyr/CMakeFiles/zephyr.dir/C/pyenv/zp/modules/hal/espressif/components/wpa_supplicant/src/ap/wpa_auth.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\pyenv\zp\zephyr\build'
(v311zep) PS C:\pyenv\zp\zephyr> west build -b esp32s2_saola samples/hello_world
ERROR: Build directory "C:\pyenv\zp\zephyr\build" is for application "C:\pyenv\zp\zephyr\samples\net\wifi", but source directory "C:\pyenv\zp\zephyr\samples\hello_world" was specified; please clean it, use --pristine, or use --build-dir to set another build directory
FATAL ERROR: refusing to proceed without --force due to above error
----------------------------- Delete above -----------------------------
I am running WIndows 10 updated with Power shell