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