Viewing tasks

A quick view overview of tasks can be seen by enabling the FreeRTOS task view. Using these tasks can prove to be very beneficial while developing RTOS applications: 

  1. After the MCU program has been started, pause execution by clicking the Pause button.
  2. Now, navigate to View | FreeRTOS Task View:

This view shows many useful pieces of information at a glance:

  • Task names and priorities.
  • Timeout: How many ticks a blocked task has until it is forced out of the blocked state.
  • Each task's stack usage (only the current stack usage is shown by default). Maximum stack usage is disabled in the preceding screenshot (seen by N/A)(details on configuring FreeRTOS to monitor maximum stack usage will be covered in Chapter 17Troubleshooting Tips and Next Steps).
  • Mutex Count: How many mutexes a task currently holds.
  • Notifications: Details on each task's notifications.

Having a bird's eye view of all of the tasks in the system can be a huge help when developing an RTOS-based applicationespecially during the initial phases of development.

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

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