ESP IoT Solution 的example

Moderator: ESP_Bob

Calvin1261
Posts: 3
Joined: Wed Jun 01, 2022 10:12 am

ESP IoT Solution 的example

Postby Calvin1261 » Wed Jun 01, 2022 10:27 am

大家好,我是个ESP的初学者,使用的是ESP T01,当我尝试使用ESP IOT solution 里screen 的example 时出现了一些问题
我设置了接口,对应的设备选择了ESP32S2,然后能够成功的build 和 flash 进我的开发板,但是当我monitor时遇到了一下问题。
使用的文件是这里的 https://github.com/espressif/esp-iot-so ... les/screen

[Codebox]
PS C:\Espressif\frameworks\esp-iot-solution\examples\screen> c:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:\Users\User\esp\esp-idf\tools\idf.py -p COM3 monitor
Executing action: monitor
Running idf_monitor in directory c:\espressif\frameworks\esp-iot-solution\examples\screen
Executing "C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:\Users\User\esp\esp-idf\tools/idf_monitor.py -p COM3 -b 115200 --toolchain-prefix xtensa-esp32s2-elf- --target esp32s2 c:\espressif\frameworks\esp-iot-solution\examples\screen\build\screen_demo.elf -m 'C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe' 'C:\Users\User\esp\esp-idf\tools\idf.py' '-p' 'COM3'"...
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM3 instead...
--- idf_monitor on \\.\COM3 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
J�.�}���� creat failed
E (322) Board: C:/Espressif/frameworks/esp-iot-solution/�ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x176c
load:0x4004c000,len:0xa48
load:0x40050000,len:0x2e58
SHA-256 comparison failed:
Calculated: 7a26bb223ada2809c2953cf64e0a9b72bb0763b9ca063725dd33d1610877b40b
Expected: 3d7f5f67c361f203f4352107ddb2487fe49e1af1a5e3f8769fb4e8bc042e0b0a
Attempting to boot anyway...
entry 0x4004c204
I (40) boot: ESP-IDF v4.4.1-dirty 2nd stage bootloader
I (40) boot: compile time 18:04:37
I (40) boot: chip revision: 0
I (43) boot.esp32s2: SPI Speed : 80MHz
I (48) boot.esp32s2: SPI Mode : DIO
I (52) boot.esp32s2: SPI Flash Size : 16MB
I (57) boot: Enabling RNG early entropy source...
I (62) boot: Partition Table:
I (66) boot: ## Label Usage Type ST Offset Length
I (73) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (81) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (88) boot: 2 factory factory app 00 00 00010000 00100000
I (96) boot: End of partition table
I (100) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=19fech (106476) map
I (130) esp_image: segment 1: paddr=0002a014 vaddr=3ffbfd00 size=01f58h ( 8024) load
I (132) esp_image: segment 2: paddr=0002bf74 vaddr=40022000 size=040a4h ( 16548) load
I (140) esp_image: segment 3: paddr=00030020 vaddr=40080020 size=230f4h (143604) map
I (173) esp_image: segment 4: paddr=0005311c vaddr=400260a4 size=09c58h ( 40024) load
I (183) esp_image: segment 5: paddr=0005cd7c vaddr=50000000 size=00010h ( 16) load
I (190) boot: Loaded app from partition at offset 0x10000
I (190) boot: Disabling RNG early entropy source...
I (203) cach��~���~f~�tion cache : size 8KB, 4Ways, cache line size 32Byte
I (204) cpu_start: Pro cpu up.
I (215) cpu_start: Pro cpu start user code
I (215) cpu_start: cpu freq: 160000000
I (215) cpu_start: Application information:
I (220) cpu_start: Project name: screen_demo
I (225) cpu_start: App version: 5e5c4aa-dirty
I (231) cpu_start: Compile time: Jun 1 2022 18:04:15
I (237) cpu_start: ELF file SHA256: 50cd5aad015728e0...
I (243) cpu_start: ESP-IDF: v4.4.1-dirty
I (248) heap_init: Initializing. RAM available for dynamic allocation:
I (255) heap_init: At 3FFC27F0 len 00039810 (230 KiB): DRAM
I (262) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (268) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM
I (274) spi_flash: detected chip: gd
I (278) spi_flash: flash io: dio
I (283) cpu_start: Starting scheduler on PRO CPU.
E (288) spi: spicommon_bus_initialize_io(505): sclk not valid
E (294) spi_bus: C:/Espressif/frameworks/esp-iot-solution/components/bus/spi_bus.c:78 (spi_bus_create):spi bus create failed
E (306) Board: C:/Espressif/frameworks/esp-iot-solution/examples/common_components/boards/esp32-lcdkit/board.c:64 (board_spi_bus_init):spi_bus2 creat failed
E (320) Board: C:/Espressif/frameworks/esp-iot-solution/examples/common_components/boards/esp32-lcdkit/board.c:89 (iot_board_init):spi init failed
E (334) spi_bus: C:/Espressif/frameworks/esp-iot-solution/components/bus/spi_bus.c:106 (spi_bus_device_create):Pointer error
E (346) screen interface: C:/Espressif/frameworks/esp-iot-solution/components/display/screen/interface_driver/scr_interface_driver.c:186 (spi_lcd_driver_init):spi device initialize failed
E (364) screen interface: C:/Espressif/frameworks/esp-iot-solution/components/display/screen/interface_driver/scr_interface_driver.c:313 (scr_interface_create):screen spi interface create failed
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x40087cd0 PS : 0x00060330 A0 : 0x80086998 A1 : 0x3ffc5580
0x40087cd0: lcd_ili9341_init at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:82 (discriminator 2)

A2 : 0x3ffc55d4 A3 : 0x3ffc2294 A4 : 0x3ffc55d0 A5 : 0x3ffc5f54
A6 : 0x3ffc5f2c A7 : 0x00000000 A8 : 0x9c400000 A9 : 0x00000140
A10 : 0x3ffc2294 A11 : 0x3ffc0748 A12 : 0x00000020 A13 : 0x3ffc22b4
A14 : 0x40088000 A15 : 0x40087698 SAR : 0x0000001f EXCCAUSE: 0x0000001c
0x40088000: lcd_ili9341_draw_bitmap at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:244

0x40087698: lcd_ili9341_get_info at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:186

EXCVADDR: 0x9c400004 LBEG : 0x00000020 LEND : 0x3ffc22b4 LCOUNT : 0x40024575
0x40024575: _xt_user_exc at C:/Users/User/esp/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:633



Backtrace:0x40087ccd:0x3ffc55800x40086995:0x3ffc55b0 0x400a2f27:0x3ffc5620 0x4002ae89:0x3ffc5640
0x40087ccd: lcd_ili9341_init at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:81 (discriminator 5)

0x40086995: app_main at C:\Espressif\frameworks\esp-iot-solution\examples\screen\build/../main/app_main.c:246 (discriminator 15)

0x400a2f27: main_task at C:/Users/User/esp/esp-idf/components/freertos/port/port_common.c:129 (discriminator 2)

0x4002ae89: vPortTaskWrapper at C:/Users/User/esp/esp-idf/components/freertos/port/xtensa/port.c:131





ELF file SHA256: 50cd5aad015728e0

Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40023341
0x40023341: esp_restart_noos_dig at C:/Users/User/esp/esp-idf/components/esp_system/esp_system.c:44 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x176c
load:0x4004c000,len:0xa48
load:0x40050000,len:0x2e58
SHA-256 comparison failed:
Calculated: 7a26bb223ada2809c2953cf64e0a9b72bb0763b9ca063725dd33d1610877b40b
Expected: 3d7f5f67c361f203f4352107ddb2487fe49e1af1a5e3f8769fb4e8bc042e0b0a
Attempting to boot anyway...
entry 0x4004c204
I (42) boot: ESP-IDF v4.4.1-dirty 2nd stage bootloader
I (42) boot: compile time 18:04:37
I (42) boot: chip revision: 0
I (45) boot.esp32s2: SPI Speed : 80MHz
I (50) boot.esp32s2: SPI Mode : DIO
I (54) boot.esp32s2: SPI Flash Size : 16MB
I (59) boot: Enabling RNG early entropy source...
I (65) boot: Partition Table:
I (68) boot: ## Label Usage Type ST Offset Length
I (76) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (83) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (91) boot: 2 factory factory app 00 00 00010000 00100000
I (98) boot: End of partition table
I (102) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=19fech (106476) map
I (132) esp_image: segment 1: paddr=0002a014 vaddr=3ffbfd00 size=01f58h ( 8024) load
I (134) esp_image: segment 2: paddr=0002bf74 vaddr=40022000 size=040a4h ( 16548) load
I (142) esp_image: segment 3: paddr=00030020 vaddr=40080020 size=230f4h (143604) map
I (175) esp_image: segment 4: paddr=0005311c vaddr=400260a4 size=09c58h ( 40024) load
I (185) esp_image: segment 5: paddr=0005cd7c vaddr=50000000 size=00010h ( 16) load
I (192) boot: Loaded app from partition at offset 0x10000
I (192) boot: Disabling RNG early entropy source...
I (206) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte
I (206) cpu_start: Pro cpu up.
I (217) cpu_start: Pro cpu start user code
I (218) cpu_start: cpu freq: 160000000
I (218) cpu_start: Application information:
I (222) cpu_start: Project name: screen_demo
I (227) cpu_start: App version: 5e5c4aa-dirty
I (233) cpu_start: Compile time: Jun 1 2022 18:04:15
I (239) cpu_start: ELF file SHA256: 50cd5aad015728e0...
I (245) cpu_start: ESP-IDF: v4.4.1-dirty
I (250) heap_init: Initializing. RAM available for dynamic allocation:
I (258) heap_init: At 3FFC27F0 len 00039810 (230 KiB): DRAM
I (264) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (270) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM
I (277) spi_flash: detected chip: gd
I (281) spi_flash: flash io: dio
I (285) cpu_start: Starting scheduler on PRO CPU.
E (290) spi: spicommon_bus_initialize_io(505): sclk not valid
E (296) spi_bus: C:/Espressif/frameworks/esp-iot-solution/components/bus/spi_bus.c:78 (spi_bus_create):spi bus create failed
E (308) Board: C:/Espressif/frameworks/esp-iot-solution/examples/common_components/boards/esp32-lcdkit/board.c:64 (board_spi_bus_init):spi_bus2 creat failed
E (322) Board: C:/Espressif/frameworks/esp-iot-solution/examples/common_components/boards/esp32-lcdkit/board.c:89 (iot_board_init):spi init failed
E (336) spi_bus: C:/Espressif/frameworks/esp-iot-solution/components/bus/spi_bus.c:106 (spi_bus_device_create):Pointer error
E (348) screen interface: C:/Espressif/frameworks/esp-iot-solution/components/display/screen/interface_driver/scr_interface_driver.c:186 (spi_lcd_driver_init):spi device initialize failed
E (366) screen interface: C:/Espressif/frameworks/esp-iot-solution/components/display/screen/interface_driver/scr_interface_driver.c:313 (scr_interface_create):screen spi interface create failed
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x40087cd0 PS : 0x00060330 A0 : 0x80086998 A1 : 0x3ffc5580
0x40087cd0: lcd_ili9341_init at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:82 (discriminator 2)

A2 : 0x3ffc55d4 A3 : 0x3ffc2294 A4 : 0x3ffc55d0 A5 : 0x3ffc5f54
A6 : 0x3ffc5f2c A7 : 0x00000000 A8 : 0x9c400000 A9 : 0x00000140
A10 : 0x3ffc2294 A11 : 0x3ffc0748 A12 : 0x00000020 A13 : 0x3ffc22b4
A14 : 0x40088000 A15 : 0x40087698 SAR : 0x0000001f EXCCAUSE: 0x0000001c
0x40088000: lcd_ili9341_draw_bitmap at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:244

0x40087698: lcd_ili9341_get_info at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:186

EXCVADDR: 0x9c400004 LBEG : 0x00000020 LEND : 0x3ffc22b4 LCOUNT : 0x40024575
0x40024575: _xt_user_exc at C:/Users/User/esp/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:633



Backtrace:0x40087ccd:0x3ffc55800x40086995:0x3ffc55b0 0x400a2f27:0x3ffc5620 0x4002ae89:0x3ffc5640
0x40087ccd: lcd_ili9341_init at C:/Espressif/frameworks/esp-iot-solution/components/display/screen/controller_driver/ili9341/ili9341.c:81 (discriminator 5)

0x40086995: app_main at C:\Espressif\frameworks\esp-iot-solution\examples\screen\build/../main/app_main.c:246 (discriminator 15)

0x400a2f27: main_task at C:/Users/User/esp/esp-idf/components/freertos/port/port_common.c:129 (discriminator 2)

0x4002ae89: vPortTaskWrapper at C:/Users/User/esp/esp-idf/components/freertos/port/xtensa/port.c:131
[/Codebox]

就是开始运行时,他会不断失败并重复。
所以想问一下是我漏了什么还是我的开发板设定不对。

Calvin1261
Posts: 3
Joined: Wed Jun 01, 2022 10:12 am

Re: ESP IoT Solution 的example

Postby Calvin1261 » Fri Jun 10, 2022 9:14 am

在我开启这个文件的时候build之前有出现这些问题,请问是需要改变或者加入什么吗
上网看了一些资料还是不太了解这些function是什么。

identifier "MALLOC_CAP_8BIT" is undefined
identifier "MALLOC_CAP_INTERNAL" is undefined
identifier "BOARD_SPI2_ID" is undefined
identifier "BOARD_IO_SPI2_SCK" is undefined
identifier "BOARD_IO_SPI2_MOSI" is undefined

Who is online

Users browsing this forum: No registered users and 19 guests