How to do it...

We are going to download and build a FreeRTOS simulator in our build environment:

  1. Switch to your Ubuntu Terminal and change the current directory to /mnt:
$ cd /mnt
  1. Download the source code of the FreeRTOS simulator:
$ wget -O simulator.zip http://interactive.freertos.org/attachments/token/r6d5gt3998niuc4/?name=Posix_GCC_Simulator_6.0.4.zip
  1. Extract the downloaded archive:
$ unzip simulator.zip
  1. Change the current directory to Posix_GCC_Simulator/FreeRTOS_Posix/Debug:
$ cd Posix_GCC_Simulator/FreeRTOS_Posix/Debug
  1. Fix the minor mistake in makefile by running the following command:
$ sed -i -e 's/(.*gcc.*)-lrt(.*)/12 -lrt/' makefile
  1. Build the simulator from the source code:
$ make
  1. Start it:
$ ./FreeRTOS_Posix

At this point, the simulator is running.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.213.128