Skip to content

1. Chip Identification Example Tutorial

This example demonstrates how to read and display the chip’s unique ID and firmware version information (bootloader, application and SPECT firmware versions). You will learn about the following functions:

  • lt_reboot(): L2 request to reboot to either Application or Maintenance Mode,
  • lt_get_info_riscv_fw_ver(), lt_get_info_spect_fw_ver(): L2 requests to read RISC-V CPU and SPECT firmware versions,
  • lt_get_info_chip_id(): L2 request to read chip identification (e.g., serial number).

Build and Run

Building and running the example

Go to the example's project directory:

cd examples/linux/usb_devkit/identify_chip/

Create a build/ directory and switch to it:

mkdir build/
cd build/

And finally, build and run the example:

cmake ..
make
./libtropic_identify_chip

TBA

TBA

After this, you should see an output in your terminal.

Configuration

In addition to the Libtropic CMake options used to configure Libtropic, this example provides the following CMake option:

  • LT_USB_DEVKIT_PATH (default: "/dev/ttyACM0") sets the path to the USB device representing the USB DevKit serial port:

    Configuring USB DevKit serial port
    cmake -DLT_USB_DEVKIT_PATH=<serial_port_path> ..
    make
    ./libtropic_identify_chip
    

    TBA

    TBA

Next example