Comments (4)
@b0661 I have tested same environment describe and it worked.
I tested against samples/boards/esp32/wifi_station
.
Did you run the following commands?
west update
west espressif update
from hal_espressif.
Updated my project app code as a copy of samples/boards/esp32/wifi_station (used to be hello app).
Updated Zepyhr to: c3a067e84105bdd6bfcf0740bd5267e6120c98d5 + PR#36378 + PR#36650
Assured hal_espressif is uptodate (incl. submodules): c21d252 (hal: intc: add interrupt allocator hal support)
prj.conf: CONFIG_LOG=y
-> everything is fine
prj.conf: CONFIG_LOG=n
...
[68/322] Building C object zephyr/CMakeFiles/zephyr.dir/home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c.obj
ccache /home/bobby/projects/comitberry/zephyr-sdk/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DBUILD_VERSION=zephyr-v2.6.0-751-g6867220e516a -DCONFIG_DPP -DCONFIG_ECC -DCONFIG_IEEE80211W -DCONFIG_SHA256 -DCONFIG_WPA3_SAE -DEAP_MSCHAPv2 -DEAP_PEAP -DEAP_PEER_METHOD -DESP32_WORKAROUND -DESPRESSIF_USE -DESP_PLATFORM -DESP_SUPPLICANT -DIEEE8021X_EAPOL -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -DUSE_WPA2_TASK -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -D__ets__ -I/home/bobby/projects/comitberry/comitberry-zephyr/kernel/include -I/home/bobby/projects/comitberry/comitberry-zephyr/arch/xtensa/include -I/home/bobby/projects/comitberry/comitberry-zephyr/include -Izephyr/include/generated -I/home/bobby/projects/comitberry/comitberry-zephyr/soc/xtensa/esp32 -I/home/bobby/projects/comitberry/comitberry-zephyr/soc/xtensa/esp32/include -I/home/bobby/projects/comitberry/comitberry-zephyr/subsys/net/l2 -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/include/bt -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/include/crypto -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/include/wifi -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/hal/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/hal/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_hw_support/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_hw_support/port/esp32 -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_hw_support/port/esp32/private_include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_common/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_rom/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_rom/esp32/ld -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/xtensa/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/xtensa/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/soc/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/soc/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/soc/esp32/private_include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/include/soc -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/src/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/driver/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/soc/soc/esp32 -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_wifi/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/efuse/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/efuse/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_system/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_wifi/esp32/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_timer/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_timer/private_include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_netif/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_event/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/log/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/wpa_supplicant/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/wpa_supplicant/port/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/wpa_supplicant/src -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/wpa_supplicant/include/esp_supplicant -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/wpa_supplicant/src/crypto -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/spi_flash/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/spi_flash/private_include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/bootloader_support/include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/newlib/priv_include -I/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/bootloader_support/include_bootloader -I/home/bobby/projects/comitberry/zephyr-mbedtls/mbedtls/include -I/home/bobby/projects/comitberry/comitberry-zephyr/modules/mbedtls/configs -isystem /home/bobby/projects/comitberry/comitberry-zephyr/lib/libc/minimal/include -Os -imacros /home/bobby/projects/comitberry/comitberry-esp32-fw2/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -imacros /home/bobby/projects/comitberry/comitberry-zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/bobby/projects/comitberry/comitberry-esp32-fw2/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/bobby/projects/comitberry/comitberry-zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/bobby/projects/comitberry=WEST_TOPDIR -ffunction-sections -fdata-sections -mlongcalls -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c.obj -MF zephyr/CMakeFiles/zephyr.dir/home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c.obj -c /home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c
In file included from /home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/esp_hw_support/include/soc_log.h:27,
from /home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c:30:
/home/bobby/projects/comitberry/zephyr-hal-espressif/components/soc/src/esp32/rtc_clk.c: In function 'rtc_clk_cpu_freq_to_pll_mhz':
/home/bobby/projects/comitberry/zephyr-hal-espressif/zephyr/esp32/../../components/log/include/esp_log.h:148:26: error: 'CONFIG_LOG_DEFAULT_LEVEL' undeclared (first use in this function); did you mean 'CONFIG_NET_IF_LOG_LEVEL'?
#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL
^~~~~~~~~~~~~~~~~~~~~~~~
...
It is obvious that Zepyhr/Kconfig does not create CONFIG_LOG_DEFAULT_LEVEL in case CONFIG_LOG is not set. esp_log.h needs CONFIG_LOG_DEFAULT_LEVEL in case LOG_LOCAL_LEVEL is not set. Do I have to set LOG_LOCAL_LEVEL somehow in my custom board environment (if so why)?
from hal_espressif.
@b0661 ok, I was ble to reproduce now.
I'll submit a PR soon. Find a fix below:
diff --git a/components/log/include/esp_log.h b/components/log/include/esp_log.h
index 5a488936b0..88e336460a 100644
--- a/components/log/include/esp_log.h
+++ b/components/log/include/esp_log.h
@@ -144,12 +144,8 @@ void esp_log_writev(esp_log_level_t level, const char* tag, const char* format,
#include "esp_log_internal.h"
#ifndef LOG_LOCAL_LEVEL
-#ifndef BOOTLOADER_BUILD
-#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL
-#else
#define LOG_LOCAL_LEVEL CONFIG_BOOTLOADER_LOG_LEVEL
#endif
-#endif
/** @endcond */
diff --git a/zephyr/esp32/include/sdkconfig.h b/zephyr/esp32/include/sdkconfig.h
index bf8e1825a4..df025bf352 100644
--- a/zephyr/esp32/include/sdkconfig.h
+++ b/zephyr/esp32/include/sdkconfig.h
@@ -1,5 +1,6 @@
#define CONFIG_LOG_TIMESTAMP_SOURCE_RTOS 1
#define CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL 5
+#define CONFIG_BOOTLOADER_LOG_LEVEL 3
#define CONFIG_ESP32_PHY_MAX_TX_POWER 20
#define CONFIG_ESP_MAC_ADDR_UNIVERSE_BT 1
from hal_espressif.
Thank you for the fast fix. It works.
from hal_espressif.
Related Issues (20)
- hal_espressif expects ZEPHYR_BASE environment variable to be set HOT 7
- Unable to boot on ESP32 with IDF bootloader and flash encryption HOT 2
- Add Lucas as collaborator HOT 1
- Delete and rename branches HOT 1
- use ifndef around defines for likely and unlikely HOT 1
- Add collaborator HOT 4
- Incorrect display of new lines with west espressif monitor HOT 1
- WPA-Enterprise support HOT 1
- GPIO 20 is not supported but actually used by some chips HOT 1
- pyserial dependency needs to be installed HOT 2
- samples/net/wifi does not build on saola HOT 3
- mesh_provisioner sample gets stuck after the first "Waiting for unprovisioned beacon..." message HOT 1
- Missing `mcuboot_assert_handler` function HOT 2
- Add collaborator HOT 2
- cannot use POWEROFF and ADC at once HOT 1
- zephyr: esptool too old? HOT 4
- [ESP32] XTAL hardcoded to 40MHz. HOT 6
- west flash --esp-device stored in configuration file HOT 2
- Support arm64 builds via zephyr HOT 1
- ESP32-S3 support HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hal_espressif.