esp32s3各种问题,希望有技术人员关注以下

末班车上的乘客
Posts: 18
Joined: Mon Feb 06, 2023 6:56 am

esp32s3各种问题,希望有技术人员关注以下

Postby 末班车上的乘客 » Fri Mar 17, 2023 4:04 pm

1)芯片选的是内置的8M版本,初始化过程显示发现8M,程序运行后打印出来缺不到1M。加了几个应用之后,现在连lcd单buf都分配不到
I (3923) LCD_panel: Initialize RGB panel
I (3923) MEM: Biggest / Free / Total
SRAM : [ 249856 / 350923 / 653747]
PSRAM : [ 966656 / 979936 / 983040]
I (3923) LCD_panel: esp_lcd_new_rgb_panel
D (3943) intr_alloc: Connected src 24 to int 19 (cpu 0)
D (3943) gdma: new pair (0,1) at 0x3c7f1c84
D (3943) gdma: new tx channel (0,1) at 0x3c781444
D (3943) gdma: tx channel (0,1), (4:64) bytes aligned, burst enabled
D (3943) lcd_panel.rgb: start gpio config...
D (3943) lcd_panel.rgb: start gpio config...
D (3943) lcd_panel.rgb: in lcd_rgb_panel_configure_gpio
D (3943) lcd_panel.rgb: in esp_lcd_new_rgb_panel
D (3943) lcd_panel.rgb: new rgb panel(0) @0x3fc9c07c, fb0 @0x3c710c40, fb1 @0x3c781480, fb_size=460800, bb0 @0x0, bb1 @0x0, bb_size=0
D (3943) lcd_panel.rgb: rgb_panel
D (3943) lcd_hal: n=8,a=9,b=8,mo=1
D (3943) lcd_hal: hal->dev: 60041000
D (3953) lcd_panel.rgb: rgb panel(0) start, pclk=18000000Hz
I (3953) LCD_panel: esp_lcd_new_rgb_panel success
D (3953) ledc: Using clock source 1 (in slow mode), divisor: 0x1f4
D (3953) ledc: In slow speed mode, global clk set: 1
D (3953) ledc: LEDC_PWM CHANNEL 0|GPIO 45|Duty 0100|Time 0
D (3953) HMI_ESP32_B_V10: ledc_initialized!

assert failed: lvgl_port_display_init bsp_lv_port.c:209 (buf1)


Backtrace: 0x403760d2:0x3fcf3bd0 0x4037bb61:0x3fcf3bf0 0x4038151e:0x3fcf3c10 0x4200d251:0x3fcf3d30 0x42007c68:0x3fcf3d80 0x4205f5cf:0x3fcf3db0


W (1536) PSRAM: DO NOT USE FOR MASS PRODUCTION! Timing parameters will be updated in future IDF version.
D (1547) MSPI Timing: tuning success, best point is index 5
I (1552) esp_psram: Found 8MB PSRAM device
I (1556) esp_psram: Speed: 80MHz
I (1601) mmu_psram: Instructions copied and mapped to SPIRAM
I (2293) mmu_psram: Read only data copied and mapped to SPIRAM
I (2294) cpu_start: Pro cpu up.
I (2294) cpu_start: Starting app cpu, entry point is 0x403754e0

2)下载程序总是识别,bin文件大一点的总是失败,三分之一的时间都用在下载程序了。为什么这个口下载这么慢,有没有usb模式
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x00730fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20576 bytes to 13101...
Writing at 0x00000000... (100 %)
Wrote 20576 bytes (13101 compressed) at 0x00000000 in 0.4 seconds (effective 395.7 kbit/s)...
Hash of data verified.
Compressed 7473328 bytes to 3031089...
Writing at 0x00010000... (0 %)
Writing at 0x0001a0ea... (1 %)
Writing at 0x00028116... (1 %)
Writing at 0x00038773... (2 %)
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__main__.py", line 11, in <module>
esptool._main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__init__.py", line 1026, in _main
main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__init__.py", line 826, in main
operation_func(esp, args)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\cmds.py", line 556, in write_flash
esp.flash_defl_block(block, seq, timeout=timeout)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 109, in inner
return func(*args, **kwargs)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 991, in flash_defl_block
self.check_command(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 407, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 376, in command
p = self.read()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 308, in read
return next(self._slip_reader)

Writing at 0x004926da... (68 %)
Writing at 0x004b08f9... (69 %)
Writing at 0x004b9368... (69 %)
Writing at 0x004c40d2... (70 %)
Writing at 0x004d0562... (70 %)
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__main__.py", line 11, in <module>
esptool._main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__init__.py", line 1026, in _main
main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__init__.py", line 826, in main
operation_func(esp, args)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\cmds.py", line 556, in write_flash
esp.flash_defl_block(block, seq, timeout=timeout)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 109, in inner
return func(*args, **kwargs)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 991, in flash_defl_block

Writing at 0x005321df... (74 %)
Writing at 0x0054cf2d... (75 %)
Writing at 0x0056b873... (75 %)
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__main__.py", line 11, in <module>
esptool._main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__init__.py", line 1026, in _main
main()

ESP_Rainbow
Posts: 7
Joined: Fri Oct 28, 2022 7:37 am

Re: esp32s3各种问题,希望有技术人员关注以下

Postby ESP_Rainbow » Tue Mar 21, 2023 9:10 am

您好:

1、软件使用的 Flash 大小取决于工程使用的分区表设置和软件配置中的 Flash Size 设置。如下:

Serial flasher config → Flash size
Flash.png
Flash.png (11.25 KiB) Viewed 25400 times
esp-idf SDK 中对应的系统分区表文件参见:https://github.com/espressif/esp-idf/tr ... tion_table

如下:
partition.png
partition.png (74.3 KiB) Viewed 25400 times
每个工程都有对应的分区表文件设置,在 menuconfig 的 Partition Table → Partition Table 路径下,如下:
分区表设置.png
分区表设置.png (12.92 KiB) Viewed 25400 times
2、 ESP32-S3 支持使用 UART 或 USB 管脚下载固件,对应说明参见:https://blog.csdn.net/Marchtwentytwo/ar ... /121169467?

如果使用 ESP32-S3 的 UART0 管脚下载固件固件速度慢的话,可以尝试增加下载波特率,例如使用如下指令:

idf.py -p COM3 -b 921600 flash monitor

Who is online

Users browsing this forum: No registered users and 19 guests