[Article] QuickJS JavaScript Engine on a Real-Time Operating System (Ox64 + NuttX)
#1
QuickJS is a small JavaScript Engine that supports POSIX Functions. Can we run QuickJS on Apache NuttX RTOS? And Blink the LED in 4 lines of JavaScript?

  const ULEDIOC_SETALL = 0x1d03;
  const fd = os.open("/dev/userleds", os.O_WRONLY);
  os.ioctl(fd, ULEDIOC_SETALL, 1);
  os.ioctl(fd, ULEDIOC_SETALL, 0);

In this article we…
(1) Run QuickJS on NuttX with Ox64 BL808 RISC-V SBC
(2) Blink the LED by adding the ioctl() function
(3) Reconfigure the NuttX App Stack (because it’s too tiny)
(4) Analyse the Memory Footprint of QuickJS (Code + Data + Heap Size)
(5) Test QuickJS in the Web Browser with NuttX Emulator (and a Simulated LED)

QuickJS is perfect for Iterative, Interactive Experiments on NuttX! Check out the article:
https://lupyuen.codeberg.page/articles/quickjs.html

Lup


   
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Article] RISC-V Emulator for Pine64 Oz64 SBC lupyuen 2 1,115 07-07-2024, 04:19 AM
Last Post: lupyuen
  [Article] Rust Apps on Ox64 BL808 RISC-V SBC and Apache NuttX RTOS lupyuen 2 1,266 07-06-2024, 06:51 PM
Last Post: lupyuen
  [Video] TinyEMU RISC-V Emulator for Ox64 BL808 SBC lupyuen 0 734 06-13-2024, 08:56 PM
Last Post: lupyuen
  [Video] Adventures of Ox64 BL808 RISC-V SBC with Apache NuttX RTOS lupyuen 0 685 06-13-2024, 04:13 AM
Last Post: lupyuen
  [Ox64 BL808 SBC] Apache NuttX International Workshop: Jun 13 and 14 (Tokyo Time) lupyuen 0 673 06-11-2024, 12:52 AM
Last Post: lupyuen
  [Article] Coding Ox64 BL808 SBC the Drag-n-Drop Way lupyuen 3 1,671 04-02-2024, 07:38 AM
Last Post: Noahstorey
  [Article] Emulate Ox64 BL808 in the Web Browser: Experiments with TinyEMU lupyuen 3 1,656 02-17-2024, 06:53 PM
Last Post: tllim
  [Article] Automated Testing with Ox64 BL808 Emulator (Apache NuttX RTOS) lupyuen 0 835 02-16-2024, 06:54 PM
Last Post: lupyuen
  Has anyone successfully flashed an Ox64 (128Mb) from linux? slondr 3 3,088 02-12-2024, 12:50 AM
Last Post: Pavlos1
  [Article] Nim on a Real-Time Operating System: Apache NuttX RTOS + Ox64 BL808 SBC lupyuen 2 1,352 01-05-2024, 12:27 AM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)