ESP32-S2-HMI-DevKit-1工作不正常

wjxjmj
Posts: 2
Joined: Mon Jul 19, 2021 6:33 am

ESP32-S2-HMI-DevKit-1工作不正常

Postby wjxjmj » Mon Jul 19, 2021 7:42 am

1,开发板到手后测试示例(没有插入TF卡)。测试的顺序是get-started\hello_word, freetype, smart-panel, power, 其中前三个示例工作正常.


2, 但当编译并下载power示例(https://github.com/espressif/esp-dev-ki ... ples/power)后,LCD没有正常点亮(按照示例描述LCD上应当显示一个“睡眠”按键).
以下是power示例monitor的信息:
C:\Users\wjxjmj\Desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\power>idf.py -p com4 flash monitor
Executing action: flash
Running ninja in directory c:\users\wjxjmj\desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\power\build
Executing "ninja flash"...
[1/5] cmd.exe /C "cd /D C:\Users\wjxjmj\Desktop\code\esp32...kits/esp32-s2-hmi-devkit-1/examples/power/build/power.bin"
power.bin binary size 0x88e70 bytes. Smallest app partition is 0x3cf000 bytes. 0x346190 bytes (86%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\Users\wjxjmj\Desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\power\build\bootloader\esp-idf\esptool_py && C:\Users\wjxjmj\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe C:/Apps/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/examples/power/build/bootloader/bootloader.bin"
Bootloader binary size 0x3210 bytes. 0x3df0 bytes (124%) free.
[2/3] cmd.exe /C "cd /D C:\Apps\esp-idf\components\esptool.../Apps/esp-idf/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32s2 -p com4 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 bootloader/bootloader.bin 0x10000 power.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.2-dev
Serial port com4
Connecting...
Device PID identification is only supported on COM and /dev/ serial ports.
.
Chip is ESP32-S2
Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
Crystal is 40MHz
MAC: 7c:df:a1:0d:b1:a8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x00098fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 12816 bytes to 8842...
Writing at 0x00001000... (100 %)
Wrote 12816 bytes (8842 compressed) at 0x00001000 in 0.4 seconds (effective 254.4 kbit/s)...
Hash of data verified.
Compressed 560752 bytes to 287291...
Writing at 0x00010000... (5 %)
Writing at 0x000190f2... (11 %)
Writing at 0x00021d96... (16 %)
Writing at 0x0002dafe... (22 %)
Writing at 0x0003818c... (27 %)
Writing at 0x00041ba9... (33 %)
Writing at 0x0004cd93... (38 %)
Writing at 0x00052d9e... (44 %)
Writing at 0x00058ce0... (50 %)
Writing at 0x0005ea2a... (55 %)
Writing at 0x00064aad... (61 %)
Writing at 0x0006aacb... (66 %)
Writing at 0x00071dd8... (72 %)
Writing at 0x00078059... (77 %)
Writing at 0x0007e165... (83 %)
Writing at 0x00087892... (88 %)
Writing at 0x0008f44a... (94 %)
Writing at 0x0009563f... (100 %)
Wrote 560752 bytes (287291 compressed) at 0x00010000 in 7.5 seconds (effective 601.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 106...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (106 compressed) at 0x00008000 in 0.1 seconds (effective 438.8 kbit/s)...
Hash of data verified.

Leaving...
Executing action: monitor
Running idf_monitor in directory c:\users\wjxjmj\desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\power
Executing "C:\Users\wjxjmj\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe C:\Apps\esp-idf\tools/idf_monitor.py -p com4 -b 2000000 --toolchain-prefix xtensa-esp32s2-elf- --target esp32s2 c:\users\wjxjmj\desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\power\build\power.elf -m 'C:\Users\wjxjmj\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe' 'C:\Apps\esp-idf\tools\idf.py' '-p' 'com4'"...


--- idf_monitor on com4 2000000 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---





并且没有继续输出别的信息. 此时按下reset键,显示如下:

I (148) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte
I (148) cache: Data cache : size 8KB, 4Ways, cache line size 32Byte
I (148) spiram: Found 16MBit SPI RAM device
I (148) spiram: SPI RAM mode: sram 80m
I (149) spiram: PSRAM initialized, cache is in normal (1-core) mode.
I (149) cpu_start: Pro cpu up.
I (368) spiram: SPI SRAM memory test OK
I (378) cpu_start: Pro cpu start user code
I (378) cpu_start: cpu freq: 240000000
I (378) cpu_start: Application information:
I (378) cpu_start: Project name: power
I (378) cpu_start: App version: ec03a13
I (379) cpu_start: Compile time: Jul 19 2021 03:31:12
I (379) cpu_start: ELF file SHA256: 3093d11ea721d26f...
I (379) cpu_start: ESP-IDF: v4.4-dev-2128-gf45b60b
I (380) heap_init: Initializing. RAM available for dynamic allocation:
I (380) heap_init: At 3FF9E02C len 00001FD4 (7 KiB): RTCRAM
I (380) heap_init: At 3FFC66A0 len 00035960 (214 KiB): DRAM
I (381) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (381) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (382) spi_flash: detected chip: generic
I (382) spi_flash: flash io: dio
I (383) cpu_start: Starting scheduler on PRO CPU.
I (383) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (383) i2c_bus: i2c0 bus inited
I (446) mpu6050: mpu6050 device address is: 0x92

I (447) ws2812: Initializing WS2812B
I (470) ESP32S2_I2S_LCD: lcd_buffer_size: 32000, lcd_dma_size: 4000, lcd_dma_node_cnt: 8
I (471) ESP32S2_I2S_LCD: lcd init ok


Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x4002892c PS : 0x00060031 A0 : 0x80028aa9 A1 : 0x3ffc3c80

0x4002892c: i2c_master_cmd_begin_static at C:/Apps/esp-idf/components/driver/i2c.c:1338

A2 : 0x00000000 A3 : 0x3ffd0a28 A4 : 0x00000000 A5 : 0x00002000
A6 : 0x00000001 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3f413000
A10 : 0x00000901 A11 : 0x00000001 A12 : 0x3ffca78c A13 : 0x6001301c
A14 : 0x00000001 A15 : 0x00000000 SAR : 0x0000001a EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000008 LBEG : 0x3ffca78c LEND : 0x6001301c LCOUNT : 0x4002680d

0x4002680d: _xt_user_exc at C:/Apps/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:627

Core 0 was running in ISR context:
EPC1 : 0x40082ff3 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x00000000

0x40082ff3: uart_hal_write_txfifo at C:/Apps/esp-idf/components/hal/uart_hal_iram.c:35



Backtrace:0x40028929:0x3ffc3c800x40028aa6:0x3ffc3cb0 0x4002692a:0x3ffc3ce0 0x4001a8d1:0x3ffc7f30 0x4002e9a9:0x3ffc7f40 0x4002d0d8:0x3ffc7f60 0x400a8ced:0x3ffc7fa0 0x400a90f2:0x3ffc7fe0 0x400a76fc:0x3ffc8020 0x400a65fc:0x3ffc8040 0x400a7384:0x3ffc8060 0x40089bb5:0x3ffc8090 0x40088aa3:0x3ffc8100 0x400be1cb:0x3ffc8120 0x4002e879:0x3ffc8140
0x40028929: i2c_master_cmd_begin_static at C:/Apps/esp-idf/components/driver/i2c.c:1337

0x40028aa6: i2c_isr_handler_default at C:/Apps/esp-idf/components/driver/i2c.c:497

0x4002692a: _xt_lowint1 at C:/Apps/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1105

0x4002e9a9: vPortExitCritical at C:/Apps/esp-idf/components/freertos/port/xtensa/port.c:473

0x4002d0d8: xQueueReceive at C:/Apps/esp-idf/components/freertos/queue.c:1359

0x400a8ced: i2s_write_data at C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/components/i2s_bus/i2s_lcd_esp32s2_driver.c:186

0x400a90f2: i2s_lcd_write_cmd at C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/components/i2s_bus/i2s_lcd_esp32s2_driver.c:449 (discriminator 2)

0x400a76fc: _i2s_lcd_write_cmd at C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/components/screen/interface_driver/scr_interface_driver.c:46

0x400a65fc: LCD_WRITE_REG at C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/components/screen/screen_utility/interface_drv_def.h:33
(inlined by) lcd_rm68120_init_reg at C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/components/screen/controller_driver/rm68120/rm68120.c:324

0x400a7384: lcd_rm68120_init at C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/components/screen/controller_driver/rm68120/rm68120.c:105

0x40089bb5: bsp_lcd_init at C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/components/bsp/bsp_lcd.c:73

0x40088aa3: app_main at c:\users\wjxjmj\desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\power\build/../main/main.c:30 (discriminator 2)

0x400be1cb: main_task at C:/Apps/esp-idf/components/freertos/port/port_common.c:142 (discriminator 2)

0x4002e879: vPortTaskWrapper at C:/Apps/esp-idf/components/freertos/port/xtensa/port.c:168






ELF file SHA256: 3093d11ea721d26f

CPU halted.



3, 接下来, 重新测试get-started\hello_world示例. LCD依然不亮, monitor输出的信息如下:
C:\Users\wjxjmj\Desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\get-started\hello_world>idf.py -p com4 flash monitor
Executing action: flash
Running ninja in directory c:\users\wjxjmj\desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\get-started\hello_world\build
Executing "ninja flash"...
[1/5] cmd.exe /C "cd /D C:\Users\wjxjmj\Desktop\code\esp32...-1/examples/get-started/hello_world/build/hello-world.bin"
hello-world.bin binary size 0x82ea0 bytes. Smallest app partition is 0x3cf000 bytes. 0x34c160 bytes (87%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\Users\wjxjmj\Desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\get-started\hello_world\build\bootloader\esp-idf\esptool_py && C:\Users\wjxjmj\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe C:/Apps/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Users/wjxjmj/Desktop/code/esp32/esp-kits/esp32-s2-hmi-devkit-1/examples/get-started/hello_world/build/bootloader/bootloader.bin"
Bootloader binary size 0x3210 bytes. 0x3df0 bytes (124%) free.
[2/3] cmd.exe /C "cd /D C:\Apps\esp-idf\components\esptool.../Apps/esp-idf/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32s2 -p com4 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 bootloader/bootloader.bin 0x10000 hello-world.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.2-dev
Serial port com4
Connecting...
Device PID identification is only supported on COM and /dev/ serial ports.
.
Chip is ESP32-S2
Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
Crystal is 40MHz
MAC: 7c:df:a1:0d:b1:a8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x00092fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 12816 bytes to 8842...
Writing at 0x00001000... (100 %)
Wrote 12816 bytes (8842 compressed) at 0x00001000 in 0.4 seconds (effective 248.9 kbit/s)...
Hash of data verified.
Compressed 536224 bytes to 269978...
Writing at 0x00010000... (5 %)
Writing at 0x000190cf... (11 %)
Writing at 0x00021bdf... (17 %)
Writing at 0x0002dc00... (23 %)
Writing at 0x00038018... (29 %)
Writing at 0x00043e25... (35 %)
Writing at 0x0004fd8e... (41 %)
Writing at 0x00055b74... (47 %)
Writing at 0x0005bc0f... (52 %)
Writing at 0x00061a05... (58 %)
Writing at 0x0006739f... (64 %)
Writing at 0x0006ed8b... (70 %)
Writing at 0x00074ffe... (76 %)
Writing at 0x0007ad7e... (82 %)
Writing at 0x00082e02... (88 %)
Writing at 0x00089abb... (94 %)
Writing at 0x0008fe59... (100 %)
Wrote 536224 bytes (269978 compressed) at 0x00010000 in 7.1 seconds (effective 600.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 106...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (106 compressed) at 0x00008000 in 0.1 seconds (effective 446.7 kbit/s)...
Hash of data verified.

Leaving...
Executing action: monitor
Running idf_monitor in directory c:\users\wjxjmj\desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\get-started\hello_world
Executing "C:\Users\wjxjmj\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe C:\Apps\esp-idf\tools/idf_monitor.py -p com4 -b 2000000 --toolchain-prefix xtensa-esp32s2-elf- --target esp32s2 c:\users\wjxjmj\desktop\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\get-started\hello_world\build\hello-world.elf -m 'C:\Users\wjxjmj\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe' 'C:\Apps\esp-idf\tools\idf.py' '-p' 'com4'"...

--- idf_monitor on com4 2000000 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---

I (619) lcd rm68120: MADCTL=0x60
I (619) bsp_lcd: Screen name : [RM68120] | width : [800] | height : [480]



并且没有继续输出别的信息. 此时按下reset, 继续输出:
I (142) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte
I (142) cache: Data cache : size 8KB, 4Ways, cache line size 32Byte
I (142) spiram: Found 16MBit SPI RAM device
I (142) spiram: SPI RAM mode: sram 80m
I (142) spiram: PSRAM initialized, cache is in normal (1-core) mode.
I (143) cpu_start: Pro cpu up.
I (362) spiram: SPI SRAM memory test OK
I (371) cpu_start: Pro cpu start user code
I (371) cpu_start: cpu freq: 240000000
I (371) cpu_start: Application information:
I (372) cpu_start: Project name: hello-world
I (372) cpu_start: App version: ec03a13
I (372) cpu_start: Compile time: Jul 19 2021 01:29:56
I (373) cpu_start: ELF file SHA256: b4b3f78de63f864d...
I (373) cpu_start: ESP-IDF: v4.4-dev-2128-gf45b60b
I (373) heap_init: Initializing. RAM available for dynamic allocation:
I (374) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM
I (374) heap_init: At 3FFC49C8 len 00037638 (221 KiB): DRAM
I (374) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (375) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (376) spi_flash: detected chip: generic
I (376) spi_flash: flash io: dio
I (376) cpu_start: Starting scheduler on PRO CPU.
I (377) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (377) i2c_bus: i2c0 bus inited
I (398) ESP32S2_I2S_LCD: lcd_buffer_size: 32000, lcd_dma_size: 4000, lcd_dma_node_cnt: 8
I (399) ESP32S2_I2S_LCD: lcd init ok
I (619) lcd rm68120: MADCTL=0x60
I (619) bsp_lcd: Screen name : [RM68120] | width : [800] | height : [480]


4, 继续测试别的示例, LCD依然无法点亮. 请问以上情况要如何处理? 谢谢.

5, 此外,请问下图中排线的情况正常吗(原装未动)?谢谢
snipaste_20210719_153326.png
snipaste_20210719_153326.png (1.08 MiB) Viewed 3408 times

wjxjmj
Posts: 2
Joined: Mon Jul 19, 2021 6:33 am

Re: ESP32-S2-HMI-DevKit-1工作不正常

Postby wjxjmj » Mon Jul 19, 2021 1:49 pm

再次尝试了smart-panel示例, 根据记忆, 盲按rgb灯的面板, 成功改变了颜色.
这说明至少触控和部分功能正常工作. 莫非如一楼图片所示, 排线出了问题.
snipaste_20210719_214811.png
snipaste_20210719_214811.png (699.03 KiB) Viewed 3398 times
忘记说了, 开发平台是win10, idf的版本为:
C:\code\esp32\esp-kits\esp32-s2-hmi-devkit-1\examples\smart-panel>idf.py --version
ESP-IDF v4.4-dev-2128-gf45b60b28

Who is online

Users browsing this forum: No registered users and 20 guests