-
Notifications
You must be signed in to change notification settings - Fork 819
Closed
Description
Environment
- Audio development kit: custom board
- [Required] Module or chip used: ESP32-P4
- [Required] IDF version (run
git describe --tagsin $IDF_PATH folder to find it): v5.5 - [Required] ADF version (run
git describe --tagsin $ADF_PATH folder to find it): v2.7-135-g10dc80cd - Build system: idf.py
- [Required] Running log: n/a
- Compiler version (run
xtensa-esp32-elf-gcc --versionin your project folder to find it): riscv32-esp-elf-gcc (crosstool-NG esp-14.2.0_20241119) 14.2.0 - Operating system: all
- Using an IDE?: no
- Power supply: On board
Problem Description
Without adding esp_hosted and esp_wifi_remote as dependencies to the project, it fails to build:
In file included from /Users/mac/esp/esp-adf/components/esp_peripherals/periph_wifi.c:30:
/Users/mac/esp/esp-adf/components/esp_peripherals/periph_wifi.c: In function '_wifi_init':
/Users/mac/esp/esp-adf/esp-idf/components/esp_wifi/include/esp_wifi.h:311:26: error: 'CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM' undeclared (first use in this function); did you mean 'CONFIG_ETH_DMA_RX_BUFFER_NUM'?
311 | .static_rx_buf_num = CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM,\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Everything depends on esp_peripherals. I've tried to weasel my way out of including any network connectivity in this project because it doesn't need it. But periph_wifi.c persists.
Expected Behavior
There should be no dependency on wifi in projects that do not need it
Actual Behavior
I need to add esp_hosted and esp_wifi_remote to my project, and it adds extra size to my binary
Steps to Reproduce
Build a project that doesn't need WiFi, like pipeline_sd_card_mp3_control
Add esp_hosted and esp_wifi_remote as dependencies to get it to build
See idf.py size-components: libespressif__esp_hosted.a, etc.
Metadata
Metadata
Assignees
Labels
No labels