Skip to content

Commit

Permalink
docs tc_flash_hash img for m5stickv
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeubas committed Dec 25, 2024
1 parent 4d9b6fb commit 6e35be8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/getting-started/features/tamper-detection.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ The *TC Flash Hash* tool enables you to verify if the device's internal flash me
- **User's Region:** The area used to stored encrypted mnemonics, settings and TC Code. It generates the last set of two words.

<div style="text-align: center;">
<img src="../../../img/maixpy_amigo/tc-flash-hash-150.png" alt="TC Flash Hash">
<img src="../../../img/maixpy_amigo/tc-flash-hash-150.png" alt="TC Flash Hash amigo">
<img src="../../../img/maixpy_m5stickv/tc-flash-hash-125.png" alt="TC Flash Hash m5stickv">
</div>

*Example: The red symbol and words 'debate lunar' represent the firmware region, while 'renew great' user's region.*
Expand Down
3 changes: 3 additions & 0 deletions docs/getting-started/features/tools.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ This is an interesting tool to visualize the effects of filling the memory with
<div style="clear: both"></div>

#### TC Flash Hash
<img src="../../../img/maixpy_m5stickv/tc-flash-hash-125.png" align="right">
<img src="../../../img/maixpy_amigo/tc-flash-hash-150.png" align="right">

*Tamper Check Flash Hash* is a tamper detection mechanism that enables you to verify if the flash memory content has been altered. To use it first, need to create a `TC Code` on `Settings -> Security -> Tamper Check Code`.
*TC Flash Hash* will hash this code, K210 chip's unique ID and the content of the whole flash memory together and produce an image.
The tool generates a unique image and four tamper detection words based on a hash of your *TC Code*, the device's UID, and the flash content. The flash memory is divided into two regions:
Expand Down
Binary file added docs/img/maixpy_m5stickv/tc-flash-hash-125.en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions simulator/sequences/tc-flash-hash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ wait 2

# cancel fill flash
press BUTTON_B
press BUTTON_A
press_amigo_only BUTTON_A

screenshot tc-flash-hash-boot-enable.png

# cancel enable boot
press BUTTON_B
press BUTTON_A
press_amigo_only BUTTON_A

# wait processing...
wait 1
Expand Down

0 comments on commit 6e35be8

Please sign in to comment.