使用i80驱动LCD屏幕能否与pipeline_living_stream例程同步运行?
使用i80驱动LCD屏幕能否与pipeline_living_stream例程同步运行?
在使用 examples\peripherals\lcd\lvgl 例程驱动8080接口屏幕时想加入网络电台播放,但是播放一小会以后,屏幕会突然变暗,然后音乐就会停止但是程序依然正常运行
-
- Posts: 184
- Joined: Fri Dec 15, 2017 2:45 am
Re: 使用i80驱动LCD屏幕能否与pipeline_living_stream例程同步运行?
可以上传 log 吗? 看描述似乎是 crash 了?
Re: 使用i80驱动LCD屏幕能否与pipeline_living_stream例程同步运行?
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x18 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fcd0108,len:0x1650
load:0x403b6000,len:0xb7c
load:0x403ba000,len:0x2f58
entry 0x403b6248
I (32) boot: ESP-IDF v4.4-dirty 2nd stage bootloader
I (32) boot: compile time 15:53:44
I (32) boot: chip revision: 0
I (34) boot.esp32s3: Boot SPI Speed : 80MHz
I (39) boot.esp32s3: SPI Mode : SLOW READ
I (44) boot.esp32s3: SPI Flash Size : 16MB
I (49) boot: Enabling RNG early entropy source...
I (55) boot: Partition Table:
I (58) boot: ## Label Usage Type ST Offset Length
I (65) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (73) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (80) boot: 2 factory factory app 00 00 00010000 00300000
I (88) boot: End of partition table
I (92) esp_image: segment 0: paddr=00010020 vaddr=3c0d0020 size=39964h (235876) map
I (156) esp_image: segment 1: paddr=0004998c vaddr=3fc94d80 size=041d0h ( 16848) load
I (161) esp_image: segment 2: paddr=0004db64 vaddr=40374000 size=024b4h ( 9396) load
I (164) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=ce1f4h (844276) map
I (369) esp_image: segment 4: paddr=0011e21c vaddr=403764b4 size=0e8c0h ( 59584) load
I (385) esp_image: segment 5: paddr=0012cae4 vaddr=50000000 size=00010h ( 16) load
I (392) boot: Loaded app from partition at offset 0x10000
I (393) boot: Disabling RNG early entropy source...
I (406) cpu_start: Pro cpu up.
I (406) cpu_start: Starting app cpu, entry point is 0x40375260
0x40375260: call_start_cpu1 at E:/.espressif/frameworks/esp-idf-v4.4/components/esp_system/port/cpu_start.c:156
I (0) cpu_start: App cpu up.
I (420) cpu_start: Pro cpu start user code
I (420) cpu_start: cpu freq: 160000000
I (420) cpu_start: Application information:
I (423) cpu_start: Project name: lcd_lvgl
I (428) cpu_start: App version: 1
I (432) cpu_start: Compile time: Mar 3 2022 15:53:32
I (438) cpu_start: ELF file SHA256: 1932fc013fd48868...
I (444) cpu_start: ESP-IDF: v4.4-dirty
I (449) heap_init: Initializing. RAM available for dynamic allocation:
I (457) heap_init: At 3FCA50D8 len 0003AF28 (235 KiB): D/IRAM
I (463) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (470) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (476) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (483) spi_flash: detected chip: mxic
W (487) spi_flash: Detected flash size > 16 MB, but access beyond 16 MB is not supported for this flash model yet.
I (498) spi_flash: flash io: dio
W (502) spi_flash: Detected size(32768k) larger than the size in the binary image header(16384k). Using the size in the binary image header.
I (516) sleep: Configure to isolate all GPIO pins in sleep state
I (522) sleep: Enable automatic switching of GPIO sleep configuration
I (529) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (550) gpio: GPIO[40]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (550) example: Turn off LCD backlight
I (560) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (570) example: Initialize Intel 8080 bus
I (570) example: Install LCD driver of hx8369a
I (580) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
0
I (830) example: Turn on LCD backlight
I (830) example: Initialize LVGL library
I (830) example: Register display driver to LVGL
I (830) example: Install LVGL tick timer
I (830) example: Display LVGL animation
I (850) HTTP_LIVINGSTREAM_EXAMPLE: [2.0] Create audio pipeline for playback
I (860) HTTP_LIVINGSTREAM_EXAMPLE: [2.1] Create http stream to read data
I (860) HTTP_LIVINGSTREAM_EXAMPLE: [2.2] Create i2s stream to write data to codec chip
I (870) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (880) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (880) ESP32_S3_KORVO_2: I2S1, MCLK output by GPIO0
I (890) HTTP_LIVINGSTREAM_EXAMPLE: [2.3] Create aac decoder to decode aac file
I (900) HTTP_LIVINGSTREAM_EXAMPLE: [2.4] Register all elements to audio pipeline
I (900) HTTP_LIVINGSTREAM_EXAMPLE: [2.5] Link it together http_stream-->aac_decoder-->i2s_stream-->[codec_chip]
I (920) AUDIO_PIPELINE: link el->rb, el:0x3fce3904, tag:http, rb:0x3fce46e0
I (920) AUDIO_PIPELINE: link el->rb, el:0x3fce4350, tag:aac, rb:0x3fce9828
I (930) HTTP_LIVINGSTREAM_EXAMPLE: [2.6] Set up uri (http as http_stream, aac as aac decoder, and default output is i2s)
I (940) HTTP_LIVINGSTREAM_EXAMPLE: [ 3 ] Start and wait for Wi-Fi network
I (950) pp: pp rom version: e7ae62f
I (950) net80211: net80211 rom version: e7ae62f
I (970) wifi:wifi driver task: 3fced84c, prio:23, stack:6656, core=0
I (970) system_api: Base MAC address is not set
I (970) system_api: read default base MAC address from EFUSE
I (980) wifi:wifi firmware version: 7679c42
I (980) wifi:wifi certification version: v7.0
I (980) wifi:config NVS flash: enabled
I (990) wifi:config nano formating: disabled
I (990) wifi:Init data frame dynamic rx buffer num: 32
I (1000) wifi:Init management frame dynamic rx buffer num: 32
I (1000) wifi:Init management short buffer num: 32
I (1010) wifi:Init dynamic tx buffer num: 32
I (1010) wifi:Init static tx FG buffer num: 2
I (1010) wifi:Init static rx buffer size: 1600
I (1020) wifi:Init static rx buffer num: 10
I (1020) wifi:Init dynamic rx buffer num: 32
I (1030) wifi_init: rx ba win: 6
I (1030) wifi_init: tcpip mbox: 32
I (1030) wifi_init: udp mbox: 6
I (1040) wifi_init: tcp mbox: 6
I (1040) wifi_init: tcp tx win: 5744
I (1050) wifi_init: tcp rx win: 5744
I (1050) wifi_init: tcp mss: 1440
I (1050) wifi_init: WiFi IRAM OP enabled
I (1060) wifi_init: WiFi RX IRAM OP enabled
I (1070) phy_init: phy_version 302,3ddfab3,Dec 3 2021,14:39:12
W (1070) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (1140) wifi:mode : sta (7c:df:a1:e1:26:0c)
I (1140) wifi:enable tsf
I (1150) wifi<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (2020) wifi:state: init -> auth (b0)
I (2050) wifi:state: auth -> assoc (0)
I (2080) wifi:state: assoc -> run (10)
W (2320) wifi:<ba-add>idx:0 (ifx:0, 46:f9:71:58:4e:7b), tid:0, ssn:2, winSize:64
I (2360) wifi:connected with TP2.4G, aid = 16, channel 1, BW20, bssid = 46:f9:71:58:4e:7b
I (2360) wifi:security: WPA2-PSK, phy: bgn, rssi: -52
I (2360) wifi:pm start, type: 1
I (2360) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (2370) wifi:BcnInt:102400, DTIM:1
W (2380) PERIPH_WIFI: WiFi Event cb, Unhandle event_base:WIFI_EVENT, event_id:4
I (3350) esp_netif_handlers: sta ip: 192.168.0.136, mask: 255.255.255.0, gw: 192.168.0.1
I (3350) PERIPH_WIFI: Got ip:192.168.0.136
I (3350) HTTP_LIVINGSTREAM_EXAMPLE: [ 4 ] Set up event listener
I (3360) HTTP_LIVINGSTREAM_EXAMPLE: [4.1] Listening event from all elements of pipeline
I (3370) HTTP_LIVINGSTREAM_EXAMPLE: [4.2] Listening event from peripherals
I (3370) HTTP_LIVINGSTREAM_EXAMPLE: [ 5 ] Start audio_pipeline
I (3380) AUDIO_ELEMENT: [http-0x3fce3904] Element task created
I (3390) AUDIO_ELEMENT: [aac-0x3fce4350] Element task created
I (3390) AUDIO_ELEMENT: [i2s-0x3fce3f8c] Element task created
I (3400) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:166100 Bytes
I (3410) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1
I (3410) AUDIO_ELEMENT: [aac] AEL_MSG_CMD_RESUME,state:1
I (3420) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
I (3420) I2S_STREAM: AUDIO_STREAM_WRITER
I (3420) AUDIO_PIPELINE: Pipeline started
I (3550) HTTP_STREAM: total_bytes=797
I (3550) HTTP_STREAM: Live stream URI. Need to be fetched again!
I (3660) HTTP_STREAM: total_bytes=57807
I (3660) CODEC_ELEMENT_HELPER: The element is 0x3fce4350. The reserve data 2 is 0x0.
I (3660) AAC_DECODER: a new song playing
I (3660) AAC_DECODER: this audio is RAW AAC
I (3680) HTTP_LIVINGSTREAM_EXAMPLE: [ * ] Receive music info from aac decoder, sample_rates=24000, bits=16, ch=2
I (3710) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_PAUSE
I (3710) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:4
W (3710) AUDIO_ELEMENT: [i2s-0x3fce3f8c] RESUME timeout
I (3720) I2S_STREAM: AUDIO_STREAM_WRITER
W (7840) HTTP_STREAM: No more data,errno:0, total_bytes:57807, rlen = 0
I (7850) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (7910) HTTP_STREAM: total_bytes=57840
W (14920) HTTP_STREAM: No more data,errno:0, total_bytes:57840, rlen = 0
I (14920) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (14980) HTTP_STREAM: total_bytes=57779
W (22010) HTTP_STREAM: No more data,errno:0, total_bytes:57779, rlen = 0
I (22010) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (22070) HTTP_STREAM: total_bytes=57903
这是完整的运行日志
-
- Posts: 184
- Joined: Fri Dec 15, 2017 2:45 am
Re: 使用i80驱动LCD屏幕能否与pipeline_living_stream例程同步运行?
Hi ,
使用i80驱动LCD屏幕能否与pipeline_living_stream例程是可以合并的。 看你 log 没有 crash 的问题。 可能还需要你整合下你的代码。
使用i80驱动LCD屏幕能否与pipeline_living_stream例程是可以合并的。 看你 log 没有 crash 的问题。 可能还需要你整合下你的代码。
Re: 使用i80驱动LCD屏幕能否与pipeline_living_stream例程同步运行?
这边我附上程序以及显示屏的驱动程序,麻烦您帮忙检查一下,因为我这边很多都查看过了,并没有找到任何办法,使用的IDF是4.4版本,而ADF是master版本,拜托了,卡了一个多礼拜了ESP_HengYC wrote: ↑Wed Mar 09, 2022 2:47 amHi ,
使用i80驱动LCD屏幕能否与pipeline_living_stream例程是可以合并的。 看你 log 没有 crash 的问题。 可能还需要你整合下你的代码。
- Attachments
-
- i2s_stream.h
- (16.73 KiB) Downloaded 858 times
-
- esp_lcd_panel_hx8369a.c
- (16.95 KiB) Downloaded 778 times
-
- lvgl.rar
- (9.2 MiB) Downloaded 626 times
-
- Posts: 184
- Joined: Fri Dec 15, 2017 2:45 am
Re: 使用i80驱动LCD屏幕能否与pipeline_living_stream例程同步运行?
fan183579 wrote: ↑Wed Mar 09, 2022 9:40 am这边我附上程序以及显示屏的驱动程序,麻烦您帮忙检查一下,因为我这边很多都查看过了,并没有找到任何办法,使用的IDF是4.4版本,而ADF是master版本,拜托了,卡了一个多礼拜了ESP_HengYC wrote: ↑Wed Mar 09, 2022 2:47 amHi ,
使用i80驱动LCD屏幕能否与pipeline_living_stream例程是可以合并的。 看你 log 没有 crash 的问题。 可能还需要你整合下你的代码。
代码的故障还得你自己来解决啊,我只能给你方向上的信息, 如果你只是加个屏幕, 可以参考 这个例程 examples/display/lcd_jpeg ,https://github.com/espressif/esp-adf/tr ... y/lcd_jpeg
Who is online
Users browsing this forum: No registered users and 9 guests