Article: LoRa SX1262 on NuttX

2021-12-21 Thread Lee, Lup Yuen
Here's my new article that explains how I ported the LoRa Driver for Semtech SX1262 from Linux to NuttX... https://lupyuen.github.io/articles/sx1262 Now that we can send and receive LoRa messages, I'll start porting the LoRaWAN Stack to NuttX. Stay tuned :-) Lup

Article: LoRaWAN on NuttX

2022-01-02 Thread Lee, Lup Yuen
This article explains how I ported Semtech's LoRaWAN Stack to NuttX. Have an awesome 2022! :-) https://lupyuen.github.io/articles/lorawan3 Lup

Re: Article: NuttX on BL602 / BL604

2021-11-24 Thread Lee, Lup Yuen
Hi Xiao Xiang: If you would like to reproduce or translate my article into Chinese, please go ahead thanks :-) On Thu, 25 Nov 2021, 2:03 pm Xiang Xiao, wrote: > On Thu, Nov 25, 2021 at 1:36 PM Lee, Lup Yuen wrote: > > > Hi All: I have just published an article about NuttX on B

Re: Article: NuttX on BL602 / BL604

2021-11-24 Thread Lee, Lup Yuen
Thanks that's great! Looking forward to it :-) On Thu, 25 Nov 2021, 2:03 pm Xiang Xiao, wrote: > On Thu, Nov 25, 2021 at 1:36 PM Lee, Lup Yuen wrote: > > > Hi All: I have just published an article about NuttX on BL602 / BL604... > > > > https://lupyuen.github.io/artic

Article: NuttX on BL602 / BL604

2021-11-24 Thread Lee, Lup Yuen
Hi All: I have just published an article about NuttX on BL602 / BL604... https://lupyuen.github.io/articles/nuttx NuttX works great, I'm really enjoying it. Thanks everyone for making NuttX so awesome! :-) Lup

Article: SPI on BL602 and ESP32

2021-12-12 Thread Lee, Lup Yuen
Here's my new article about NuttX SPI on BL602 and ESP32... https://lupyuen.github.io/articles/spi2 Now that NuttX is talking OK to Semtech SX1262 (LoRa Transceiver), I'll start porting the LoRaWAN Stack to NuttX. Thanks :-)

Re: Article: SPI on BL602 and ESP32

2021-12-12 Thread Lee, Lup Yuen
2021 at 9:57 AM Lee, Lup Yuen wrote: > > > Here's my new article about NuttX SPI on BL602 and ESP32... > > > > https://lupyuen.github.io/articles/spi2 > > > > Now that NuttX is talking OK to Semtech SX1262 (LoRa Transceiver), I'll > > start porting the LoRaWAN Stack to NuttX. Thanks :-) > > >

Article: Encode Sensor Data with CBOR

2022-01-09 Thread Lee, Lup Yuen
This article explains how we may encode Sensor Data with the TinyCBOR Library on NuttX... https://lupyuen.github.io/articles/cbor2 Up Next: Rust Embedded on NuttX :-) Lup

Re: Article: Rust on NuttX

2022-01-11 Thread Lee, Lup Yuen
Thanks Alan! I'll do more IoT with Rust on NuttX in future articles :-) On Wed, Jan 12, 2022 at 7:59 AM Alan Carvalho de Assis wrote: > Nice you Lup! Kudos!!! > > On 1/11/22, Lee, Lup Yuen wrote: > > This article explains how we might run Rust apps on NuttX... > > > >

Article: Rust on NuttX

2022-01-11 Thread Lee, Lup Yuen
This article explains how we might run Rust apps on NuttX... https://lupyuen.github.io/articles/rust2 I also tested the Rust Driver for LoRa SX1262 on NuttX. Up Next: Connecting NuttX to The Things Network over LoRaWAN Lup

Article: NuttX Driver for BME280 Sensor (ported from Zephyr OS)

2022-03-08 Thread Lee, Lup Yuen
This article explains how I ported the BME280 I2C Driver (Temperature / Humidity / Pressure) from Zephyr OS to NuttX... https://lupyuen.github.io/articles/bme280 Lup

Re: Article: Connect IKEA Air Quality Sensor to NuttX

2022-02-11 Thread Lee, Lup Yuen
plication lib, similar to the gps minmea lib > to parser and to return the PM 2.5 dust value. > > BR, > > Alan > > On Friday, February 11, 2022, Lee, Lup Yuen wrote: > > > This article explains how I read the PM 2.5 data from IKEA VINDRIKTNING > Air > > Qu

Article: Rust talks I2C on NuttX

2022-03-21 Thread Lee, Lup Yuen
This article explains how I ran the Rust Driver for BME280 Sensor on NuttX, by creating a NuttX Embedded HAL... https://lupyuen.github.io/articles/rusti2c Lup

Article: ST7789 Display with LVGL Graphics

2022-03-31 Thread Lee, Lup Yuen
This article explains how I configured the Sitronix ST7789 SPI Display and LVGL Graphics Library for NuttX: https://lupyuen.github.io/articles/st7789 Lup

Re: nuttx imxrt board serial use for help

2022-03-22 Thread Lee, Lup Yuen
Sorry I haven't tried 3 serial ports. I have tested 2 serial ports on BL602: https://lupyuen.github.io/articles/ikea Lup On Tue, Mar 22, 2022 at 3:04 PM prelude wrote: > A board of our own imxrt1052, refer to > nuttx/boars/arms/imxrt/imxrt1050-evk, and plan to use these serial ports > > /*

Article: Connect IKEA Air Quality Sensor to NuttX

2022-02-10 Thread Lee, Lup Yuen
This article explains how I read the PM 2.5 data from IKEA VINDRIKTNING Air Quality Sensor (with some soldering) https://lupyuen.github.io/articles/ikea

Article: Auto Flash and Test NuttX on RISC-V BL602

2022-01-24 Thread Lee, Lup Yuen
This article explains how I created a Linux script to flash and test NuttX automatically on the BL602 RISC-V SoC... https://lupyuen.github.io/articles/auto Lup

[Article] NuttX on Star64 JH7110: Power Up the Display Controller with U-Boot Bootloader

2023-09-02 Thread Lee, Lup Yuen
In olden days we’d "peek" and "poke" the Display Controller, to see weird and wonderful displays. Today (46 years later), we poke around the Display Controller of Star64 JH7110 RISC-V SBC with a modern tool (not BASIC): U-Boot Bootloader! In this article we discover… (1) U-Boot Commands "md" and

Re: riscv64 libm link question

2023-09-17 Thread Lee, Lup Yuen
Here's what Ken and I have tried for the riscv64 libm linking problem: (1) The recommended toolchain for NuttX on riscv64 is SiFive Freedom Tools. But it doesn't support Raspberry Pi OS (64-bit Debian). (2) So we used Debian gcc-riscv64-unknown-elf instead. Which shows the missing libm error

[Article] NuttX on Star64 JH7110: OpenSBI (Supervisor Binary Interface)

2023-10-28 Thread Lee, Lup Yuen
Bare Metal Programming on a RISC-V SBC (Single-Board Computer) sounds difficult. Thankfully we can get help from the OpenSBI Supervisor Binary Interface! (A little like BIOS, but for RISC-V) In this article, we boot NuttX on Star64 JH7110 RISC-V SBC (and VisionFive2) to experiment with OpenSBI:

[Article] NuttX on Ox64 BL808 RISC-V SBC

2023-11-04 Thread Lee, Lup Yuen
Pine64 Ox64 is an affordable RISC-V SBC ($8) based on Bouffalo Lab BL808 SoC with 3 (Asymmetric) RISC-V Cores: (1) D0 Multimedia Core: 64-bit T-Head C906 with MIPI CSI, Neural Processing Unit (2) M0 Wireless Core: 32-bit T-Head E907 with WiFi, Bluetooth LE, Zigbee, Audio, USB, Ethernet (3) Low

Re: [VOTE] Apache NuttX 12.3.0 RC1 release

2023-10-18 Thread Lee, Lup Yuen
+1 for PinePhone and Star64 Minor Issue: Building PinePhone on macOS shows the message "sed: illegal option -- r" and still builds OK. The patch has been merged, we can add this to the next release: https://github.com/apache/nuttx/pull/10881 = PinePhone Compiler + aarch64-none-elf-gcc -v

Re: [VOTE] Apache NuttX 12.3.0 RC0 release

2023-10-09 Thread Lee, Lup Yuen
+1 for PinePhone and Star64 Minor Issue: Building on macOS shows "sed: illegal option -- r", probably because macOS sed works differently from Linux. I'll track down the PR that caused this. Here are the sed messages:

[Article] NuttX on Star64 JH7110: Inside the Display Controller

2023-08-22 Thread Lee, Lup Yuen
We’re building a HDMI Display Driver for NuttX on Star64 SBC, but the JH7110 Display Controller isn't documented! In this article, we decipher the Official Driver for JH7110 Display Controller and figure out how it works... (1) What’s inside the Direct Rendering Manager (DRM) Driver for JH7110

Article: NuttX Touch Panel Driver for PineDio Stack BL604

2022-04-20 Thread Lee, Lup Yuen
PineDio Stack BL604 is Pine64's newest RISC-V Board and it ships with a Colour LCD Touchscreen. This article explains how I created the driver for the Hynitron CST816S I2C Touch Panel... https://lupyuen.github.io/articles/touch Lup

Article: PineDio Stack BL604 runs NuttX

2022-04-10 Thread Lee, Lup Yuen
Pine64 will soon be selling the PineDio Stack BL604 RISC-V board with ST7789 Display, Touch Panel, LoRa SX1262 and a bunch of I2C sensors onboard. This article describes the NuttX features that will be supported on PineDio Stack at launch... https://lupyuen.github.io/articles/pinedio2 Lup

Article: Buttons on BL602 NuttX

2022-04-23 Thread Lee, Lup Yuen
Robert Lipe and I are working on Pine64's PineDio Stack BL604 RISC-V board and adding NuttX support for the Push Button. In this article, Robert explains the interesting things that we've learnt... https://www.robertlipe.com/buttons-on-bl602-nuttx/ Lup

Article: Zig on RISC-V BL602

2022-06-01 Thread Lee, Lup Yuen
This article explains how I ran a simple Zig app on BL602 NuttX: https://lupyuen.github.io/articles/zig Lup

Article: Build an LVGL Touchscreen App with Zig

2022-07-11 Thread Lee, Lup Yuen
This article explains how I used Zig to write an LVGL application for NuttX: https://lupyuen.github.io/articles/lvgl Lup

Article: Build an IoT App with Zig and LoRaWAN

2022-06-13 Thread Lee, Lup Yuen
This article explains how I created a LoRaWAN App with Zig and NuttX: https://lupyuen.github.io/articles/iot Lup

Article: Automated Testing of NuttX on PineDio Stack BL604

2022-05-21 Thread Lee, Lup Yuen
This article explains how we do Automated Testing of every NuttX Release for PineDio Stack BL604 RISC-V Board... https://lupyuen.github.io/articles/auto2 Lup

Article: Read NuttX Sensor Data with Zig

2022-07-28 Thread Lee, Lup Yuen
This article explains the steps to read a NuttX Sensor with the new-ish Zig programming language... https://lupyuen.github.io/articles/sensor Lup

Article: GPIO Expander for PineDio Stack BL604

2022-05-02 Thread Lee, Lup Yuen
This article explains how I created an I/O Expander to manage all 23 GPIOs on PineDio Stack BL604 RISC-V Board: https://lupyuen.github.io/articles/expander Lup

Article: NuttX on Arm Cortex-A53 and PinePhone

2022-08-24 Thread Lee, Lup Yuen
NuttX now supports 64-bit Arm Cortex-A53 with Multi-Core SMP... Will it run on Pine64's PinePhone? This article explores how we might run NuttX on a real phone... https://lupyuen.github.io/articles/arm Lup

Re: Article: NuttX on Arm Cortex-A53 and PinePhone

2022-08-27 Thread Lee, Lup Yuen
Thank you so much Nathan! Yes it would be super interesting to see NuttX on Pi, I hope to run it someday :-) Lup On Fri, Aug 26, 2022 at 7:51 AM Nathan Hartman wrote: > On Wed, Aug 24, 2022 at 8:05 PM Lee, Lup Yuen wrote: > > > > NuttX now supports 64-bit Arm Cortex-A53 with

Article: PinePhone boots NuttX

2022-08-27 Thread Lee, Lup Yuen
NuttX now boots on Pine64's PinePhone! (Arm Cortex-A53) This article explains the changes that I made... https://lupyuen.github.io/articles/uboot Lup

Article: NuttX on PinePhone: Fixing the Interrupts

2022-08-31 Thread Lee, Lup Yuen
NuttX on Pine64's PinePhone had some issues with Arm64 Interrupts. This article explains how I fixed them, also how I ported NuttX's GIC v2 from Arm32 to Arm64. (Generic Interrupt Controller) https://lupyuen.github.io/articles/interrupt Lup

Re: Article: PinePhone boots NuttX

2022-08-28 Thread Lee, Lup Yuen
; -- > > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > > > > On Sat, Aug 27, 2022, 13:25 Lee, Lup Yuen wrote: > > > > > NuttX now boots on Pine64's PinePhone! (Arm Cortex-A53) This article > > > explains the changes that I made... > > > > > > https://lupyuen.github.io/articles/uboot > > > > > > Lup > > > > > >

Re: Pine64 / Drivers / Linux

2022-09-26 Thread Lee, Lup Yuen
Hi Tomek: Thanks for sharing, I have been following the Pine64 Community, indeed these are interesting developments. At the NuttX Online Workshop I was delighted to hear that NuttX on 64-bit RISC-V has advanced so far. Perhaps after porting NuttX to PinePhone, I should try porting NuttX to

Article: NuttX for PinePhone: Display Driver in Zig

2022-10-17 Thread Lee, Lup Yuen
Inside Pine64's PinePhone (Arm64) is an Sitronix ST7703 LCD Controller that talks over MIPI Display Serial Interface. This article explains how we created a Quick Prototype of the PinePhone Display Driver with the Zig Programming Language... https://lupyuen.github.io/articles/dsi2 Lup

Re: [VOTE] Apache NuttX Community Graduation

2022-10-21 Thread Lee, Lup Yuen
+1: Apache NuttX is ready to graduate to TLP. Yay! On Fri, Oct 21, 2022 at 8:47 PM Nathan Hartman wrote: > Dear Apache NuttX Community, > > Following the [DISCUSS] thread which has gone 72 hours without any > further issues raised [1]: > > This is a call to VOTE on Graduation of Apache NuttX

Article: Rendering PinePhone's Display (DE and TCON0)

2022-10-29 Thread Lee, Lup Yuen
Inside Pine64's PinePhone (Arm64) is the Allwinner A64 SoC and its A64 Display Engine that renders graphics on the LCD Display. This article explains how we might build a NuttX Display Driver for PinePhone's A64 Display Engine. https://lupyuen.github.io/articles/de Lup

Re: Article: Rendering PinePhone's Display (DE and TCON0)

2022-10-30 Thread Lee, Lup Yuen
articles are always very detailed and easy to understand, you are > a great teacher! > > BR, > > Alan > > On 10/29/22, Lee, Lup Yuen wrote: > > Inside Pine64's PinePhone (Arm64) is the Allwinner A64 SoC and its A64 > > Display Engine that renders graphics on the LCD Dis

Article: NuttX for PinePhone: Blinking the LEDs

2022-09-21 Thread Lee, Lup Yuen
This article explains how we run the BASIC Interpreter on NuttX, to experiment with the LEDs and GPIOs on Pine64's PinePhone... https://lupyuen.github.io/articles/pio Lup

Article: NuttX for PinePhone: UART Driver

2022-09-09 Thread Lee, Lup Yuen
PinePhone now boots to NSH Shell, and runs NuttX Commands perfectly OK! This article explains how we created the UART Driver for PinePhone... https://lupyuen.github.io/articles/serial Lup

Article: Understanding PinePhone's Display (MIPI DSI)

2022-10-01 Thread Lee, Lup Yuen
This article explains what's inside PinePhone's LCD Display (MIPI Display Serial Interface), and how we might build a NuttX Driver for PinePhone's ST7703 LCD Controller... https://lupyuen.github.io/articles/dsi Lup

Re: Article: Visual Programming with NuttX

2022-08-07 Thread Lee, Lup Yuen
o present at NuttX Workshop if you still have > more stamina to do so! :-) > > BR, > > Alan > > On Saturday, August 6, 2022, Lee, Lup Yuen wrote: > > > This article explains how we might drag-and-drop NuttX Sensors to create > > IoT Sensor Apps... > > > > https://lupyuen.github.io/articles/blockly > > > > Lup > > >

Article: Visual Programming with Zig and NuttX Sensors

2022-08-17 Thread Lee, Lup Yuen
What if we could drag-and-drop NuttX Sensors to create IoT Apps? This article explains how... https://lupyuen.github.io/articles/visual Thanks to Alan C. Assis for the brilliant idea on "Visual Arduino"! Lup

Article: Visual Programming with NuttX

2022-08-06 Thread Lee, Lup Yuen
This article explains how we might drag-and-drop NuttX Sensors to create IoT Sensor Apps... https://lupyuen.github.io/articles/blockly Lup

Article: NuttX for PinePhone: Display Engine

2022-12-22 Thread Lee, Lup Yuen
NuttX Mainline now supports the Display Engine for Allwinner A64 SoC (Arm64). Many thanks to my patient reviewers for wading through a thousand lines of code :-) This article explains how the A64 Display Engine will be called by the upcoming LCD Driver for Pine64 PinePhone...

Re: Article: NuttX for PinePhone: Display Engine

2022-12-22 Thread Lee, Lup Yuen
mazing documentation! > > Thank you Lup! > > On 12/22/22, Lee, Lup Yuen wrote: > > NuttX Mainline now supports the Display Engine for Allwinner A64 SoC > > (Arm64). Many thanks to my patient reviewers for wading through a > thousand > > lines of code :-) > >

Re: Article: NuttX for PinePhone: LCD Panel

2022-12-27 Thread Lee, Lup Yuen
Yep we should show our own logo! Anyone got an SVG file? I'll turn it into the Startup Image for PinePhone :-) Lup On Wed, Dec 28, 2022 at 9:21 AM Nathan Hartman wrote: > On Tue, Dec 27, 2022 at 8:06 PM Alan C. Assis wrote: > > > Very nice Lup! Kudos!!! > > > > I think we need a

Article: NuttX for PinePhone: LCD Panel

2022-12-27 Thread Lee, Lup Yuen
NuttX Mainline now boots with a Test Pattern on Pine64 PinePhone! (Arm64 / Allwinner A64 SoC) This article explains what's inside our new NuttX Driver for PinePhone's LCD Panel... https://lupyuen.github.io/articles/lcd Lup

Article: NuttX for PinePhone: Framebuffer

2022-12-30 Thread Lee, Lup Yuen
LVGL now renders OK on Pine64 PinePhone with NuttX Mainline! (No Touch Input yet though) This article explains what's inside our new Framebuffer Driver for PinePhone, plus a mysterious problem of missing pixels... https://lupyuen.github.io/articles/fb The article was "leaked" earlier to Hacker

Article: NuttX for PinePhone: What is it?

2023-01-01 Thread Lee, Lup Yuen
People often ask why we're porting NuttX to Pine64 PinePhone (Arm64 / Allwinner A64 SoC). So I wrote an FAQ about NuttX for PinePhone. Have an Awesome 2023 everyone! :-) https://lupyuen.github.io/articles/what Lup

Re: Article: NuttX for PinePhone: Touch Panel

2023-01-12 Thread Lee, Lup Yuen
023 at 07:12:37AM +0800, Lee, Lup Yuen wrote: > > PinePhone on NuttX will soon support LVGL Touchscreen Apps! This article > > explains how we created the NuttX Driver for PinePhone's I2C Touch > Panel... > > > > https://lupyuen.github.io/articles/touch2 >

Article: NuttX for PinePhone: Touch Panel

2023-01-12 Thread Lee, Lup Yuen
PinePhone on NuttX will soon support LVGL Touchscreen Apps! This article explains how we created the NuttX Driver for PinePhone's I2C Touch Panel... https://lupyuen.github.io/articles/touch2 Lup

Article: NuttX for PinePhone: MIPI Display Serial Interface

2022-12-14 Thread Lee, Lup Yuen
NuttX Mainline now supports MIPI DSI (Display Serial Interface) on Pine64 PinePhone! (Allwinner A64 SoC) This article explains how MIPI DSI will be called by the upcoming PinePhone Display Driver... https://lupyuen.github.io/articles/dsi3 Lup

Re: Article: NuttX RTOS for PinePhone: Render Graphics in Zig

2022-11-15 Thread Lee, Lup Yuen
Thanks everyone! It's time for me to merge the PinePhone code into NuttX Mainline :-) On Tue, Nov 15, 2022 at 9:21 PM alin.jerpe...@sony.com < alin.jerpe...@sony.com> wrote: > NICE! > > > -Original Message- > From: Tomek CEDRO > Sent: den 15 november 2022 14:18 > To:

PinePhone added to NuttX Mainline

2022-11-25 Thread Lee, Lup Yuen
Pine64 PinePhone is now supported by NuttX Mainline! If you have a PinePhone (and PinePhone Serial Debug Cable), you're welcome to try NuttX on PinePhone... https://github.com/apache/nuttx/blob/master/Documentation/platforms/arm/a64/boards/pinephone/index.rst Please lemme know if you see any

Article: Preparing a Pull Request for NuttX

2022-11-28 Thread Lee, Lup Yuen
This article explains how I prepared my Pull Requests for NuttX. I hope this will be helpful for folks contributing to NuttX for the very first time :-) https://lupyuen.github.io/articles/pr Lup

Re: Article: Preparing a Pull Request for NuttX

2022-11-28 Thread Lee, Lup Yuen
lan > > On 11/28/22, Lee, Lup Yuen wrote: > > This article explains how I prepared my Pull Requests for NuttX. I hope > > this will be helpful for folks contributing to NuttX for the very first > > time :-) > > > > https://lupyuen.github.io/articles/pr > > > > Lup > > >

Article: NuttX trips ChatGPT

2023-01-28 Thread Lee, Lup Yuen
ChatGPT (the AI chatbot) will gladly answer questions about NuttX! But the answers aren't always correct. Let's turn this into a learning opportunity, and understand why ChatGPT's answers are incorrect... https://lupyuen.github.io/articles/chatgpt Lup

Article: NuttX for PinePhone: Boot to LVGL

2023-01-21 Thread Lee, Lup Yuen
NuttX now boots with an LVGL Touchscreen App on PinePhone! (Without a Serial Cable) This article explains how we configured NuttX to boot LVGL, and how we tweaked LVGL to be more Touch-Friendly on PinePhone... https://lupyuen.github.io/articles/lvgl2 Lup

Article: NuttX RTOS for PinePhone: Render Graphics in Zig

2022-11-15 Thread Lee, Lup Yuen
Inside Pine64's PinePhone (Arm64) is the Allwinner A64 Display Engine that renders graphics on the LCD Display. This article explains how we're building a NuttX Driver for the A64 Display Engine, using the Zig Programming Language... https://lupyuen.github.io/articles/de2 Lup

Article: NuttX for PinePhone: LVGL Terminal for NSH Shell

2023-02-01 Thread Lee, Lup Yuen
Now we can run NuttX Console Apps on PinePhone, without a Serial Cable! This article explains how we call the LVGL GUI Library to create a Touchscreen Terminal App that runs NSH Commands... https://lupyuen.github.io/articles/terminal Lup

Article: NuttX for PinePhone: Simpler USB with EHCI

2023-03-23 Thread Lee, Lup Yuen
Weeks ago we talked about porting NuttX to PinePhone, and how we might turn it into a Feature Phone. But to make phone calls and send text messages, we need to control the LTE Modem over USB. Thus today we’ll build a USB Driver for NuttX on PinePhone… 1. What’s USB Enhanced Host Controller

Article: (Clickable) Call Graph for NuttX on PinePhone

2023-03-04 Thread Lee, Lup Yuen
Last week we ran NuttX on Unicorn Emulator and we hit a baffling Arm64 Exception. In this article we’ll create some tools to troubleshoot the exception… 1. Render the Dynamic Call Graph for NuttX, to understand how it boots 2. Make it Clickable, so we can browse the NuttX Source Code as we

Article: NuttX for PinePhone: Exploring USB

2023-02-17 Thread Lee, Lup Yuen
We're about to turn PinePhone on NuttX into a Feature Phone... But to talk to PinePhone's LTE Modem, we need a NuttX Driver for Allwinner A64 USB Controller. In this article we’ll dive into PinePhone’s USB Controller… 1. Why PinePhone needs USB for Voice Calls and SMS 2. What’s inside

Article: Emulate NuttX on PinePhone with Unicorn Emulator

2023-02-23 Thread Lee, Lup Yuen
Unicorn is a lightweight CPU Emulator Framework based on QEMU. To make PinePhone testing easier, can we emulate NuttX on PinePhone with Unicorn Emulator? In this article we’ll call Unicorn Emulator to… 1. Emulate Arm64 Machine Code 2. Attach Hooks to intercept Memory Access and Code Execution

Re: MCU/Board with WiFi, BT and USB Host

2023-04-20 Thread Lee, Lup Yuen
That's correct, NuttX on PinePhone doesn't support WiFi and BT yet. We're still working on USB Host for PinePhone: https://lupyuen.github.io/articles/usb3 Lup On Thu, Apr 20, 2023 at 11:07 PM Alan C. Assis wrote: > Hi Mr. Zou, > > PinePhone is a nice idea, but I'm afraid that WiFi is not

Re: How ro re-trigger CI workflow?

2023-04-22 Thread Lee, Lup Yuen
Hi Zou: Usually I rebase my branch with the Master Branch to re-trigger the CI Workflow... https://lupyuen.github.io/articles/pr#submit-the-pull-request Hope this helps :-) Lup On Sat, Apr 22, 2023 at 4:25 PM fft wrote: > Hello, > > > Two weeks ago, i created a PR #8999 to fix an issue of

Article: NuttX for PinePhone: 4G LTE Modem

2023-04-10 Thread Lee, Lup Yuen
Right now we’re building a Feature Phone with NuttX on PinePhone. To make things simpler, we’re writing down everything we know about the 4G LTE Modem, and how it works inside PinePhone… 1. What’s the Quectel EG25-G LTE Modem 2. How it’s connected inside PinePhone 3. How we make Phone Calls and

Re: [VOTE] Apache NuttX 12.1.0 RC0 release

2023-04-11 Thread Lee, Lup Yuen
+1 for PinePhone = Compiler + aarch64-none-elf-gcc -v Using built-in specs. COLLECT_GCC=aarch64-none-elf-gcc COLLECT_LTO_WRAPPER=/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin/../libexec/gcc/aarch64-none-elf/11.3.1/lto-wrapper Target: aarch64-none-elf Configured with:

Re: Video: NuttX for PinePhone

2023-02-07 Thread Lee, Lup Yuen
n Wed, Feb 8, 2023 at 8:26 AM Tomek CEDRO wrote: > On Wed, Feb 8, 2023 at 1:10 AM Lee, Lup Yuen wrote: > > If we're curious how we download and boot NuttX on PinePhone, this video > > explains the steps... > > > > Watch on YouTube: https://youtu.be/kGI_0yK1vws >

Video: NuttX for PinePhone

2023-02-07 Thread Lee, Lup Yuen
If we're curious how we download and boot NuttX on PinePhone, this video explains the steps... Watch on YouTube: https://youtu.be/kGI_0yK1vws Download the video (1.4 GB): https://github.com/lupyuen2/wip-pinephone-nuttx/releases/tag/nuttx-12.0.3 (Sorry some bits look murky, this is my first time

Re: Article: NuttX for PinePhone: LVGL Terminal for NSH Shell

2023-02-02 Thread Lee, Lup Yuen
On Thu, Feb 2, 2023 at 8:28 PM Alan C. Assis wrote: > Hi Lup, > > Very nice article! Kudos!!! > > Is it possible to modify the demo to type direclty inside the "LVGL > terminal" screen? > > Did you test PinePhone nxterm too? > > BR, > > Alan > >

Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-03 Thread Lee, Lup Yuen
Alan C. Assis wrote: > Hi Lup, > > Very nice! > > Are you planing to create FeaturePhone interface for PinePhone? > > BR, > > Alan > > On 5/3/23, Lee, Lup Yuen wrote: > > What makes PinePhone a phone? Because it will make Phone Calls and send > > Te

Re: [VOTE] Apache NuttX 12.2.1 RC0 release

2023-07-10 Thread Lee, Lup Yuen
+1 for PinePhone = Compiler + aarch64-none-elf-gcc -v Using built-in specs. COLLECT_GCC=aarch64-none-elf-gcc COLLECT_LTO_WRAPPER=/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin/../libexec/gcc/aarch64-none-elf/11.3.1/lto-wrapper Target: aarch64-none-elf Configured with:

[Article] NuttX on RISC-V: Star64 JH7110 SBC

2023-07-08 Thread Lee, Lup Yuen
In this article we’ll boot a tiny bit of NuttX on the Pine64 Star64 64-bit RISC-V Single-Board Computer. (Based on StarFive JH7110 SoC) (1) Migrate NuttX from QEMU Emulator to Star64 (2) Print to the Serial Console in RISC-V Assembly (3) Trick U-Boot Bootloader into thinking we’re Linux (4)

[Article] Boot NuttX from Network with U-Boot and TFTP

2023-07-12 Thread Lee, Lup Yuen
Testing NuttX can get painfully tedious on a Single-Board Computer... Swapping, reflashing and rebooting a MicroSD Card, again and again and again! (Like how we tested NuttX on PinePhone) Thankfully there’s a better way: Booting NuttX over the Local Network, with U-Boot Bootloader and TFTP! In

Re: adding a new board - files?

2023-07-18 Thread Lee, Lup Yuen
Hi Krasimir: I wrote an article about submitting a NuttX Pull Request on GitHub, I hope this helps :-) https://lupyuen.codeberg.page/articles/pr.html Lup On Tue, Jul 18, 2023 at 6:44 PM Krasimir Cheshmedzhiev < cheshmedzh...@gmail.com> wrote: > Hi all, > > I added the support of

[Article] NuttX on Star64 JH7110: RISC-V Privilege Levels and UART Registers

2023-07-18 Thread Lee, Lup Yuen
We’re in the super-early stage of porting NuttX to the Pine64 Star64 64-bit RISC-V SBC. (Based on StarFive JH7110 SoC) In this article we’ll talk about the interesting things that we learnt about RISC-V and Star64 JH7110… (1) What are RISC-V Privilege Levels (And why they make NuttX a

Re: [Article] NuttX on Star64 JH7110: RISC-V Privilege Levels and UART Registers

2023-07-18 Thread Lee, Lup Yuen
Mode :-) Lup On Wed, Jul 19, 2023 at 10:25 AM Nathan Hartman wrote: > On Tue, Jul 18, 2023 at 7:33 PM Lee, Lup Yuen wrote: > > > We’re in the super-early stage of porting NuttX to the Pine64 Star64 > 64-bit > > RISC-V SBC. (Based on StarFive JH7110 SoC) > > > >

Re: Raspberry pi 4 Support

2023-07-19 Thread Lee, Lup Yuen
Hi Joseph: I think we could follow the same porting steps as I did for PinePhone? (Allwinner A64 / Cortex-A53) We started by booting NuttX with the U-Boot Bootloader: https://lupyuen.github.io/articles/uboot Then we built up the NuttX Drivers. Check out the articles here:

[Article] Booting on RISC-V Star64 JH7110 SBC

2023-07-03 Thread Lee, Lup Yuen
We managed to boot a tiny bit of NuttX on the RISC-V Star64 JH7110 SBC! (Before crashing with a Privileged Instruction Exception) This article explains how we patched a Linux Image to boot NuttX on Star64: https://lupyuen.codeberg.page/articles/linux.html Lup

Article: LVGL in WebAssembly with Zig Compiler

2023-05-30 Thread Lee, Lup Yuen
Right now we’re creating a Feature Phone UI (in LVGL and Zig) for PinePhone on NuttX. Would be awesome if we could prototype the Feature Phone UI in our Web Browser… To make the UI Coding a little easier! In this article we’ll talk about porting LVGL from PinePhone to WebAssembly… (1) Run a Zig

Re: CI tests (was: Re: [OT] Learning Makefiles)

2023-05-23 Thread Lee, Lup Yuen
Maybe we can run the CI Tests once a day, so it's easier to backtrack? FYI I've run Automated Tests on BL602 NuttX over the past 365 days (except for the brief Makefile outage last week): https://github.com/lupyuen/nuttx/tags Here's how it works: https://lupyuen.github.io/articles/auto Lup On

Article: NuttX for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly

2023-06-09 Thread Lee, Lup Yuen
We have created an LVGL App that runs in a Web Browser and on NuttX for PinePhone… - We compiled LVGL Library from C to WebAssembly with Zig Compiler - We wrote our LVGL App in the Zig Programming Language (instead of C) - Exact same code runs in a Web Browser and on NuttX for PinePhone Which

[Article] NuttX on Star64 JH7110: Creating the First Release

2023-08-07 Thread Lee, Lup Yuen
Good News! NuttX now officially supports the Pine64 Star64 64-bit RISC-V SBC, based on the StarFive JH7110 SoC. (StarFive VisionFive 2 SBC will probably work too, anyone would like to test?) In this article we explain how we created the First Release of NuttX for Star64 JH7110… (1) Building

[Article] NuttX on Star64 JH7110: RISC-V Semihosting and Initial RAM Disk

2023-07-27 Thread Lee, Lup Yuen
NuttX crashes on Star64 JH7110 RISC-V SBC because there's no Semihosting. But no worries! We modified NuttX to boot with an Initial RAM Disk instead (initrd). In this article, we find out… (1) What’s RISC-V Semihosting (2) Why it crashes NuttX on Star64 (3) How it affects the Apps Filesystem in

[Article] NuttX on Star64 JH7110: RISC-V PLIC Interrupts and Serial I/O

2023-08-01 Thread Lee, Lup Yuen
NuttX on Star64 JH7110 RISC-V SBC is almost ready! But we're stuck with 16550 UART Controller firing too many Spurious Interrupts. In this article, we explain… (1) Why there’s No Console Output from NuttX Apps (2) How Serial I/O works in NuttX QEMU (3) How UART I/O differs for Star64 vs QEMU (4)

Re: [Article] NuttX on Star64 JH7110: RISC-V PLIC Interrupts and Serial I/O

2023-08-01 Thread Lee, Lup Yuen
-f208234edbfb636de240a0fef1c85f9cecb37876d5bc91ffb759f70a1e96b1d1 We're all ready to merge NuttX for JH7110! :-) Lup On Wed, Aug 2, 2023 at 7:19 AM Tomek CEDRO wrote: > On Wed, Aug 2, 2023 at 1:14 AM Lee, Lup Yuen wrote: > > NuttX on Star64 JH7110 RISC-V SBC is almost ready! But we're stuck with >

Re: Article: NuttX for PinePhone: The First Year

2023-06-20 Thread Lee, Lup Yuen
evolution of what people did with > OsmocomBB and Fernvale many year ago: > > https://osmocom.org/projects/baseband/wiki/Fernvale > > I think this time we are near to get a usable feature phone running NuttX. > > BR, > > Alan > > On 6/19/23, Lee, Lup Yuen wrote:

Article: 64-bit RISC-V with NuttX

2023-06-23 Thread Lee, Lup Yuen
In this article we explore NuttX on 64-bit RISC-V... (1) Boot NuttX on the QEMU Emulator for 64-bit RISC-V (2) Study the Boot Code that starts NuttX on RISC-V (3) And learn a little RISC-V Assembly! Check out the article here: https://lupyuen.codeberg.page/articles/riscv.html Lup

Re: Article: 64-bit RISC-V with NuttX

2023-06-23 Thread Lee, Lup Yuen
Thanks Tomek! Yep I'm starting to port NuttX to the StarFive JH7110 SoC (64-bit RISC-V) and Pine64 Star64 SBC. Should be really interesting :-) https://doc-en.rvspace.org/Doc_Center/jh7110.html https://wiki.pine64.org/wiki/STAR64 Lup On Sat, Jun 24, 2023 at 8:05 AM Tomek CEDRO wrote: > VERY

[Article] Inspecting the Star64 RISC-V SBC

2023-06-28 Thread Lee, Lup Yuen
Pine64 Star64 is a new 64-bit RISC-V Single-Board Computer, based on the StarFive JH7110 SoC. In this article we’ll… (1) Look inside the brand new Linux Images for Star64 (2) Decompile (with Ghidra) the RISC-V Linux Kernel (3) Figure out how NuttX might run on Star64 Check out the article here:

Article: NuttX for PinePhone: The First Year

2023-06-19 Thread Lee, Lup Yuen
One year ago we started porting NuttX to PinePhone. Let’s look back and talk about… 1. The Features that we’ve implemented 2. Our Plans for the future 3. Why we might move to a RISC-V Tablet! Check out the article here... https://lupyuen.codeberg.page/articles/pinephone2.html Lup

Re: [VOTE] Apache NuttX 12.2.0 RC0 release

2023-06-30 Thread Lee, Lup Yuen
+1 for PinePhone = Compiler + aarch64-none-elf-gcc -v Using built-in specs. COLLECT_GCC=aarch64-none-elf-gcc COLLECT_LTO_WRAPPER=/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin/../libexec/gcc/aarch64-none-elf/11.3.1/lto-wrapper Target: aarch64-none-elf Configured with:

Article: PinePhone Accelerometer with NuttX (InvenSense MPU-6050)

2023-05-17 Thread Lee, Lup Yuen
When we tilt our Smartphone from Portrait to Landscape... How does it know that we're tilting our phone? Watch what happens when we snoop the Accelerometer Data from PinePhone's MPU-6050 Accelerometer...

  1   2   >