It is not focused on final application's usage, even though there is a few hints in session3() function. Instead of that, this code mainly walks you through a different stages during a chip's lifecycle:
- Initial power up during PCB manufacturing
- Attestation key uploading
- Final product usage
Example shows how content of config objects might be used to set different access rights and how chip behaves during the device's lifecycle.
- Note
- We recommend reading TROPIC01's datasheet before diving into this example!
- Warning
- We strongly recommend running this example against the TROPIC01 model only, as it does irreversible operations!
- Parameters
-
| h | Handle for communication with TROPIC01. It is assumed that the h.l2.device and h.l3.crypto_ctx members were already initialized. Because these members are pointers, the assigned structures must exist throughout the whole life-cycle of the handle. Refer to the 'Get Started'->'Integrating Libtropic'->'How to Use' Section in the Libtropic documentation for more information. |
- Return values
-
| 0 | Function executed successfully |
| -1 | Function did not execute successfully |