RT-Thread on Allwinner D1H. LCD work

Created at 2024-10-17 19:58:16

Hi all,

I successfully build and ran RT-Thread on the RISC-V Allwinner D1H SoC.
Experimenting on ClockworkPi DevTerm R-01 device and Sipeed Lichee RV board

Allwinner D1H documentation very limited regarding peripherals. However if you enjoy brainteaser and some low-level stuff, you’re welcome.
Intention was to make RT-Thread portable terminal with working display and keyboard.

I manage to:

  • Create a working LCD MIPI DSI Display driver with frame buffer.
  • Create a working LCD RGB Display driver with frame buffer.
  • Make some progress on a USB keyboard driver.
  • Boot from SD card and communicate via UART
  • Debugging with GDB

The code is available at: https://github.com/ylyamin/RT-Thread-on-Allwinner-D1H

Ready images for SD card:

Please note: The DevTerm/uConsole battery charging/discharging controller is not yet configured in the driver, so I’m unsure how it affects the battery. I suggest not using the battery with RT-Thread and powering it via USB instead.

I’m writing a series of articles covering the knowledge and experience I’ve gained:

Finally, I dare to ask for help from the community, please:
I’m really stuck with the USB driver. It can detect device connections, but communication has not started.
Perhaps someone would enjoy diving deep into the USB driver to solve this riddle. Ready for issue reports and pull requests.

Picture of LCD Display test in RT-Thread running on Devterm R-01:

devterm_lcd_mipi_work.jpg

0 Answer

Create
Post