flipperzero-firmware-wPlugins/scripts
2024-10-20 13:03:33 -04:00
..
debug Latest RM0904-1702-0.104.1-70f31f1 on PATREON - OFW 3842 + 3878 2024-09-05 18:29:23 -04:00
fbt Latest RM1008-1617-0.420.0-aae9345 on PATREON - FMT PY (MEH) 2024-10-09 00:59:02 -04:00
fbt_tools Latest RM1019-1726-0.420.0-9eb3d99 on PATREON & GitHub - UPD NFC + IR 2024-10-20 13:03:33 -04:00
flipper Latest RM1002-1300-0.104.1-3d5b78e on PATREON - OFW 3922 2024-10-02 19:26:11 -04:00
toolchain Latest RM0728-2235-0.104.1-85c3904 on PATREON & GitHub - OFW 3793 2024-07-30 00:06:59 -04:00
ufbt Latest RM0728-2235-0.104.1-85c3904 on PATREON & GitHub - OFW 3793 2024-07-30 00:06:59 -04:00
User Latest RM0704-0134-0.103.2-8aa6dde on PATREON - OFW x1 2024-07-05 22:23:53 -04:00
assets.py Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into 420 2024-05-20 14:50:23 -04:00
bin2dfu.py
fastfap.py
fix_ir_universals.py Latest RM1019-1726-0.420.0-9eb3d99 on PATREON & GitHub - UPD NFC + IR 2024-10-20 13:03:33 -04:00
fix_mfc_dict.py Latest RM1019-1726-0.420.0-9eb3d99 on PATREON & GitHub - UPD NFC + IR 2024-10-20 13:03:33 -04:00
flash.py
fwflash.py
fwsize.py
get_env.py
guruguru.py
imglint.py Latest RM0814-1350-0.104.1-c2bbb14 on PATREON - FMT 2024-08-18 00:24:15 -04:00
infrared.py Latest RM1002-1300-0.104.1-3d5b78e on PATREON - OFW 3922 2024-10-02 19:26:11 -04:00
lint.py Latest RM0630-2130-0.102.4-54e7e3e on PATREON & GitHub - ADD TASKS 2024-07-01 12:44:09 -04:00
map_analyse_upload.py Merge remote-tracking branch 'OFW/dev' into dev 2024-05-15 18:22:54 +03:00
merge_report_qa.py
ob.data
ob.py
ob_custradio.data
otp.py
power.py
ReadMe.md
runfap.py scripts: runfap: fixed starting apps with spaces in path (#3782) 2024-07-15 13:32:45 +09:00
sconsdist.py Latest RM1002-1300-0.104.1-3d5b78e on PATREON - OFW 3922 2024-10-02 19:26:11 -04:00
selfupdate.py FBT: Close current app when flashing firmware 2024-07-14 11:39:41 -04:00
send_firebase_notification.py
serial_cli.py
slideshow.py
storage.py
testops.py Updating bench flipper search algorithm (#3742) 2024-07-06 11:49:56 +01:00
update.py Latest RM1002-1300-0.104.1-3d5b78e on PATREON - OFW 3922 2024-10-02 19:26:11 -04:00
version.py Latest RM1002-2255-0.104.1-5a0bb30 on PATREON & GitHub - 420 VERSION UNTIL BYE LFS 2024-10-02 23:27:33 -04:00
wifi_board.py

About

This folder contains supplementary 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 following sequence:

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

Otp flashing

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

Normally OTP data generated and flashed at the 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 and flash OTP data. You will need exact main board revision to generate OTP data. It can be found on main PCB. Also display type, region and etc...

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

Core1 and Core2 firmware flashing

Core2 goes first, then Core1. Never flash FUS or you will lose your job, girlfriend and keys in secure enclave.

Option Bytes

!!! Setting incorrect Option 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 Option Bytes may brick your MCU !!!

Checking option bytes:

ob.py check

Setting option bytes:

ob.py set

Assets delivery

Build the firmware and run in the root folder of the repo:

python scripts/storage.py -p <flipper_cli_port> send build/latest/resources /ext

Slideshow creation

Put fullscreen slideshow frames in .png format into assets/slideshow/my_show folder, named frame_xx.png, where xx is zero-padded frame number, starting with #0.

Then run

python scripts/slideshow.py -i assets/slideshow/my_show/ -o assets/slideshow/my_show/.slideshow

Upload generated .slideshow file to Flipper's internal storage and restart it.