Skip to content

Commit 247b2e2

Browse files
authored
Merge pull request #480 from tropicsquare/ETR01SDK-563-Docs-mention-that-lt_deinit-and-lt_init-has-to-be-called-after-FW-update
ETR01SDK-563: Mention that lt_deinit and lt_init has to be called after FW update
2 parents a87b14c + 888dd29 commit 247b2e2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/common/examples_descriptions/fw_update.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ This example explains the firmware update process for both ABAB and ACAB silicon
33
- How to read the current firmware versions.
44
- How to update the firmware using `lt_do_mutable_fw_update()`.
55

6+
!!! info "Updating FW with `lt_do_mutable_fw_update()` in Your Application"
7+
If you are using `lt_do_mutable_fw_update()` in your application to update TROPIC01's FW, make sure to reinitialize the handle (`lt_handle_t`) after the function returns successfully, i.e. call `lt_deinit()` and `lt_init()`.
8+
69
!!! info "TROPIC01 Firmware"
710
For more information about the firmware itself, refer to the [TROPIC01 Firmware](/reference/tropic01_fw.md) section.
811

include/libtropic.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ extern "C" {
2828

2929
/**
3030
* @brief Initialize handle and transport layer.
31-
* @note If the function fails, `lt_deinit` must not be called. In this case, the function handles the
32-
* cleanup itself.
31+
* @note If the function fails, `lt_deinit()` must not be called. In this case, the function handles
32+
* the cleanup itself.
3333
*
3434
* @param h Handle for communication with TROPIC01
3535
*
@@ -794,6 +794,8 @@ lt_ret_t lt_print_fw_header(lt_handle_t *h, const lt_bank_id_t bank_id,
794794

795795
/**
796796
* @brief Performs mutable firmware update on ABAB and ACAB silicon revisions.
797+
* @important After this function returns successfully, the handle (`lt_handle_t`) has to be
798+
* initialized again (i.e. calling `lt_deinit()` and `lt_init()`).
797799
*
798800
* @param h Handle for communication with TROPIC01
799801
* @param update_data Pointer to the data to be written

0 commit comments

Comments
 (0)