Lab 3: Move Application into an RTOS
Step 4: With MHC, Configure Harmony Core
3
Modify RTOS configuration of app_sdcard task.
- Expand RTOS Configuration in Application 1 Configuration.
- Tick the box Use Task Delay and set 50 ms of delay (default value).
- The app_sdcard thread is blocked until the queue is filled by the app_sensor task.
- Once unblocked, the app_sdcard will log the temperature value with a timestamp into the SD card memory.
- Then, the task will wait for the queue to be filled with the next data.
Figure 3: Configure Task Delay to app_sdcard RTOS Settings
4
Verify RTOS configuration of app_usb task.
- Expand RTOS Configuration in Application 2 Configuration.
- The app_usb thread is blocked until the queue is filled by the other task's thread (when another task requests to print some data over USB CDC Console).
- Once unblocked, it will print the content of the queue on the serial port.
- Then, the task will wait for the queue to be filled with the next data to print.
Figure 4: Verify app_usb RTOS Settings