Created
January 20, 2025 05:22
-
-
Save lupyuen/0377d9e015fee1d6a833c22e1b118961 to your computer and use it in GitHub Desktop.
hello_rust_cargo &
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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