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


Messages In This Thread
Article: NuttX RTOS for PinePhone: Blinking the LEDs - by lupyuen - 09-21-2022, 02:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Office applications for the Pinephone Peter Gamma 2 620 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 36,810 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 1,200 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Which word processor to choose for the Pinephone? Peter Gamma 16 5,890 06-22-2024, 07:28 AM
Last Post: Peter Gamma
  Samba share on the Pinephone? Peter Gamma 0 699 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Possible Free Backup Carrier for PinePhone PineFone 0 604 06-13-2024, 03:45 PM
Last Post: PineFone
  Using Signal on PinePhone in mid-2023? dante404 47 23,668 05-03-2024, 02:19 AM
Last Post: dragonhospital
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 38 33,975 04-23-2024, 10:29 AM
Last Post: donchurch
Wink PINEPHONE not booting Touchwood 2 1,292 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 6,619 12-20-2023, 07:20 AM
Last Post: nickolas

Forum Jump:


Users browsing this thread: 2 Guest(s)