ezFlashCLI
v1.0.28
命令行工具管理連接到對話框SmartBond™設備系列的閃存設備。
該工具依靠Segger J-Link™庫來控制SmartBond SWD接口。 J-Link探測器可在所有SmartBond開發套件上使用。
已知的閃光設備:
DA1459X:
DA1468X:
DA1469X:
DA1470X:
已知的閃光設備:
> pip install ezFlashCLI
Windows :通常會在Python安裝過程中發生,即在環境路徑中未添加腳本文件夾。如果在您的終端中找不到EZFLASHCLI,請在您的路徑中添加<python安裝dir>/腳本。
> ezFlashCLI list
INFO:root:ezFlashCLI v1.0.x
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:JLink devices:
INFO:root: - 483345692
INFO:root: - 480698727
> ezFlashCLI probe
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:Smartbond chip: DA14585/DA14586
INFO:root:Flash information:
INFO:root: - Device Id: MX25R2035F
> ezFlashCLI list
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:JLink devices:
INFO:root: - 483245871
INFO:root: - 483124587
> ezFlashCLI -j 483245871 probe
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:Smartbond chip: DA1469x
INFO:root:Flash information:
INFO:root: - Device Id: MX25U3235F
> ezFlashCLI -j 483245871 probe
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:Smartbond chip: DA14682/DA14683
INFO:root:Flash information:
INFO:root: - Device Id: W25Q80EW
> ezFlashCLI erase_flash
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:Flash erase success
> ezFlashCLI read_flash 0x0 128
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:00000000: 50 70 00 20 00 00 00 20 00 00 eb 00 a5 a8 66 00
INFO:root:00000010: 00 00 aa 11 03 00 01 40 07 c8 4e ff ff ff ff ff
> ezFlashCLI image_flash <path to bin file>
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:[DA1469x] Program image
INFO:root:[DA1469x] Program success
該工具將在需要時自動使輸入文件可啟動
要使用Suota,需要使用輔助引導加載程序。此命令將預編譯版本添加到圖像中,並將其全部寫入Flash。
> ezFlashCLI image_bootloader_flash <path to bin file>
INFO:root:ezFlashCLI v1.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:[DA14531] Program image
INFO:root:[DA14531] Program success