ESC Boston and BIOMED Boston is part of the Informa Markets Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

BIOMEDevice Boston 2019 Schedule Viewer

 

Welcome to the Biomed Boston & ESC Boston 2019 Presentation Store. Here you can view and download conference and/or show floor theater presentations before, during, and after the event. If you’re looking for a presentation from a specific session that you’re unable to find here, note that it’s likely because the presenter has not provided permission for external use or has not yet shared their presentation with us. Please check back after the event for a more complete catalogue of available presentations.

RTOS Task Switch Tracing: Live and in Real Time

Aaron Bauch (Field Application Engineer, IAR Systems)

Location: 107B

Date: Thursday, May 16

Time: 10:15am - 11:00am

Track: ESC Boston, Track B: Embedded Software Design & Verification

Vault Recording: TBD

The ARM CoreSight debug macrocell architecture provides a wealth of useful real-time trace data that can be used to visualize and capture events in real time when connected to a professional debug probe and software. This includes real-time delivery of critical variable values, Interrupt entry and exit times, instruction profiling information as well as software triggered events that are timestamped with clock-cycle precise time values.

In addition, most Real Time OS kernels use similar data structures such as Task Control Blocks (TCBs) and task scheduling kernel routines. These will be different at the detail level for different RTOSs but the mechanisms are generally similar.

This session will show you how these two concepts can be leveraged to easily trace task switch activity occurring in your RTOS-based system with cycle-accurate timing. This will enable you to observe interactions between tasks, interrupts, data value changes and even target power consumption all on a common Oscilloscope-like display. The presentation will show how this can be accomplished with three of the most popular RTOS implementations; FreeRTOS from AWS, ThreadX from Express Logic and uC/OS-III from Micrium. The mechanisms provided by each of these products to enable this kind of visibility will be discussed. The techniques employed can be used with other RTOS’s if the TCB structure and kernel task switch routines can be accessed.

Takeaway

Attendees will learn:

  • How the ARM CoreSight macrocells (in a Cortex M3/4/7) work to provide valuable data for visualizing program and RTOS activity in real time
  • How most common RTOS implementations use a similar structure and mechanism for task switching and task management
  • How to take advantage of these two ideas in three of the most popular RTOS’s used in embedded software to provide live real-time task switch visualization and capture
  • How to optionally trace additional RTOS information such as Queue or Semaphore activity