Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created January 20, 2025 05:22
Show Gist options
  • Save lupyuen/0377d9e015fee1d6a833c22e1b118961 to your computer and use it in GitHub Desktop.
Save lupyuen/0377d9e015fee1d6a833c22e1b118961 to your computer and use it in GitHub Desktop.
hello_rust_cargo &
luppy@thinkstation:~/rust/nuttx$ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -bios none -kernel nuttx -nographic
ABCboard_userled: LED 1 set to 0
board_userled: LED 2 set to 0
board_userled: LED 3 set to 0
NuttShell (NSH) NuttX-12.8.0
nsh> hello_rust_cargo &
hello_rust_cargo [4:100]
nsh> {"name":"John","age":30}
{"name":"Jane","age":25}
Deserialized: Alice is 28 years old
Pretty JSON:
{
"name": "Alice",
"age": 28
}
Hello world from tokio!
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0001904 0000712 37.3% Idle_Task
2 2 100 RR Task - Running 0000000000000000 0002888 0002472 85.5%! nsh_main
4 4 100 RR Task - Ready 0000000000000000 0007992 0006904 86.3%! hello_rust_cargo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment