esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

arvin123
Posts: 7
Joined: Wed Sep 06, 2023 2:19 pm

esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby arvin123 » Wed Sep 06, 2023 2:31 pm

使用的VS_CODE搭建的编译环境,安装的esp-idf-v5.1.1,编译hello_world可正常编译;
编译源码esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo时,报错,请问这是什么问题
又从Github上下载源码esp-box-master.zip, 里面的例程源码也是一样的问题
请问还有什么需要配置的吗?

我看了main文件夹下的CMakeLists.txt
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS
../../components
)

add_compile_options(-fdiagnostics-color=always)

project(factory_demo)


编译时的log:
-- Found Git: E:/Aw/ESP32/ESP32_IDF/.espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
CMake Error at E:/Aw/ESP32/ESP32_IDF/esp-idf/tools/cmake/project.cmake:349 (message):
Directory specified in EXTRA_COMPONENT_DIRS doesn't exist:
E:/Aw/ESP32/components
Call Stack (most recent call first):
E:/Aw/ESP32/ESP32_IDF/esp-idf/tools/cmake/project.cmake:433 (__project_init)
CMakeLists.txt:13 (project)


-- Configuring incomplete, errors occurred!
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -S e:\Aw\ESP32\ESP32_TEST\factory_demo -B e:\Aw\ESP32\ESP32_TEST\factory_demo\build”已终止,退出代码: 1。

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby ESP_Xuxin » Thu Sep 07, 2023 2:44 am

你本地就只有 factory_demo 的 example,有整个工程的代码吗,在 example 的同级目录,有一个 components 文件夹,放置着公用 BSP。

arvin123
Posts: 7
Joined: Wed Sep 06, 2023 2:19 pm

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby arvin123 » Thu Sep 07, 2023 1:00 pm

目前加了BSP可以编译了,但是还是有些错误
1.E:/Aw/ESP32/ESP32_TEST/factory_demo/main/app/app_led.c:159:9: error: 'BOTTOM_ID_UNKNOW' undeclared (first use in this function)

2.E:/Aw/ESP32/ESP32_TEST/factory_demo/main/app/app_sr.c:166:21: error: implicit declaration of function 'bsp_get_system_sleep_mode' [-Werror=implicit-function-declaration]

3.E:/Aw/ESP32/ESP32_TEST/factory_demo/main/app/app_wifi.c:50:33: error: 'CONFIG_EXAMPLE_WIFI_LISTEN_INTERVAL' undeclared (first use in this function)

arvin123
Posts: 7
Joined: Wed Sep 06, 2023 2:19 pm

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby arvin123 » Thu Sep 07, 2023 1:04 pm

还有这个每次都要从https://github.com/espressif/esp-rainmaker.git check很久,有时候还会失败,这个能修改为国内的链接吗
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby ESP_Xuxin » Fri Sep 08, 2023 2:31 am

你拉个完整工程吧,感觉 factory project 和 bsp 没对上

arvin123
Posts: 7
Joined: Wed Sep 06, 2023 2:19 pm

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby arvin123 » Tue Sep 12, 2023 1:13 pm

完整工程编译可以正常了,再请教一个问题:
我买的是lite板,烧录升级编译的文件后,一直Reset,感觉像是板子不匹配
sdkconfig文件中也加入了这个了
#
# HMI Board Config
#
# CONFIG_BSP_BOARD_ESP32_S3_BOX is not set
CONFIG_BSP_BOARD_ESP32_S3_BOX_Lite=y
# end of HMI Board Config

这是Log:
ELF file SHA256: 7d58160b

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
Saved PC:0x40379ec0
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x186c
load:0x403c9700,len:0x4
load:0x403c9704,len:0xd88
load:0x403cc700,len:0x3070
entry 0x403c9934
[0;32mI (26) boot: ESP-IDF v5.1.1 2nd stage bootloader[0m
[0;32mI (26) boot: compile time Sep 11 2023 21:03:53[0m
[0;32mI (26) boot: Multicore bootloader[0m
[0;32mI (29) boot: chip revision: v0.1[0m
[0;32mI (33) qio_mode: Enabling default flash chip QIO[0m
[0;32mI (38) boot.esp32s3: Boot SPI Speed : 80MHz[0m
[0;32mI (43) boot.esp32s3: SPI Mode : QIO[0m
[0;32mI (48) boot.esp32s3: SPI Flash Size : 16MB[0m
[0;32mI (53) boot: Enabling RNG early entropy source...[0m
[0;32mI (58) boot: Partition Table:[0m
[0;32mI (62) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (69) boot: 0 sec_cert Unknown data 01 06 0000d000 00003000[0m
[0;32mI (76) boot: 1 nvs WiFi data 01 02 00010000 00006000[0m
[0;32mI (84) boot: 2 otadata OTA data 01 00 00016000 00002000[0m
[0;32mI (91) boot: 3 phy_init RF data 01 01 00018000 00001000[0m
[0;32mI (99) boot: 4 fctry WiFi data 01 02 00019000 00006000[0m
[0;32mI (106) boot: 5 ota_0 OTA app 00 10 00020000 0041a000[0m
[0;32mI (114) boot: 6 storage Unknown data 01 82 0043a000 0028a000[0m
[0;32mI (121) boot: 7 model Unknown data 01 82 006c4000 00866000[0m
[0;32mI (129) boot: End of partition table[0m
[0;32mI (133) esp_image: segment 0: paddr=00020020 vaddr=3c170020 size=228ca8h (2264232) map[0m
[0;32mI (485) esp_image: segment 1: paddr=00248cd0 vaddr=3fca4000 size=07348h ( 29512) load[0m
[0;32mI (491) esp_image: segment 2: paddr=00250020 vaddr=42000020 size=1645dch (1459676) map[0m
[0;32mI (712) esp_image: segment 3: paddr=003b4604 vaddr=3fcab348 size=009fch ( 2556) load[0m
[0;32mI (713) esp_image: segment 4: paddr=003b5008 vaddr=40378000 size=1bf28h (114472) load[0m
[0;32mI (740) esp_image: segment 5: paddr=003d0f38 vaddr=50000000 size=00004h ( 4) load[0m
[0;32mI (741) esp_image: segment 6: paddr=003d0f44 vaddr=600fe000 size=0005ch ( 92) load[0m
[0;32mI (758) boot: Loaded app from partition at offset 0x20000[0m
[0;32mI (758) boot: Disabling RNG early entropy source...[0m
[0;32mI (759) cpu_start: Multicore app[0m
[0;32mI (763) octal_psram: vendor id : 0x0d (AP)[0m
[0;32mI (767) octal_psram: dev id : 0x02 (generation 3)[0m
[0;32mI (773) octal_psram: density : 0x03 (64 Mbit)[0m
[0;32mI (779) octal_psram: good-die : 0x01 (Pass)[0m
[0;32mI (784) octal_psram: Latency : 0x01 (Fixed)[0m
[0;32mI (789) octal_psram: VCC : 0x01 (3V)[0m
[0;32mI (794) octal_psram: SRF : 0x01 (Fast Refresh)[0m
[0;32mI (800) octal_psram: BurstType : 0x01 (Hybrid Wrap)[0m
[0;32mI (806) octal_psram: BurstLen : 0x01 (32 Byte)[0m
[0;32mI (812) octal_psram: Readlatency : 0x02 (10 cycles@Fixed)[0m
[0;32mI (818) octal_psram: DriveStrength: 0x00 (1/1)[0m
[0;32mI (824) MSPI Timing: PSRAM timing tuning index: 5[0m
[0;32mI (828) esp_psram: Found 8MB PSRAM device[0m
[0;32mI (833) esp_psram: Speed: 80MHz[0m
[0;32mI (837) cpu_start: Pro cpu up.[0m
[0;32mI (841) cpu_start: Starting app cpu, entry point is 0x40379ac8[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (1168) esp_psram: SPI SRAM memory test OK[0m
[0;32mI (1177) cpu_start: Pro cpu start user code[0m
[0;32mI (1177) cpu_start: cpu freq: 240000000 Hz[0m
[0;32mI (1177) cpu_start: Application information:[0m
[0;32mI (1177) cpu_start: Project name: factory_demo[0m
[0;32mI (1178) cpu_start: App version: 1[0m
[0;32mI (1178) cpu_start: Compile time: Sep 11 2023 21:54:16[0m
[0;32mI (1178) cpu_start: ELF file SHA256: 7d58160b...[0m
[0;32mI (1178) cpu_start: ESP-IDF: v5.1.1[0m
[0;32mI (1178) cpu_start: Min chip rev: v0.0[0m
[0;32mI (1179) cpu_start: Max chip rev: v0.99 [0m
[0;32mI (1179) cpu_start: Chip rev: v0.1[0m
[0;32mI (1179) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (1179) heap_init: At 3FCB24E8 len 00037228 (220 KiB): DRAM[0m
[0;32mI (1179) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM[0m
[0;32mI (1180) heap_init: At 600FE05C len 00001F8C (7 KiB): RTCRAM[0m
[0;32mI (1180) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator[0m
[0;32mI (1181) spi_flash: detected chip: gd[0m
[0;32mI (1181) spi_flash: flash io: qio[0m
[0;32mI (1182) sleep: Configure to isolate all GPIO pins in sleep state[0m
[0;32mI (1182) sleep: Enable automatic switching of GPIO sleep configuration[0m
[0;32mI (1182) pm: Frequency switching config: CPU_MAX: 240, APB_MAX: 80, APB_MIN: 40, Light sleep: DISABLED[0m
[0;32mI (1183) coexist: coex firmware version: 80b0d89[0m
[0;32mI (1183) coexist: coexist rom version e7ae62f[0m
[0;32mI (1183) app_start: Starting scheduler on CPU0[0m
[0;32mI (0) app_start: Starting scheduler on CPU1[0m
[0;32mI (1184) main_task: Started on CPU0[0m
[0;32mI (1185) esp_psram: Reserving pool of 8K of internal memory for DMA/internal allocations[0m
[0;32mI (1186) main_task: Calling app_main()[0m
[0;32mI (1186) main: Compile time: Sep 12 2023 21:01:17[0m
Compile time: Sep 12 2023 21:01:17test001
[0;32mI (1407) ESP-BOX: Partition size: total: 2439971, used: 1376986[0m
[0;32mI (1408) LVGL: Starting LVGL task[0m
[0;32mI (1409) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (1410) gpio: GPIO[48]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (1532) gpio: GPIO[3]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:2 [0m
[0;31mE (1533) lcd_panel.io.i2c: panel_io_i2c_rx_buffer(135): i2c transaction failed[0m
[0;31mE (1533) TT21100: esp_lcd_touch_tt21100_read_data(202): I2C read error![0m
[0;31mE (1533) TT21100: esp_lcd_touch_new_i2c_tt21100(113): TT21100 init failed[0m
[0;31mE (1533) TT21100: Error (0xffffffff)! Touch controller TT21100 initialization failed![0m
[0;32mI (1534) gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff at 0x42042ede
file: "./components/espressif__esp-box/esp-box.c" line 424
func: bsp_display_indev_init
expression: bsp_touch_new(((void *)0), &tp)

abort() was called at PC 0x4038b567 on core 0


Backtrace: 0x4037a03e:0x3fcb6000 0x4038b571:0x3fcb6020 0x40390cbe:0x3fcb6040 0x4038b567:0x3fcb60b0 0x42042ede:0x3fcb60e0 0x42042f75:0x3fcb6110 0x42008f7a:0x3fcb6130 0x42160e46:0x3fcb6190 0x4038bcfa:0x3fcb61c0

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby ESP_Xuxin » Tue Sep 12, 2023 1:35 pm

menuconfig 选择一下开发板

arvin123
Posts: 7
Joined: Wed Sep 06, 2023 2:19 pm

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby arvin123 » Thu Sep 14, 2023 12:59 pm

再请教一下,升级完factory_demo例程后,功能都正常,usb链接电脑的串口不见了,不能看Debug信息了
menuconfig中ESP System Settings 默认选择的是USB Serial/JTAG Controller

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby ESP_Xuxin » Thu Sep 14, 2023 1:33 pm

这个例程原始例程是没有使用 USB 口的,配置项对
请烧写官方固件对照下先
https://espressif.github.io/esp-launchp ... aunch.toml

arvin123
Posts: 7
Joined: Wed Sep 06, 2023 2:19 pm

Re: esp-box-0.5.0\esp-box-0.5.0\examples\factory_demo 编译出错

Postby arvin123 » Tue Sep 19, 2023 1:03 pm

有没有配置Lite板的USB debug通道的Demo例程啊,为了节约时间,我看看能不能自己加到此例程中
因为白天没时间弄,只有晚上有点时间搞一下,

Who is online

Users browsing this forum: No registered users and 9 guests