Skip to content

Baremetal hello world program for Netduino2's 4 UARTS

Notifications You must be signed in to change notification settings

skintigh/baremetal_netduino2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Baremetal hello world program for Netduino2's 4 UARTS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published