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/spi/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.

Next example