FreeRTOS on QEMU

This post shows how to set-up of FreeRTOS for an ARM architecture run under QEMU hosted on Ubuntu 19.10 x86_64 machine. It is a modification of the instructions found in FreeRTOS on Cortex M3 with QEMU

I highly recommend that you review that page.

Install the tools (they’re a little different from the link above):

sudo apt-get install gcc-arm-none-eabi \
    binutils-arm-none-eabi gdb-multiarch openocd

sudo apt install qemu-system-arm

I had no problems relating to libcurl.

Download the latest version of FreeRTOS, and unzip it.

Build the demo:

cd FreeRTOSv10.0.1/FreeRTOS/Demo/CORTEX_LM3S811_GCC
make

If you obtained a compilation error indicated in the first link, as I did, then edit the file standalone.ld as instructed.

Launch QEMU:

qemu-system-arm -machine lm3s811evb -kernel gcc/RTOSDemo.bin -s -S

Connect to the machine (also a little different from the link’s instructions):

gdb-multiarch -ex="target remote localhost:1234"

That should work.

About mcturra2000

Computer programmer living in Scotland.
This entry was posted in Uncategorized. Bookmark the permalink.

1 Response to FreeRTOS on QEMU

  1. Pingback: Compiling and running ARM programs on x86_64 | Mark Carter's blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s