Here are some sample applications that use the Neotron API.
Build the application as follows:
$ cargo build --release --target=thumbv6m-none-eabi
$ cp ./target/thumbv6m-none-eabi/release/hello /my/sdcard/hello.elf
Then copy the resulting hello.elf
file to an SD card and insert it into your Neotron system. You can load the application with something like:
> load hello.elf
> run
This is a basic "Hello World" application. It prints the string "Hello, world" to standard output and then exits with an exit code of 0.
This reports any bytes received on Standard Input. Press Ctrl-X to quit.
This application panics, printing a nice panic message.
This application generates a Hard Fault.
A basic "Hello, world" but written in ARM assembly. It prints the string "Hello, world" to standard output and then exits with an exit code of 0.
A basic "Hello, world" but written in C. It prints the string "Hello, world" to standard output and then exits with an exit code of 0.