Article: NuttX RTOS for PinePhone: Blinking the LEDs
#1
Programming the GPIO Hardware on PinePhone looks complicated… But it’s not that different from microcontrollers! (Like PineTime Smartwatch and PineCone BL602)

Today we shall learn…
1. How to blink the LEDs on PinePhone
2. What’s the Allwinner A64 Port Controller
3. What’s inside the Linux Device Tree
4. How we configure and flip the GPIOs
5. How to do this in C and BASIC

We shall experiment with PinePhone’s GPIO Hardware by booting Apache NuttX RTOS on PinePhone.

Why boot NuttX RTOS on PinePhone? Why not Linux?

NuttX RTOS is a super-tiny, Linux-like operating system that gives us “Unlocked Access” to all PinePhone Hardware. Thus it’s easier to directly manipulate the Hardware Registers on PinePhone.

(Like with peek and poke in BASIC)

Will it mess up the Linux installed on PinePhone?

We shall boot NuttX safely with a microSD Card, we won’t touch the Linux Distro on PinePhone. 

Let’s dive in and find out how we blinked the PinePhone LEDs…

NuttX RTOS for PinePhone: Blinking the LEDs
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 32 23,344 03-21-2024, 04:27 PM
Last Post: donchurch
Wink PINEPHONE not booting Touchwood 2 280 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 5,157 12-20-2023, 07:20 AM
Last Post: nickolas
  Struggle to install LibreOffice on the PinePhone Peter Gamma 48 22,940 11-24-2023, 07:02 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 8 1,712 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 99,943 11-17-2023, 08:37 AM
Last Post: Uturn
  Using Signal on PinePhone in mid-2023? dante404 45 11,762 11-17-2023, 04:23 AM
Last Post: Kevin Kofler
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 815 11-04-2023, 07:23 PM
Last Post: tllim
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 1,838 10-24-2023, 08:57 AM
Last Post: Peter Gamma
  What File Manager Options Are There For The Pinephone? pinephoneuser22 7 2,114 10-18-2023, 08:37 AM
Last Post: luppivega

Forum Jump:


Users browsing this thread: 1 Guest(s)