Lab 3: Move Application into an RTOS

 Objective

In Lab 3, you will enhance the existing application to run in an RTOS environment.

Overview

The whole application is divided into three tasks.

  • Sensor task
  • SD card task
  • USB task

The tasks will run as separate RTOS threads.

The Sensor task will use:

  • A button to switch the application on or off
  • Timer System Service using Core Timer to periodically trigger the sampling of temperature sensor data
  • Asynchronous I2C Driver using I2C1 Peripheral Library to read the temperature sensor

The SD card task will use:

  • Asynchronous SDSPI Driver using SPI2 Peripheral Library to write temperature log onto SD card
  • File System Service interfaced with SDSPI Driver to perform operations on the SD card
  • RTC Peripheral Library to capture the current log time

The USB task will use:

  • Debug System service and Console System service using CDC Peripheral Library to print data on a serial port terminal

Procedure

Lab 3 Index

Part 1 - Configure FreeRTOS, I2C Driver, SDSPI Driver, File System, and Harmony Core

Part 2 - Add Application Code and Build the Application

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.