Lab 3: Move Application into an RTOS

Step 3: With MHC, verify I2C Driver, SDSPI Driver, and File System Service configurations

1

Configure I2C Driver.

  • Select I2C Driver.
  • Set Asynchronous Driver mode.
lab3_step3_01.png
Figure 1: Set Asynchronous mode for I2C Driver

2

Verify RTOS configuration of USB components.

  • Select USB Full Speed Driver.
  • Expand and observe the RTOS settings.
  • A separate Thread will be created for the USB Driver task.
  • A task delay allows the thread to be put into a blocked state for 10 ms, thereby allowing other threads in the system to run.
lab3_step3_02a.png
Figure 2: Verify USB Driver RTOS Settings
  • Select USB Device Layer.
  • Expand and observe the RTOS settings.
  • A separate Thread will be created for the USB Device Layer task.
  • A task delay allows the thread to be put into a blocked state for 10 ms, thereby allowing other threads in the system to run.
lab3_step3_02b.png
Figure 2: Verify USB Device Layer RTOS Settings
  • Select CONSOLE Instance 0.
  • Expand and observe the RTOS settings.
  • A separate Thread will be created for the USB Console task.
  • A task delay allows the thread to be put into a blocked state for 10 ms, thereby allowing other threads in the system to run.
lab3_step3_02c.png
Figure 3: Verify USB Console RTOS Settings

3

Verify RTOS configuration of SD Card Driver.

  • Select SD Card (SPI) Instance 0.
  • Expand and observe the RTOS settings.
  • A separate Thread will be created for the SDSPI Driver task.
  • A task delay allows the thread to be put into a blocked state for 10 ms, thereby allowing other threads in the system to run.
lab3_step3_03.png
Figure 4: Verify SD Card Driver RTOS Settings

4

Verify RTOS configuration of File System Service.

  • Select FILE SYSTEM.
  • Expand and observe the RTOS settings.
  • A separate Thread will be created for the File System task.
  • A task delay allows the thread to be put into a blocked state for 10 ms, thereby allowing other threads in the system to run.
lab3_step3_04.png
Figure 5: Verify File System System Service RTOS Settings



Next Step >

© 2022 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.