Skip to content

配网页面不能显示 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bitloong opened this issue May 18, 2025 · 6 comments
Closed

配网页面不能显示 #7

bitloong opened this issue May 18, 2025 · 6 comments

Comments

@bitloong
Copy link

代码版本:1.6.2
使用代码刷固件后,切换网络:提示进入配网模式,手机连接热点 Xiaozhi-4F61,浏览器访问 http://192.168.4.1,无法显示页面。

W (1861) Application: Alert 配网模式: 手机连接热点 Xiaozhi-4F61,浏览器访问 http://192.168.4.1

 []
I (1879) WifiBoard: Free internal: 12088 minimal internal: 12088
I (1887) AudioCodec: Set output volume to 70
I (4694) WifiConfigurationAp: WiFi event received: WIFI_EVENT, id: 1
I (4694) WifiConfigurationAp: WiFi scan done event
I (4696) WifiConfigurationAp: Scan found 3 APs
I (4704) WifiConfigurationAp: Got AP records
I (4711) WifiConfigurationAp: Started scan timer for 10 seconds after scan done
I (11119) Application: Free internal: 15636 minimal internal: 9440
I (11906) WifiBoard: Free internal: 15628 minimal internal: 9440
I (19196) wifi:station: ca:a3:e9:bd:45:96 join, AID=1, bgn, 20
I (19197) WifiConfigurationAp: WiFi event received: WIFI_EVENT, id: 14
I (19199) WifiConfigurationAp: Station ca:a3:e9:bd:45:96 joined, AID=1
W (19436) wifi:<ba-add>idx:2 (ifx:1, ca:a3:e9:bd:45:96), tid:0, ssn:0, winSize:64
I (19536) esp_netif_lwip: DHCP server assigned IP to a client, IP is: 192.168.4.2
W (20335) wifi:<ba-add>idx:3 (ifx:1, ca:a3:e9:bd:45:96), tid:6, ssn:0, winSize:64
I (20390) DnsServer: Sending DNS response to 192.168.4.1
I (20393) DnsServer: Sending DNS response to 192.168.4.1
I (20433) WifiConfigurationAp: Handling captive portal request for URI: /generate_204
I (20433) WifiConfigurationAp: Redirecting captive portal to: http://192.168.4.1/?lang=zh-CN
I (20443) DnsServer: Sending DNS response to 192.168.4.1
I (20463) WifiConfigurationAp: Sent redirect response for captive portal
I (20472) WifiConfigurationAp: Handling request for URI: /generate204, sending 204 No Content
I (20484) WifiConfigurationAp: Sent 204 No Content for /generate204
I (20491) WifiConfigurationAp: Handling request for URI: /generate204, sending 204 No Content
I (20505) WifiConfigurationAp: Sent 204 No Content for /generate204
I (20516) WifiConfigurationAp: Handling captive portal request for URI: /generate_204
I (20526) WifiConfigurationAp: Redirecting captive portal to: http://192.168.4.1/?lang=zh-CN
I (21119) Application: Free internal: 4816 minimal internal: 2460
I (21171) WifiConfigurationAp: Sent redirect response for captive portal
W (21172) httpd_txrx: httpd_sock_err: error in recv : 104
I (21906) WifiBoard: Free internal: 3392 minimal internal: 2072
I (22596) WifiConfigurationAp: Handling request for URI: /generate204, sending 204 No Content
I (22598) WifiConfigurationAp: Sent 204 No Content for /generate204
I (23883) WifiConfigurationAp: Handling captive portal request for URI: /generate_204
I (23883) WifiConfigurationAp: Redirecting captive portal to: http://192.168.4.1/?lang=zh-CN
I (23902) WifiConfigurationAp: Sent redirect response for captive portal
I (23910) WifiConfigurationAp: Handling request for URI: /?lang=zh-CN
I (31119) Application: Free internal: 6816 minimal internal: 2072
I (31906) WifiBoard: Free internal: 6816 minimal internal: 2072
W (34880) httpd_txrx: httpd_sock_err: error in send : 11
I (34881) WifiConfigurationAp: Sent index.html
I (41119) Application: Free internal: 6776 minimal internal: 2072
I (41906) WifiBoard: Free internal: 6776 minimal internal: 2072
I (51119) Application: Free internal: 6776 minimal internal: 2072
I (51906) WifiBoard: Free internal: 6776 minimal internal: 2072
I (61119) Application: Free internal: 6776 minimal internal: 2072
I (61906) WifiBoard: Free internal: 6776 minimal internal: 2072
I (71119) Application: Free internal: 6776 minimal internal: 2072
I (71906) WifiBoard: Free internal: 6776 minimal internal: 2072
I (81119) Application: Free internal: 6776 minimal internal: 2072
I (81906) WifiBoard: Free internal: 6776 minimal internal: 2072
I (91119) Application: Free internal: 6776 minimal internal: 2072
I (91906) WifiBoard: Free internal: 6776 minimal internal: 2072

```

![Image](https://github.com/user-attachments/assets/b4034731-0ef5-4256-8d6f-2a9afb259b94)
@HoGC
Copy link

HoGC commented May 19, 2025

看日志剩余内存不多了

Free internal: 6776 minimal internal: 2072

检查下配置,本身C2默认会优化一些内存的,正常应该有20-30K剩余
请删除sdkconfig使用idf.py @main/boards/doit-ai-01-kit/boards.cfg build重现编译,确保使用了正确的配置

@bitloong
Copy link
Author

还是不可以,使用的是vscode+ESP-IDF(v5.3.3),编译和刷固件的日志如下。

PS D:\maqc\code_git\DOIT_AI01>   idf.py @main/boards/doit-ai-01-kit/boards.cfg build
Running: idf.py -DSDKCONFIG_DEFAULTS=sdkconfig.defaults.esp32c2;sdkconfig.defaults;main/boards/doit-ai-01-kit/boards.defaults -DIDF_TARGET=esp32c2 build
Executing action: all (aliases: build)
Running cmake in directory D:\maqc\code_git\DOIT_AI01\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=D:\Espressif_vscode\python_env\idf5.3_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DSDKCONFIG_DEFAULTS=sdkconfig.defaults.esp32c2;sdkconfig.defaults;main/boards/doit-ai-01-kit/boards.defaults -DIDF_TARGET=esp32c2 -DCCACHE_ENABLE=1 D:\maqc\code_git\DOIT_AI01"...
-- Found Git: D:/Espressif_vscode/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Espressif_vscode/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Espressif_vscode/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-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: D:/Espressif_vscode/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c2
NOTICE: Skipping optional dependency: espressif/esp_lcd_st7796
NOTICE: Skipping optional dependency: espressif/esp-sr
NOTICE: Skipping optional dependency: tny-robotics/sh1106-esp-idf
NOTICE: Skipping optional dependency: espressif/esp_lcd_st7796
NOTICE: Skipping optional dependency: espressif/esp-sr
NOTICE: Skipping optional dependency: tny-robotics/sh1106-esp-idf
NOTICE: Skipping optional dependency: espressif/esp_lcd_st7796
NOTICE: Skipping optional dependency: espressif/esp-sr
NOTICE: Skipping optional dependency: tny-robotics/sh1106-esp-idf
NOTICE: Using component placed at D:\maqc\code_git\DOIT_AI01\components\78__esp-opus-encoder for dependency "78/esp-opus-encoder", specified in D:\maqc\code_git\DOIT_AI01\main\idf_component.yml
NOTICE: Using component placed at D:\maqc\code_git\DOIT_AI01\components\espressif__esp_codec_dev for dependency "espressif/esp_codec_dev", specified in D:\maqc\code_git\DOIT_AI01\main\idf_component.yml
NOTICE: Skipping optional dependency: espressif/esp_lcd_st7796
NOTICE: Skipping optional dependency: espressif/esp-sr
NOTICE: Skipping optional dependency: tny-robotics/sh1106-esp-idf
NOTICE: Processing 26 dependencies:
NOTICE: [1/26] 78/esp-ml307 (2.0.0)
NOTICE: [2/26] 78/esp-opus (1.0.5)
NOTICE: [3/26] 78/esp-opus-encoder (2.3.1) (D:\maqc\code_git\DOIT_AI01\components\78__esp-opus-encoder)
NOTICE: [4/26] 78/esp-wifi-connect (2.4.2)
NOTICE: [5/26] 78/esp_lcd_nv3023 (1.0.0)
NOTICE: [6/26] 78/xiaozhi-fonts (1.3.2)
NOTICE: [7/26] espressif/button (4.1.3)
NOTICE: [8/26] espressif/cmake_utilities (0.5.3)
NOTICE: [9/26] espressif/esp_codec_dev (1.3.4) (D:\maqc\code_git\DOIT_AI01\components\espressif__esp_codec_dev)
NOTICE: [10/26] espressif/esp_io_expander (1.0.1)
NOTICE: [11/26] espressif/esp_io_expander_tca9554 (2.0.0)
NOTICE: [12/26] espressif/esp_io_expander_tca95xx_16bit (2.0.0)
NOTICE: [13/26] espressif/esp_lcd_gc9a01 (2.0.1)
NOTICE: [14/26] espressif/esp_lcd_ili9341 (1.2.0)
NOTICE: [15/26] espressif/esp_lcd_panel_io_additions (1.0.1)
NOTICE: [16/26] espressif/esp_lcd_spd2010 (1.0.2)
NOTICE: [17/26] espressif/esp_lcd_st77916 (1.0.1)
NOTICE: [18/26] espressif/esp_lcd_touch (1.1.2)
NOTICE: [19/26] espressif/esp_lcd_touch_ft5x06 (1.0.7)
NOTICE: [20/26] espressif/esp_lvgl_port (2.6.0)
NOTICE: [21/26] espressif/knob (1.0.0)
NOTICE: [22/26] espressif/led_strip (2.5.5)
NOTICE: [23/26] espressif/mdns (1.8.2)
NOTICE: [24/26] lvgl/lvgl (9.2.2)
NOTICE: [25/26] waveshare/esp_lcd_sh8601 (1.0.2)
NOTICE: [26/26] idf (5.3.3)
NOTICE: Skipping optional dependency: espressif/esp_lcd_st7796
NOTICE: Skipping optional dependency: espressif/esp-sr
NOTICE: Skipping optional dependency: tny-robotics/sh1106-esp-idf
-- Project sdkconfig file D:/maqc/code_git/DOIT_AI01/sdkconfig
Loading defaults file D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2...
D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2:15 CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE was replaced with CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE

D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2:16 CONFIG_IPC_TASK_STACK_SIZE was replaced with CONFIG_ESP_IPC_TASK_STACK_SIZE
D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2:17 CONFIG_TIMER_TASK_STACK_SIZE was replaced with CONFIG_ESP_TIMER_TASK_STACK_SIZE
Loading defaults file D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults...
Loading defaults file D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2...
D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2:15 CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE was replaced with CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE

D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2:16 CONFIG_IPC_TASK_STACK_SIZE was replaced with CONFIG_ESP_IPC_TASK_STACK_SIZE
D:/maqc/code_git/DOIT_AI01/sdkconfig.defaults.esp32c2:17 CONFIG_TIMER_TASK_STACK_SIZE was replaced with CONFIG_ESP_TIMER_TASK_STACK_SIZE
Loading defaults file D:/maqc/code_git/DOIT_AI01/main/boards/doit-ai-01-kit/boards.defaults...
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/riscv/ld/rom.api.ld
-- Found Python3: D:/Espressif_vscode/python_env/idf5.3_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "xiaozhi" version: 1.6.2
-- Adding linker script D:/maqc/code_git/DOIT_AI01/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script D:/maqc/code_git/DOIT_AI01/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.api.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.rvfp.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.wdt.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.systimer.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.version.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.ble.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.newlib.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.newlib-nano.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.heap.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/soc/esp32c2/ld/esp32c2.peripherals.ld
-- ESP_LCD_NV3023: 1.0.0
-- BUTTON: 4.1.3
-- ESP_LCD_GC9A01: 2.0.1
-- ESP_LCD_ILI9341: 1.2.0
-- ESP_LCD_PANEL_IO_ADDITIONS: 1.0.1
-- ESP_LCD_SPD2010: 1.0.2
-- ESP_LCD_ST77916: 1.0.1
-- LVGL version: 9.2.2
-- KNOB: 1.0.0
-- ESP_LCD_SH8601: 1.0.2
-- Component idf::main will be linked with -Wl,--whole-archive
-- Components: 78__esp-ml307 78__esp-opus 78__esp-opus-encoder 78__esp-wifi-connect 78__esp_lcd_nv3023 78__xiaozhi-fonts app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex esp_common esp_driver_ana_cmpr esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_uart esp_driver_usb_serial_jtag esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_vfs_console esp_wifi espcoredump espressif__button espressif__cmake_utilities espressif__esp_codec_dev espressif__esp_io_expander espressif__esp_io_expander_tca9554 espressif__esp_io_expander_tca95xx_16bit espressif__esp_lcd_gc9a01 espressif__esp_lcd_ili9341 espressif__esp_lcd_panel_io_additions espressif__esp_lcd_spd2010 espressif__esp_lcd_st77916 espressif__esp_lcd_touch espressif__esp_lcd_touch_ft5x06 espressif__esp_lvgl_port espressif__knob espressif__led_strip espressif__mdns esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lvgl__lvgl lwip main mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vb6824 vfs waveshare__esp_lcd_sh8601 wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: D:/maqc/code_git/DOIT_AI01/managed_components/78__esp-ml307 D:/maqc/code_git/DOIT_AI01/managed_components/78__esp-opus D:/maqc/code_git/DOIT_AI01/components/78__esp-opus-encoder D:/maqc/code_git/DOIT_AI01/managed_components/78__esp-wifi-connect D:/maqc/code_git/DOIT_AI01/managed_components/78__esp_lcd_nv3023 D:/maqc/code_git/DOIT_AI01/managed_components/78__xiaozhi-fonts D:/esp/v5.3.3/esp-idf/components/app_trace D:/esp/v5.3.3/esp-idf/components/app_update D:/esp/v5.3.3/esp-idf/components/bootloader D:/esp/v5.3.3/esp-idf/components/bootloader_support D:/esp/v5.3.3/esp-idf/components/bt D:/esp/v5.3.3/esp-idf/components/cmock D:/esp/v5.3.3/esp-idf/components/console D:/esp/v5.3.3/esp-idf/components/cxx D:/esp/v5.3.3/esp-idf/components/driver D:/esp/v5.3.3/esp-idf/components/efuse D:/esp/v5.3.3/esp-idf/components/esp-tls D:/esp/v5.3.3/esp-idf/components/esp_adc D:/esp/v5.3.3/esp-idf/components/esp_app_format D:/esp/v5.3.3/esp-idf/components/esp_bootloader_format D:/esp/v5.3.3/esp-idf/components/esp_coex D:/esp/v5.3.3/esp-idf/components/esp_common D:/esp/v5.3.3/esp-idf/components/esp_driver_ana_cmpr D:/esp/v5.3.3/esp-idf/components/esp_driver_cam D:/esp/v5.3.3/esp-idf/components/esp_driver_dac D:/esp/v5.3.3/esp-idf/components/esp_driver_gpio D:/esp/v5.3.3/esp-idf/components/esp_driver_gptimer D:/esp/v5.3.3/esp-idf/components/esp_driver_i2c D:/esp/v5.3.3/esp-idf/components/esp_driver_i2s D:/esp/v5.3.3/esp-idf/components/esp_driver_isp D:/esp/v5.3.3/esp-idf/components/esp_driver_jpeg D:/esp/v5.3.3/esp-idf/components/esp_driver_ledc D:/esp/v5.3.3/esp-idf/components/esp_driver_mcpwm D:/esp/v5.3.3/esp-idf/components/esp_driver_parlio D:/esp/v5.3.3/esp-idf/components/esp_driver_pcnt D:/esp/v5.3.3/esp-idf/components/esp_driver_ppa D:/esp/v5.3.3/esp-idf/components/esp_driver_rmt D:/esp/v5.3.3/esp-idf/components/esp_driver_sdio D:/esp/v5.3.3/esp-idf/components/esp_driver_sdm D:/esp/v5.3.3/esp-idf/components/esp_driver_sdmmc D:/esp/v5.3.3/esp-idf/components/esp_driver_sdspi D:/esp/v5.3.3/esp-idf/components/esp_driver_spi D:/esp/v5.3.3/esp-idf/components/esp_driver_touch_sens D:/esp/v5.3.3/esp-idf/components/esp_driver_tsens D:/esp/v5.3.3/esp-idf/components/esp_driver_uart D:/esp/v5.3.3/esp-idf/components/esp_driver_usb_serial_jtag D:/esp/v5.3.3/esp-idf/components/esp_eth D:/esp/v5.3.3/esp-idf/components/esp_event D:/esp/v5.3.3/esp-idf/components/esp_gdbstub D:/esp/v5.3.3/esp-idf/components/esp_hid D:/esp/v5.3.3/esp-idf/components/esp_http_client D:/esp/v5.3.3/esp-idf/components/esp_http_server D:/esp/v5.3.3/esp-idf/components/esp_https_ota D:/esp/v5.3.3/esp-idf/components/esp_https_server D:/esp/v5.3.3/esp-idf/components/esp_hw_support D:/esp/v5.3.3/esp-idf/components/esp_lcd D:/esp/v5.3.3/esp-idf/components/esp_local_ctrl D:/esp/v5.3.3/esp-idf/components/esp_mm D:/esp/v5.3.3/esp-idf/components/esp_netif D:/esp/v5.3.3/esp-idf/components/esp_netif_stack D:/esp/v5.3.3/esp-idf/components/esp_partition D:/esp/v5.3.3/esp-idf/components/esp_phy D:/esp/v5.3.3/esp-idf/components/esp_pm D:/esp/v5.3.3/esp-idf/components/esp_psram D:/esp/v5.3.3/esp-idf/components/esp_ringbuf D:/esp/v5.3.3/esp-idf/components/esp_rom D:/esp/v5.3.3/esp-idf/components/esp_system D:/esp/v5.3.3/esp-idf/components/esp_timer D:/esp/v5.3.3/esp-idf/components/esp_vfs_console D:/esp/v5.3.3/esp-idf/components/esp_wifi D:/esp/v5.3.3/esp-idf/components/espcoredump D:/maqc/code_git/DOIT_AI01/managed_components/espressif__button D:/maqc/code_git/DOIT_AI01/managed_components/espressif__cmake_utilities D:/maqc/code_git/DOIT_AI01/components/espressif__esp_codec_dev D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_io_expander D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_io_expander_tca9554 D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_io_expander_tca95xx_16bit D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lcd_gc9a01 D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lcd_ili9341 D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lcd_panel_io_additions D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lcd_spd2010 D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lcd_st77916 D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lcd_touch D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lcd_touch_ft5x06 D:/maqc/code_git/DOIT_AI01/managed_components/espressif__esp_lvgl_port D:/maqc/code_git/DOIT_AI01/managed_components/espressif__knob D:/maqc/code_git/DOIT_AI01/managed_components/espressif__led_strip D:/maqc/code_git/DOIT_AI01/managed_components/espressif__mdns D:/esp/v5.3.3/esp-idf/components/esptool_py D:/esp/v5.3.3/esp-idf/components/fatfs D:/esp/v5.3.3/esp-idf/components/freertos D:/esp/v5.3.3/esp-idf/components/hal D:/esp/v5.3.3/esp-idf/components/heap D:/esp/v5.3.3/esp-idf/components/http_parser D:/esp/v5.3.3/esp-idf/components/idf_test D:/esp/v5.3.3/esp-idf/components/ieee802154 D:/esp/v5.3.3/esp-idf/components/json D:/esp/v5.3.3/esp-idf/components/log D:/maqc/code_git/DOIT_AI01/managed_components/lvgl__lvgl D:/esp/v5.3.3/esp-idf/components/lwip D:/maqc/code_git/DOIT_AI01/main D:/esp/v5.3.3/esp-idf/components/mbedtls D:/esp/v5.3.3/esp-idf/components/mqtt D:/esp/v5.3.3/esp-idf/components/newlib D:/esp/v5.3.3/esp-idf/components/nvs_flash D:/esp/v5.3.3/esp-idf/components/nvs_sec_provider D:/esp/v5.3.3/esp-idf/components/openthread D:/esp/v5.3.3/esp-idf/components/partition_table D:/esp/v5.3.3/esp-idf/components/protobuf-c D:/esp/v5.3.3/esp-idf/components/protocomm D:/esp/v5.3.3/esp-idf/components/pthread D:/esp/v5.3.3/esp-idf/components/riscv D:/esp/v5.3.3/esp-idf/components/sdmmc D:/esp/v5.3.3/esp-idf/components/soc D:/esp/v5.3.3/esp-idf/components/spi_flash D:/esp/v5.3.3/esp-idf/components/spiffs D:/esp/v5.3.3/esp-idf/components/tcp_transport D:/esp/v5.3.3/esp-idf/components/ulp D:/esp/v5.3.3/esp-idf/components/unity D:/esp/v5.3.3/esp-idf/components/usb D:/maqc/code_git/DOIT_AI01/components/vb6824 D:/esp/v5.3.3/esp-idf/components/vfs D:/maqc/code_git/DOIT_AI01/managed_components/waveshare__esp_lcd_sh8601 D:/esp/v5.3.3/esp-idf/components/wear_levelling D:/esp/v5.3.3/esp-idf/components/wifi_provisioning D:/esp/v5.3.3/esp-idf/components/wpa_supplicant
-- Configuring done (24.8s)
-- Generating done (2.2s)
-- Build files have been written to: D:/maqc/code_git/DOIT_AI01/build
Running ninja in directory D:\maqc\code_git\DOIT_AI01\build
Executing "ninja all"...
[62/1608] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
ota_0,app,ota_0,0x10000,1984K,
ota_1,app,ota_1,0x200000,1984K,
*******************************************************************************
[1483/1608] Building C object esp-idf/vb6824/CMakeFiles/__idf_vb6824.dir/vb6824.c.obj
D:/maqc/code_git/DOIT_AI01/components/vb6824/vb6824.c:96:27: warning: 'check_wakeword' defined but not used [-Wunused-variable]
   96 | static esp_timer_handle_t check_wakeword = NULL;
      |                           ^~~~~~~~~~~~~~
D:/maqc/code_git/DOIT_AI01/components/vb6824/vb6824.c:95:27: warning: 'start_ota_timer' defined but not used [-Wunused-variable]
   95 | static esp_timer_handle_t start_ota_timer = NULL;
      |                           ^~~~~~~~~~~~~~~
[1599/1608] Performing configure step for 'bootloader'
-- Found Git: D:/Espressif_vscode/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Espressif_vscode/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Espressif_vscode/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-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: D:/Espressif_vscode/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c2
-- Project sdkconfig file D:/maqc/code_git/DOIT_AI01/sdkconfig
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/riscv/ld/rom.api.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/soc/esp32c2/ld/esp32c2.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.api.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.rvfp.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.wdt.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.systimer.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.version.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/esp_rom/esp32c2/ld/esp32c2.rom.newlib.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/bootloader/subproject/main/ld/esp32c2/bootloader.ld
-- Adding linker script D:/esp/v5.3.3/esp-idf/components/bootloader/subproject/main/ld/esp32c2/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table riscv soc spi_flash
-- Component paths: D:/esp/v5.3.3/esp-idf/components/bootloader D:/esp/v5.3.3/esp-idf/components/bootloader_support D:/esp/v5.3.3/esp-idf/components/efuse D:/esp/v5.3.3/esp-idf/components/esp_app_format D:/esp/v5.3.3/esp-idf/components/esp_bootloader_format D:/esp/v5.3.3/esp-idf/components/esp_common D:/esp/v5.3.3/esp-idf/components/esp_hw_support D:/esp/v5.3.3/esp-idf/components/esp_rom D:/esp/v5.3.3/esp-idf/components/esp_system D:/esp/v5.3.3/esp-idf/components/esptool_py D:/esp/v5.3.3/esp-idf/components/freertos D:/esp/v5.3.3/esp-idf/components/hal D:/esp/v5.3.3/esp-idf/components/log D:/esp/v5.3.3/esp-idf/components/bootloader/subproject/main D:/esp/v5.3.3/esp-idf/components/bootloader/subproject/components/micro-ecc D:/esp/v5.3.3/esp-idf/components/newlib D:/esp/v5.3.3/esp-idf/components/partition_table D:/esp/v5.3.3/esp-idf/components/riscv D:/esp/v5.3.3/esp-idf/components/soc D:/esp/v5.3.3/esp-idf/components/spi_flash
-- Configuring done (26.7s)
-- Generating done (0.2s)
-- Build files have been written to: D:/maqc/code_git/DOIT_AI01/build/bootloader
[94/95] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32c2 image...
Merged 2 ELF sections
Successfully created esp32c2 image.
Generated D:/maqc/code_git/DOIT_AI01/build/bootloader/bootloader.bin
[95/95] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\maqc\code_git\DOIT_AI01\...ootloader 0x0 D:/maqc/code_git/DOIT_AI01/build/bootloader/bootloader.bin" 
Bootloader binary size 0x3250 bytes. 0x4db0 bytes (61%) free.
[1607/1608] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32c2 image...
Merged 2 ELF sections
Successfully created esp32c2 image.
Generated D:/maqc/code_git/DOIT_AI01/build/xiaozhi.bin
[1608/1608] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\maqc\code_git\DOIT_A...n_table/partition-table.bin D:/maqc/code_git/DOIT_AI01/build/xiaozhi.bin" 
xiaozhi.bin binary size 0x14f760 bytes. Smallest app partition is 0x1f0000 bytes. 0xa08a0 bytes (32%) free.

Project build complete. To flash, run:
 idf.py flash
or
 idf.py -p PORT flash
or
 python -m esptool --chip esp32c2 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 60m 0x0 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0xd000 build\ota_data_initial.bin 0x10000 build\xiaozhi.bin       
or from the "D:\maqc\code_git\DOIT_AI01\build" directory
 python -m esptool --chip esp32c2 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
PS D:\maqc\code_git\DOIT_AI01> idf.py flash                                                                                                           
Executing action: flash                                                                                                                               
Serial port COM4
Connecting....
Detecting chip type... ESP32-C2
Running ninja in directory D:\maqc\code_git\DOIT_AI01\build
Executing "ninja flash"...
[1/5] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\maqc\code_git\DOIT_AI01\bu...n_table/partition-table.bin D:/maqc/code_git/DOIT_AI01/build/xiaozhi.bin" 
xiaozhi.bin binary size 0x14f760 bytes. Smallest app partition is 0x1f0000 bytes. 0xa08a0 bytes (32%) free.
[1/1] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\maqc\code_git\DOIT_AI01\bu...ootloader 0x0 D:/maqc/code_git/DOIT_AI01/build/bootloader/bootloader.bin" 
Bootloader binary size 0x3250 bytes. 0x4db0 bytes (61%) free.
[4/5] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\esp\v5.3.3\esp-idf\compone...ild -P D:/esp/v5.3.3/esp-idf/components/esptool_py/run_serial_tool.cmake" 
esptool.py --chip esp32c2 -p COM4 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 60m --flash_size 4MB 0x0 bootloader/bootloader.bin 0x10000 xiaozhi.bin 0x8000 partition_table/partition-table.bin 0xd000 ota_data_initial.bin
esptool.py v4.8.1
Serial port COM4
Connecting...
Chip is ESP32-C2 (revision v1.2)
Features: WiFi, BLE
Crystal is 26MHz
MAC: 78:1c:3c:4c:4f:60
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00010000 to 0x0015ffff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000d000 to 0x0000efff...
SHA digest in image updated
Compressed 12880 bytes to 9452...
Writing at 0x00000000... (100 %)
Wrote 12880 bytes (9452 compressed) at 0x00000000 in 0.4 seconds (effective 232.1 kbit/s)...
Hash of data verified.
Compressed 1374048 bytes to 855316...
Writing at 0x00010000... (1 %)
Writing at 0x0001bb7e... (3 %)
Writing at 0x00022778... (5 %)
Writing at 0x00026a76... (7 %)
Writing at 0x0002ac28... (9 %)
Writing at 0x0002f2b0... (11 %)
Writing at 0x00039636... (13 %)
Writing at 0x0003e7bc... (15 %)
Writing at 0x0004366a... (16 %)
Writing at 0x00048b4c... (18 %)
Writing at 0x0004f254... (20 %)
Writing at 0x00056e40... (22 %)
Writing at 0x00060e59... (24 %)
Writing at 0x0006df36... (26 %)
Writing at 0x00074b7f... (28 %)
Writing at 0x0007b105... (30 %)
Writing at 0x00081cb8... (32 %)
Writing at 0x00087f3e... (33 %)
Writing at 0x0008d6e8... (35 %)
Writing at 0x00092873... (37 %)
Writing at 0x00097c02... (39 %)
Writing at 0x0009cf04... (41 %)
Writing at 0x000a2c70... (43 %)
Writing at 0x000a8ac1... (45 %)
Writing at 0x000aeb96... (47 %)
Writing at 0x000b4aea... (49 %)
Writing at 0x000bad09... (50 %)
Writing at 0x000c0c36... (52 %)
Writing at 0x000c69a1... (54 %)
Writing at 0x000ccaf1... (56 %)
Writing at 0x000d25d4... (58 %)
Writing at 0x000d7f9f... (60 %)
Writing at 0x000ddd00... (62 %)
Writing at 0x000e3fd1... (64 %)
Writing at 0x000e9ac4... (66 %)
Writing at 0x000ef8ae... (67 %)
Writing at 0x000f5516... (69 %)
Writing at 0x000fb767... (71 %)
Writing at 0x001018d0... (73 %)
Writing at 0x00107d00... (75 %)
Writing at 0x0010e0fb... (77 %)
Writing at 0x00113a52... (79 %)
Writing at 0x00119240... (81 %)
Writing at 0x0011ec6e... (83 %)
Writing at 0x00126af2... (84 %)
Writing at 0x0012fa66... (86 %)
Writing at 0x00137deb... (88 %)
Writing at 0x0013fef9... (90 %)
Writing at 0x00145fbe... (92 %)
Writing at 0x0014bb6b... (94 %)
Writing at 0x00151b88... (96 %)
Writing at 0x00157b69... (98 %)
Writing at 0x0015e0f5... (100 %)
Wrote 1374048 bytes (855316 compressed) at 0x00010000 in 20.8 seconds (effective 529.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.1 seconds (effective 435.4 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 31...
Writing at 0x0000d000... (100 %)
Wrote 8192 bytes (31 compressed) at 0x0000d000 in 0.1 seconds (effective 688.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done
PS D:\maqc\code_git\DOIT_AI01> 

文件没有发送完整
Image

Image

@HoGC
Copy link

HoGC commented May 19, 2025

提供下sdkconfig文件

@bitloong
Copy link
Author

提供下sdkconfig文件
为了上传,添加了后缀.txt

sdkconfig.txt

@HoGC
Copy link

HoGC commented May 21, 2025

Image

这是你的配置

CONFIG_USE_AUDIO_CODEC_ENCODE_OPUS=y
# CONFIG_USE_AUDIO_CODEC_DECODE_OPUS is not set
CONFIG_TACKGROUND_TASK_STACK_SIZE=26624
CONFIG_AUDIO_LOOP_TASK_STACK_SIZE=2048

根据Kconfig.projbuild的配置,如果你选择了AI-01,会打开USE_AUDIO_CODEC_ENCODE_OPUS,同时TACKGROUND_TASK_STACK_SIZE会为8960,看你的配置使用的是32768,任务栈太大,导致内存不足
默认配置项只有在没有sdkconfig才有用的,你确认删除旧的sdkconfig了吗,或者你手动把TACKGROUND_TASK_STACK_SIZE改为8960

@bitloong
Copy link
Author

牛 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants