Appendix B: Platform Examples#
Overview#
Simplicity Studio 5 includes the SE Manager platform examples for Secure Tamper. Refer to the corresponding readme file for details about the SE Manager example. This file also includes the procedures to create the project and run the example.
Category | SE Manager Platform Example | Description |
---|---|---|
Tamper provisioning and runtime operations | SoC SE Manager Tamper |
Sample application to:
|
Adapting PRS Tamper for Custom Hardware#
The platform examples are designed to work with Silicon Labs development kits. To adapt the code to work with custom hardware a few steps are required as follows. In the sample application these steps are found in init_tamper_prs
of the app_se_manager_tamper.c
source file:
Set up the GPIO pin as an input. The sample application demonstrates calls to set up the GPIO. It is recommended to install the ‘simple button’ software component to ensure that the necessary drivers are installed.
Set up an unused PRS channel as a producer. The sample application uses PRS channels 6, 7 and 8. Refer to the reference manual for your device to determine the source and signal for GPIO. The sample application demonstrates API calls for Series 2 and Series 3 devices.
Connect the PRS channel chosen in the previous step to the desired tamper signal. Tamper signals are named
CONSUMER_SETAMPER_TAMPERSR\<bit\>
, where bit is the bit position of the PRS tamper signal. Refer to Tamper Sources for the bit positions of PRS tamper signals in the EFR32xG21B and Appendix C: Tamper Sources Reference for the bit positions of PRS tamper signals in other devices. The sample application demonstrates calls to perform this task.