Building the #PinePhone USB Driver for Apache #NuttX Real-Time Operating System ... All shall be explained in this article

Article: lupyuen.github.io/articles/usb3?1 Image
#PinePhone USB Programming is so much easier with USB EHCI ... Here's why

Article: lupyuen.github.io/articles/usb3?… Image
#PinePhone USB EHCI Registers are (thankfully) documented in the Allwinner A64 manual

Article: lupyuen.github.io/articles/usb3?… Image
#PinePhone USB OTG is super complicated ... So we won't touch it today for Apache #NuttX RTOS

Article: lupyuen.github.io/articles/usb3?… Image
#PinePhone (Allwinner A64) has 2 USB Ports ... One goes to External USB, the other goes to LTE Modem

Article: lupyuen.github.io/articles/usb3?… Image
Here's how we configure the #NuttX USB Driver for #PinePhone

Article: lupyuen.github.io/articles/usb3?… Image
Tweaking the Apache #NuttX USB Driver for 64-bit #PinePhone

Article: lupyuen.github.io/articles/usb3?… Image
#NuttX USB Driver fails at startup ... Because we haven't powered on #PinePhone USB Controller

Article: lupyuen.github.io/articles/usb3?… Image
How to power up #PinePhone USB Controller? Let’s consult U-Boot Bootloader

Article: lupyuen.github.io/articles/usb3?… Image
Here's how we find the #PinePhone USB Driver in U-Boot Bootloader

Article: lupyuen.github.io/articles/usb3?… Image
U-Boot Device Tree reveals the USB Drivers for #PinePhone

Article: lupyuen.github.io/articles/usb3?… Image
To power up #PinePhone USB Controller: 1️⃣ Enable the USB Clocks 2️⃣ Deassert the USB Resets

Article: lupyuen.github.io/articles/usb3?… Image
U-Boot Bootloader's mystery code for #PinePhone USB ... We'll decipher this someday

Article: lupyuen.github.io/articles/usb3?… Image
Here's how we enable the USB Clocks for #PinePhone

Article: lupyuen.github.io/articles/usb3?… Image
Enabling #PinePhone USB Clocks ... How we do it for Apache #NuttX RTOS

Article: lupyuen.github.io/articles/usb3?… Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Lup Yuen Lee 李立源

Lup Yuen Lee 李立源 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @MisterTechBlog

Jun 24, 2021
Come join me (the "monster" 😂) as we dive deep into the #WiFi Code inside #RISCV #BL602 (the "wifi chip" 😂)

lupyuen.github.io/articles/pinec… Image
Many thanks to this hilarious (but truthful) comment on #BL602 😂

Here's the #BL602 #WiFi Firmware ... Let's find out how it connects to a WiFi Access Point

github.com/lupyuen/bl_iot… Image
Read 34 tweets
Apr 7, 2021
Now we port the #LoRaWAN Driver ... From Apache #Mynewt OS to #RISCV #BL602

github.com/lupyuen/bl_iot… Image
Our #BL602 #LoRaWAN Driver has many Layers (like Shrek) ... Let's peel the Shrek ... (erm) Layers 🧅

github.com/lupyuen/bl_iot… Image
The Application Layer (left) of our #BL602 #LoRaWAN Driver exposes LoRaWAN Functions to Application Firmware ... Join Network, Open/Close Port, Transmit/Receive Packets

github.com/lupyuen/bl_iot… BL602 LoRaWAN Driver: Appli...
Read 21 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(