Setup
You can run the advanced TGPIO sample with command-line options. This guide provides examples of commands and outputs. Before attempting to run the sample, make sure you have completed the following setup.
Prerequisites
- This guide is based on a host-target setup. Confirm that you have a host system and a target system that are configured according to the Get Started Guide for UEFI BIOS or Get Started Guide for Slim Bootloader.
- A logic analyzer is used to capture data for analysis. The data in the following examples was captured with a Saleae* Logic Pro 16 logic analyzer. Logic analyzer specifications:
- Sample rate: 500 MegaSamples/second (MS/s)
- Maximum signal frequency: 100 MHz
The specifications of the logic analyzer may affect the results.
Confirm Real-Time Kernel
Confirm that the target system is running the real-time kernel.
- From your host system, connect to the target system:ssh <user>@<target>
- In the SSH session, run the following command to runtcc_rt_checker:tcc_rt_checker
- In the output, find theRT Kernel Checkerrow and confirm that it containsRT_READY.+-----+-------------------+--------------------------+----------------------+----------+ | 4 | RT Kernel Checker | Checks that RT kernel is | Current kernel is RT | RT_READY | | | | used | | | +-----+-------------------+--------------------------+----------------------+----------+
- If theRT Kernel Checkerrow does not reportRT_READY, reboot the target system and make sure to select the RT kernel.
Build the Sample
The Intel® TCC Tools package for the target system contains a prebuilt binary of this sample. The binary is configured to run from any directory on the target system.
If you want to build the sample, use the provided makefile.
Run the Sample
After completing the setup, try these examples: