Repository navigation
SecTrustKey v1.1.1: startup passphrase fix
Fixes the startup passphrase. On v1.0.0 and v1.1.0, the device restarted as soon as you approved the passphrase warning, so no passphrase was saved. Everyone should update.
📖 Docs: https://koustavmondal.com/SecTrustKey/ · Firmware build #4
What's fixed
- Setting, changing and removing the startup passphrase work again
- Unlocking at power-up has enough memory for the key decryption
- Tested on a Cardputer ADV under M5 Launcher 3.0: set a passphrase, restart, unlock, Health shows the passphrase as On
Cause: the background task that shows the progress bar had an 8 KB stack, while these key-store steps keep whole 4 KB key pages on the stack (up to about 20 KB). It overflowed and the chip restarted. The task now has 32 KB. Your keys were not at risk: the key store only replaces a record after writing and checking the new one.
Everything from v1.1.0 is included: install and update from M5 Launcher, one image for M5Burner, esptool and the browser flasher, and keys that survive Launcher updates and app switches.
Update
| You use | Do this | Keys |
|---|---|---|
| M5 Launcher | Copy sectrustkey-v1.1.1-cardputer-adv.bin to the SD card, then SD → the file → Install. Start the new SecTrustKey entry. |
kept |
| M5Burner | Burn SecTrustKey v1.1.1 for the Cardputer ADV | replaced (burn erases the device; make an SD backup first) |
| esptool, already on SecTrustKey | esptool.py --chip esp32s3 --baud 921600 --after watchdog_reset write_flash 0x20000 sectrustkey-v1.1.1-app.bin |
kept |
| esptool, first install | esptool.py --chip esp32s3 --baud 921600 --after watchdog_reset write_flash --erase-all 0x0 sectrustkey-v1.1.1-cardputer-adv.bin |
new device |
Caution
In M5 Launcher, never delete a SecTrustKey entry unless you mean to erase your keys: Launcher removes the key storage together with the app. Installing the new version adds an entry that shares the same keys.
Files
| File | Use |
|---|---|
sectrustkey-v1.1.1-cardputer-adv.bin |
Everything: esptool, browser, M5Burner, M5 Launcher |
sectrustkey-v1.1.1-app.bin |
Firmware only, 0x20000: updates of esptool installs |
bootloader.bin, partition-table.bin, ota_data_initial.bin |
Separate parts (0x0, 0x8000, 0xF000) |
stk-time.py |
Sets the clock for on-screen TOTP codes |
SHA256SUMS.txt |
Checksums |
Checksums (SHA-256)
815238846eeaa02cd89d3a6fa833d79f88c1cb4ba19267e60c830e9339b03205 sectrustkey-v1.1.1-cardputer-adv.bin
d6856ca7d5adeb61b7f968b6c30706ef685aac26696e95203969a3f9790706b8 sectrustkey-v1.1.1-app.bin
df2770c75f4f7b3e2130dcc0bf068de5885ef1558aeae38dd1f6e0e925c8386a bootloader.bin
5b163efbc4be83f2fa03b1afe9fea69b6eda17da5ea27f917d3a1e7175f989cd partition-table.bin
7d2c7ac4888bfd75cd5f56e8d61f69595121183afc81556c876732fd3782c62f ota_data_initial.bin
a8f4b716baa7bf4c18f9af84b759b86fc8327fd8acd0e93bdfe565e0e07c48da stk-time.py
Built from commit ef261aa with ESP-IDF v5.5.3. Licensed under the GNU AGPL v3.0.