Hello, World!
The quickest "hello world" is to run Xous under emulation on your PC using hosted mode.
- Get the latest rust or run
rustup updateif you already have Rust installed. - Clone xous-core.
- Inside the
xous-coredirectory, runcargo xtask run.
Notes:
- If you have updated
rustor have tinkered withstdon your system, you can re-install thexoustarget withcargo xtask install-toolkit --force, and then runrm -r targetto force remove stale build files. - You may also need to install some additional libraries, such as
libxkbdcommon-dev. - :warning: hosted mode is literally Xous running on your local host, which means it supports more features than Xous on native hardware:
- We do not have
tokiosupport planned anytime soon. - We do not have
Filesupport in Xous; instead, we have thepddb. Netsupport in actively in development and we hope to have fairly robust support forlibstdNetbut, note thatsocket2crate (which is not part of Rustlibstd) does not recognize Xous as a supported host.
- We do not have
Running on Hardware
Baochip Users
See Getting Started with Baochip Targets.
Note that there is a vscode extension for the Baochip family of targets. Look for baochip in the extension store.
Precursor Users
- Please refer to the manifest.json documentation for integration notes
replapp demo is the starting point for users who want to interact with their device by typing commands. This demo leverages more of the Xous UX built-in frameworks.ballapp demo is the starting point for users who prefer to run close to the bare iron, getting only key events and a framebuffer for crafting games and bespoke apps.