Hi all,
I successfully build and ran RT-Thread on the RISC-V Allwinner D1H SoC.
Executed at hardware such as ClockworkPi uConsole R-01,ClockworkPi DevTerm R-01 and Sipeed Lichee RV + Dock.
@jusentari made uConsole display work in RTT (experimental display parameters, use with caution).
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:
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 uConsole R-01:
Picture of LCD Display test in RT-Thread running on Devterm R-01:
UPD: I managed to do USB working.
Thanks, user Zoenggit for the tip. Found a hand-made ham radio transceiver project from one guru guy, it has a proper implementation of EHCI/OHCI stack for Allwinner D1/T113 hftrx_tinyusb. I just changed it a little to support RT-Thread.
Now USB keyboard sends a key press to the system.