Trying out the code
Now that you’ve learned how to set up a few tasks, let’s go through how to get it running on our hardware. You can greatly enhance your intuition of how an RTOS behaves by running the examples, experimenting with breakpoints to observe execution, and sifting through traces in SystemView.
Building and running the code
First, we’ll need to build the code. The IDE-project Chapter_07 contains two different programs, and each has its own build configuration. The program we’ve been presenting is in Src\main_taskCreation.c. The other program is in Src\main_FailedStartup.c, and we’ll look at it later in the chapter.
To build main_taskCreation.c, we need to make its build-configuration Active:
- In the IDE, open the workspace for the book’s example-programs, and in Project Explorer, right-click on the
Chapter_07project. - Next, click on Build Configurations : Set Active : TaskCreationBuild…, as shown...