Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-P4. Problems with MIPI DSI (IDFGH-14029) #14850

Closed
3 tasks done
Maxim88S opened this issue Nov 8, 2024 · 4 comments
Closed
3 tasks done

ESP32-P4. Problems with MIPI DSI (IDFGH-14029) #14850

Maxim88S opened this issue Nov 8, 2024 · 4 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@Maxim88S
Copy link

Maxim88S commented Nov 8, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.3.1

Espressif SoC revision.

ESP32-P4 v 1.4

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

CMD

Development Kit.

ESP32-P4 v 1.4

Power Supply used.

USB

What is the expected behavior?

Good day,
I wanted to use the example code from examples/peripherals/lcd/mipi_dsi to connect the display from the board kit ESP32-P4.
I expected the display to start without any code changes.

What is the actual behavior?

I encountered errors in serial console.

I (1584) main_task: Started on CPU0
I (1604) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1604) main_task: Calling app_main()
I (1604) gpio: GPIO[20]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1614) example: MIPI DSI PHY Powered on
I (1624) example: Install MIPI DSI LCD control panel
E (6604) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (6604) task_wdt:  - IDLE0 (CPU 0)
E (6604) task_wdt: Tasks currently running:
E (6604) task_wdt: CPU 0: main
E (6604) task_wdt: CPU 1: IDLE1
E (6604) task_wdt: Print CPU 0 (current core) backtrace
Print CPU 0 (current core) registers
Core  0 register dump:
MEPC    : 0x40047d80  RA      : 0x40047d7a  SP      : 0x4ff279d0  GP      : 0x4ff10a80
TP      : 0x4ff27b70  T0      : 0x4fc19b4c  T1      : 0x48000c54  T2      : 0x00000000
S0/FP   : 0x00000001  S1      : 0x48000c58  A0      : 0x48000c58  A1      : 0x00000000
A2      : 0x00000006  A3      : 0x00000000  A4      : 0x500a0000  A5      : 0x00001801
A6      : 0x00000000  A7      : 0x00000008  S2      : 0x4ff27a4b  S3      : 0x00000000
S4      : 0x00000006  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000004  T4      : 0x00000003  T5      : 0x00000000  T6      : 0x00000000
MSTATUS : 0x00000001  MTVEC   : 0x00000000  MCAUSE  : 0x4ff27ae8  MTVAL   : 0x48000c70
MHARTID : 0x00000000
E (11604) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (11604) task_wdt:  - IDLE0 (CPU 0)
E (11604) task_wdt: Tasks currently running:
E (11604) task_wdt: CPU 0: main
E (11604) task_wdt: CPU 1: IDLE1
E (11604) task_wdt: Print CPU 0 (current core) backtrace
Print CPU 0 (current core) registers
Core  0 register dump:
MEPC    : 0x40047d80  RA      : 0x40047d7a  SP      : 0x4ff279d0  GP      : 0x4ff10a80
TP      : 0x4ff27b70  T0      : 0x4fc19b4c  T1      : 0x48000c54  T2      : 0x00000000
S0/FP   : 0x00000001  S1      : 0x48000c58  A0      : 0x48000c58  A1      : 0x00000000
A2      : 0x00000006  A3      : 0x00000000  A4      : 0x500a0000  A5      : 0x00001801
A6      : 0x00000000  A7      : 0x00000008  S2      : 0x4ff27a4b  S3      : 0x00000000
S4      : 0x00000006  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000004  T4      : 0x00000003  T5      : 0x00000000  T6      : 0x00000000
MSTATUS : 0x00000001  MTVEC   : 0x00000000  MCAUSE  : 0x4ff27ae8  MTVAL   : 0x48000c70
MHARTID : 0x00000000

Steps to reproduce.

  1. Compile code from example
  2. Connect to terminal on com port
  3. Make sure there is an error

Debug Logs.

ESP-ROM:esp32p4-eco1-20240205
Build:Feb  5 2024
rst:0x1 (POWERON),boot:0x30f (SPI_FAST_FLASH_BOOT)
SPI mode:DIO, clock div:1
load:0x4ff33ce0,len:0x17e4
load:0x4ff2abd0,len:0xc38
load:0x4ff2cbd0,len:0x2fdc
entry 0x4ff2abda
I (25) boot: ESP-IDF v5.3.1 2nd stage bootloader
I (26) boot: compile time Nov  7 2024 16:21:20
I (26) boot: Multicore bootloader
I (30) boot: chip revision: v0.1
I (32) boot.esp32p4: SPI Speed      : 80MHz
I (37) boot.esp32p4: SPI Mode       : DIO
I (42) boot.esp32p4: SPI Flash Size : 2MB
I (47) boot: Enabling RNG early entropy source...
I (52) boot: Partition Table:
I (56) boot: ## Label            Usage          Type ST Offset   Length
I (63) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (70) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (78) boot:  2 factory          factory app      00 00 00010000 00100000
I (87) boot: End of partition table
I (90) esp_image: segment 0: paddr=00010020 vaddr=40060020 size=15ee8h ( 89832) map
I (119) esp_image: segment 1: paddr=00025f10 vaddr=30100000 size=00020h (    32) load
I (121) esp_image: segment 2: paddr=00025f38 vaddr=30100020 size=0003ch (    60) load
I (126) esp_image: segment 3: paddr=00025f7c vaddr=4ff00000 size=0a09ch ( 41116) load
I (144) esp_image: segment 4: paddr=00030020 vaddr=40000020 size=552e0h (348896) map
I (222) esp_image: segment 5: paddr=00085308 vaddr=4ff0a09c size=06184h ( 24964) load
I (230) esp_image: segment 6: paddr=0008b494 vaddr=4ff10280 size=028a4h ( 10404) load
I (237) boot: Loaded app from partition at offset 0x10000
I (238) boot: Disabling RNG early entropy source...
I (251) hex_psram: vendor id    : 0x0d (AP)
I (252) hex_psram: Latency      : 0x01 (Fixed)
I (252) hex_psram: DriveStr.    : 0x00 (25 Ohm)
I (255) hex_psram: dev id       : 0x03 (generation 4)
I (261) hex_psram: density      : 0x07 (256 Mbit)
I (266) hex_psram: good-die     : 0x06 (Pass)
I (271) hex_psram: SRF          : 0x02 (Slow Refresh)
I (277) hex_psram: BurstType    : 0x00 ( Wrap)
I (282) hex_psram: BurstLen     : 0x03 (2048 Byte)
I (288) hex_psram: BitMode      : 0x01 (X16 Mode)
I (293) hex_psram: Readlatency  : 0x04 (14 cycles@Fixed)
I (299) hex_psram: DriveStrength: 0x00 (1/1)
I (304) MSPI DQS: tuning success, best phase id is 2
I (492) MSPI DQS: tuning success, best delayline id is 12
I (492) esp_psram: Found 32MB PSRAM device
I (493) esp_psram: Speed: 200MHz
I (496) hex_psram: psram CS IO is dedicated
I (500) cpu_start: Multicore app
I (1455) esp_psram: SPI SRAM memory test OK
W (1464) clk: esp_perip_clk_init() has not been implemented yet
I (1471) cpu_start: Pro cpu start user code
I (1471) cpu_start: cpu freq: 360000000 Hz
I (1471) app_init: Application information:
I (1474) app_init: Project name:     mipi_dsi_panel
I (1480) app_init: App version:      v5.3.1
I (1485) app_init: Compile time:     Nov  7 2024 16:21:09
I (1491) app_init: ELF file SHA256:  0f125aa4d...
I (1496) app_init: ESP-IDF:          v5.3.1
I (1501) efuse_init: Min chip rev:     v0.1
I (1506) efuse_init: Max chip rev:     v0.99
I (1511) efuse_init: Chip rev:         v0.1
I (1516) heap_init: Initializing. RAM available for dynamic allocation:
I (1523) heap_init: At 4FF245F0 len 000169D0 (90 KiB): RAM
I (1529) heap_init: At 4FF3AFC0 len 00004BF0 (18 KiB): RAM
I (1535) heap_init: At 4FF40000 len 00060000 (384 KiB): RAM
I (1542) heap_init: At 50108080 len 00007F80 (31 KiB): RTCRAM
I (1548) heap_init: At 3010005C len 00001FA4 (7 KiB): TCM
I (1554) esp_psram: Adding pool of 32768K of PSRAM memory to heap allocator
I (1563) spi_flash: detected chip: generic
I (1566) spi_flash: flash io: dio
W (1570) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (1584) main_task: Started on CPU0
I (1604) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1604) main_task: Calling app_main()
I (1604) gpio: GPIO[20]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1614) example: MIPI DSI PHY Powered on
I (1624) example: Install MIPI DSI LCD control panel
E (6604) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (6604) task_wdt:  - IDLE0 (CPU 0)
E (6604) task_wdt: Tasks currently running:
E (6604) task_wdt: CPU 0: main
E (6604) task_wdt: CPU 1: IDLE1
E (6604) task_wdt: Print CPU 0 (current core) backtrace
Print CPU 0 (current core) registers
Core  0 register dump:
MEPC    : 0x40047d80  RA      : 0x40047d7a  SP      : 0x4ff279d0  GP      : 0x4ff10a80
TP      : 0x4ff27b70  T0      : 0x4fc19b4c  T1      : 0x48000c54  T2      : 0x00000000
S0/FP   : 0x00000001  S1      : 0x48000c58  A0      : 0x48000c58  A1      : 0x00000000
A2      : 0x00000006  A3      : 0x00000000  A4      : 0x500a0000  A5      : 0x00001801
A6      : 0x00000000  A7      : 0x00000008  S2      : 0x4ff27a4b  S3      : 0x00000000
S4      : 0x00000006  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000004  T4      : 0x00000003  T5      : 0x00000000  T6      : 0x00000000
MSTATUS : 0x00000001  MTVEC   : 0x00000000  MCAUSE  : 0x4ff27ae8  MTVAL   : 0x48000c70
MHARTID : 0x00000000
E (11604) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (11604) task_wdt:  - IDLE0 (CPU 0)
E (11604) task_wdt: Tasks currently running:
E (11604) task_wdt: CPU 0: main
E (11604) task_wdt: CPU 1: IDLE1
E (11604) task_wdt: Print CPU 0 (current core) backtrace
Print CPU 0 (current core) registers
Core  0 register dump:
MEPC    : 0x40047d80  RA      : 0x40047d7a  SP      : 0x4ff279d0  GP      : 0x4ff10a80
TP      : 0x4ff27b70  T0      : 0x4fc19b4c  T1      : 0x48000c54  T2      : 0x00000000
S0/FP   : 0x00000001  S1      : 0x48000c58  A0      : 0x48000c58  A1      : 0x00000000
A2      : 0x00000006  A3      : 0x00000000  A4      : 0x500a0000  A5      : 0x00001801
A6      : 0x00000000  A7      : 0x00000008  S2      : 0x4ff27a4b  S3      : 0x00000000
S4      : 0x00000006  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000004  T4      : 0x00000003  T5      : 0x00000000  T6      : 0x00000000
MSTATUS : 0x00000001  MTVEC   : 0x00000000  MCAUSE  : 0x4ff27ae8  MTVAL   : 0x48000c70
MHARTID : 0x00000000
E (16604) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (16604) task_wdt:  - IDLE0 (CPU 0)
E (16604) task_wdt: Tasks currently running:
E (16604) task_wdt: CPU 0: main
E (16604) task_wdt: CPU 1: IDLE1
E (16604) task_wdt: Print CPU 0 (current core) backtrace
Print CPU 0 (current core) registers
Core  0 register dump:
MEPC    : 0x40047d7e  RA      : 0x40047d7a  SP      : 0x4ff279d0  GP      : 0x4ff10a80
TP      : 0x4ff27b70  T0      : 0x4fc19b4c  T1      : 0x48000c54  T2      : 0x00000000
S0/FP   : 0x00000001  S1      : 0x48000c58  A0      : 0x48000c58  A1      : 0x00000000
A2      : 0x00000006  A3      : 0x00000000  A4      : 0x500a0000  A5      : 0x00060055
A6      : 0x00000000  A7      : 0x00000008  S2      : 0x4ff27a4b  S3      : 0x00000000
S4      : 0x00000006  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000004  T4      : 0x00000003  T5      : 0x00000000  T6      : 0x00000000
MSTATUS : 0x00000001  MTVEC   : 0x00000000  MCAUSE  : 0x4ff27ae8  MTVAL   : 0x48000c70
MHARTID : 0x00000000
E (21604) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (21604) task_wdt:  - IDLE0 (CPU 0)
E (21604) task_wdt: Tasks currently running:
E (21604) task_wdt: CPU 0: main
E (21604) task_wdt: CPU 1: IDLE1
E (21604) task_wdt: Print CPU 0 (current core) backtrace
Print CPU 0 (current core) registers
Core  0 register dump:
MEPC    : 0x40047d80  RA      : 0x40047d7a  SP      : 0x4ff279d0  GP      : 0x4ff10a80
TP      : 0x4ff27b70  T0      : 0x4fc19b4c  T1      : 0x48000c54  T2      : 0x00000000
S0/FP   : 0x00000001  S1      : 0x48000c58  A0      : 0x48000c58  A1      : 0x00000000
A2      : 0x00000006  A3      : 0x00000000  A4      : 0x500a0000  A5      : 0x00001801
A6      : 0x00000000  A7      : 0x00000008  S2      : 0x4ff27a4b  S3      : 0x00000000
S4      : 0x00000006  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x00000004  T4      : 0x00000003  T5      : 0x00000000  T6      : 0x00000000
MSTATUS : 0x00000001  MTVEC   : 0x00000000  MCAUSE  : 0x4ff27ae8  MTVAL   : 0x48000c70
MHARTID : 0x00000000
E (26604) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (26604) task_wdt:  - IDLE0 (CPU 0)
E (26604) task_wdt: Tasks currently running:
E (26604) task_wdt: CPU 0: main
E (26604) task_wdt: CPU 1: IDLE1
E (26604) task_wdt: Print CPU 0 (current core) backtrace

More Information.

No response

@Maxim88S Maxim88S added the Type: Bug bugs in IDF label Nov 8, 2024
@github-actions github-actions bot changed the title ESP32-P4. Problems with MIPI DSI ESP32-P4. Problems with MIPI DSI (IDFGH-14029) Nov 8, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 8, 2024
@suda-morris suda-morris removed the Type: Bug bugs in IDF label Nov 8, 2024
@suda-morris
Copy link
Collaborator

Hi @Maxim88S

If you're working with release v5.3.1, the example there is using a different MIPI LCD from the one inside the ESP32-P4-Function-EV-Board. In v5.3.2 (commin soon) this example will support the P4-Function-EV-Board out of the box.

For now, can you try the example from the master branch or from the release/v5.3 branch?

@Maxim88S
Copy link
Author

Maxim88S commented Nov 8, 2024

Thanks for the advice.
The master version launched without this error.
Now the output on the COM port is like this

I (1585) main_task: Started on CPU0
I (1605) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1605) main_task: Calling app_main()
I (1605) gpio: GPIO[20]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1615) example: MIPI DSI PHY Powered on
I (1625) example: Install MIPI DSI LCD control IO
I (1625) example: Install MIPI DSI LCD data panel
I (1635) ek79007: version: 1.0.0
I (1795) example: Initialize LVGL library
I (1795) example: Allocate separate LVGL draw buffers
I (1795) example: Register DPI panel event callback for LVGL flush ready notification
I (1805) example: Use esp_timer as LVGL tick timer
I (1805) example: Create LVGL task
I (1815) example: Starting LVGL task
I (1875) example: Display LVGL Meter Widget
I (2025) main_task: Returned from app_main()

But at the same time, only the backlight is on, and the display itself is black. Should something be displayed on the screen when running this example and if not, can you tell me how to modify the code to display, for example, an image.

@suda-morris
Copy link
Collaborator

@Maxim88S Have you read the user guide of the P4-Function-Board? https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32p4/esp32-p4-function-ev-board/user_guide.htm For example, how do you connect the RST_LCD?

@Maxim88S
Copy link
Author

Maxim88S commented Nov 11, 2024

Yes i read the guide. i found the solution. the code from this repository worked [https://github.com/jitenshap/esp32p4_mipi_dsi_hello_world]thanks!

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants