unleashed-firmware/scripts
SG 9d38f28de7
[FL-1682] Faster file receiving function. Storage management scripts. (#647)
* Storage-cli: the file write function is splitted into a function for working with text and function for raw data
* Storage-cli: read_chunks, renamed write_raw to write_chunk
* Storage-cli: fix typo
* SD Hal: fixed wrong read/write block address
* HAL-console: printf
* Storage benchmark: more popular sizes
* Toolbox: md5
* Storage-cli: better read_chunks function, md5 hash function
* Notification: fixed incorrect error message when loading settings
* Storage-cli: stat command
* Storage-cli: stat, "/" is also storage
* Scripts: add storage managment script
* Scripts, storage lib: send command with known response syntax instead of SOH
* Scripts: python3 from env
* Storage-cli: fixed mess with error texts
* Storage-cli: write, show welcome message only if we didn't have any errors
* Storage: poorly fixed folders copying
* Storage: close an old file if an error occurred while opening a new file
* Storage-cli: fixed storage info spacing
* Scripts: use positional arguments in storage.
* Scripts: explicit string encoding and decoding, documentation in comments.

Co-authored-by: あく <alleteam@gmail.com>
2021-08-19 01:06:18 +03:00
..
flipper [FL-1682] Faster file receiving function. Storage management scripts. (#647) 2021-08-19 01:06:18 +03:00
assets.py GUI: Icons and IconsAnimation refactoring. Switch assets to new Icon Api (#566) 2021-07-07 11:57:49 +03:00
flash_core1_main_swd.sh [FL-1443, FL-1289] Move assets compilation to separate Makefile. Add scripts folder. Add OTP flashing with DFU. (#531) 2021-06-23 17:58:44 +03:00
flash_core2_ble_swd.sh [FL-1473, FL-1651] Update STM32CubeWB to latest version. Radio firmware bundle. (#642) 2021-08-17 12:41:08 +03:00
flash_otp_version_dfu.sh [FL-1443, FL-1289] Move assets compilation to separate Makefile. Add scripts folder. Add OTP flashing with DFU. (#531) 2021-06-23 17:58:44 +03:00
flash_otp_version_swd.sh [FL-1443, FL-1289] Move assets compilation to separate Makefile. Add scripts folder. Add OTP flashing with DFU. (#531) 2021-06-23 17:58:44 +03:00
flash_wipe_swd.sh [FL-1443, FL-1289] Move assets compilation to separate Makefile. Add scripts folder. Add OTP flashing with DFU. (#531) 2021-06-23 17:58:44 +03:00
ob.data [FL-1473, FL-1651] Update STM32CubeWB to latest version. Radio firmware bundle. (#642) 2021-08-17 12:41:08 +03:00
ob.py [FL-1430] New OTP format #595 2021-07-22 05:49:23 +03:00
otp.py [FL-1620] Cli command list crash fix. Correct name validation in scripts. (#613) 2021-07-29 18:27:06 +03:00
ReadMe.md Fix readme consistency issues (#652) 2021-08-17 13:38:47 +03:00
storage.py [FL-1682] Faster file receiving function. Storage management scripts. (#647) 2021-08-19 01:06:18 +03:00

About

This folder contains differnt scripts that automates routine actions. Flashing scripts are based on cli version of STM32CubeProgrammer. You will need to add STM32_Programmer_CLI to your path to use them.

Flashing empty MCU/Flipper

Always flash your device in the folllowing sequence:

  • OTP (Only on empty MCU)
  • Core2 firmware
  • Core1 firmware
  • Option Bytes

Otp flashing

!!! Flashing incorrect OTP may permanently brick your device !!!

Normally OTP data generated and flashed at factory. In case if MCU was replaced you'll need correct OTP data to be able to use companion applications. Use otp.py to generate OTP data and flash_otp_version_* to flash OTP zone. You will need exact main board revision to genrate OTP data. It can be found on main PCB.

!!! Flashing incorrect OTP may permanently brick your device !!!

Core2 flashing

Script blindly updates FUS and Radiostack. This operation is going to corrupt bootloader and firmware. Reflash Core1 after Core2.

Core1 flashing

Script compiles and flashes both bootloader and firmware.

Option Bytes

!!! Setting incorrect Otion Bytes may brick your MCU !!!

Defaults are mostly OK, but there are couple things that we'd like to tune. Also OB may be damaged, so we've made couple scripts to check and set option bytes.

!!! Setting incorrect Otion Bytes may brick your MCU !!!

Checking option bytes:

ob.py check

Setting option bytes:

ob.py set