Befehlszeilen -Tools zum Verwalten von Flash -Geräten, die mit der Dialog -Smartbond ™ -Gerätefamilie verbunden sind.
Das Tool basiert auf der Segger J-Link ™ -Bibliothek, um die SmartBond SWD-Schnittstelle zu steuern. Die J-Link-Sonde ist in allen Smartbond-Entwicklungskits verfügbar.
Bekannte Flash -Geräte:
DA1459X:
DA1468X:
DA1469X:
DA1470X:
Bekannte Flash -Geräte:
> pip install ezFlashCLI
Windows : Es geschieht häufig während der Python -Installation, dass der Skriptordner im Umgebungsweg nicht hinzugefügt wird. Wenn eZflashcli nicht in Ihrem Terminal zu finden ist, fügen Sie <python install DIR>/Skripte zu Ihrem Pfad hinzu.
> 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
Das Tool macht die Eingabedatei bei Bedarf automatisch bootfähig
Um Suota zu verwenden, ist ein sekundärer Bootloader erforderlich. Dieser Befehl fügt dem Bild eine vorkompilierte Version hinzu und schreibt alles in 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