Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 870 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 870 Bytes

Baremetal attempt to output text to 4 of the UARTS on a Netduino2

You can run the code with:

$QEMU/arm-softmmu/qemu-system-arm -M netduino2 -nographic -kernel output.bin -serial unix:///tmp/uart1,server -serial unix:///tmp/uart2,server -serial unix:///tmp/uart3,server -serial unix:///tmp/uart4,server -serial unix:///tmp/uart5,server -serial unix:///tmp/uart6,server

and then in 6 other terminals:

socat - UNIX-CONNECT:/tmp/uart1

socat - UNIX-CONNECT:/tmp/uart2

socat - UNIX-CONNECT:/tmp/uart3

socat - UNIX-CONNECT:/tmp/uart4

socat - UNIX-CONNECT:/tmp/uart5

socat - UNIX-CONNECT:/tmp/uart6

Or if you want to rebuild everything and then run qemu, run:

./build.sh

To build it you will need to install:

sudo apt-get build-dep gcc-arm-none-eabi

sudo apt-get install gcc-arm-none-eabi

If you want to debug the baremetal binary you'll need gdb-arm-none-eabi