Skip to main content

Command line tool to manipulate microcontroller flash

Project description

ezFlashCLI

Build Status Documentation Status

Command line tools to manage flash devices connected to the Dialog Smartbond™ device family.

The tool relies on Segger J-Link™ library to control the Smartbond SWD interface. The J-Link probe is available on all Smartbond development kits.

Supported platforms

  • macOS
  • Windows 10
  • Linux (tested on ubuntu 20.04LTS 64 bits)

Supported devices

DA145XX

  • DA14531
  • DA14585

Know flash devices:

  • MX25R2035F

DA1468X and DA1469X

  • DA1468x:

    • DA14680
    • DA14681
    • DA14682
    • DA14683
  • DA1469x:

    • DA14691
    • DA14695
    • DA14697
    • DA14699

Know flash devices:

  • P25Q80H
  • P25Q32LE
  • EN25S16B
  • EN25S20A
  • W25Q128JW
  • MX25U3235F
  • W25Q80EW
  • W25Q32JW
  • IS25WP032
  • GD25LE32
  • GD25LE16
  • AT25FF081A
  • AT25SL321

Installation

> pip install ezFlashCLI

Windows: If often happens during python installation that the Script folder is not added in the environment PATH. If ezFLashCLI is not found in your terminal, add <Python install dir>/Scripts to your path.

Usage

List JLink probes

> ezFlashCLI list

INFO:root:ezFlashCLI v0.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

Probe attached flash

> ezFlashCLI probe

INFO:root:ezFlashCLI v0.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

Multiple devices

> ezFlashCLI list

INFO:root:ezFlashCLI v0.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 v0.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 v0.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

erase Flash

> ezFlashCLI erase_flash

INFO:root:ezFlashCLI v0.0.X
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:Flash erase success

Read Flash

> ezFlashCLI read_flash 0x0 128

INFO:root:ezFlashCLI v0.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

Program Flash

> ezFlashCLI image_flash <path to bin file>

INFO:root:ezFlashCLI v0.0.7
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:[DA1469x] Program image
INFO:root:[DA1469x] Program success

The tool will automatically make the input file bootable if needed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezFlashCLI-0.0.21.tar.gz (62.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ezFlashCLI-0.0.21-py3-none-any.whl (62.7 MB view details)

Uploaded Python 3

File details

Details for the file ezFlashCLI-0.0.21.tar.gz.

File metadata

  • Download URL: ezFlashCLI-0.0.21.tar.gz
  • Upload date:
  • Size: 62.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for ezFlashCLI-0.0.21.tar.gz
Algorithm Hash digest
SHA256 be16d052d6e5767a68aefdd1fd56764c4413ab5b8617963969f74c21a8804db3
MD5 53dfb825d0e9b51a053c87fb97b0b2ad
BLAKE2b-256 34bac4d57206f1aed16b8b9910f9ca06bff69daa24f780afc3b4b743a4fca92f

See more details on using hashes here.

File details

Details for the file ezFlashCLI-0.0.21-py3-none-any.whl.

File metadata

  • Download URL: ezFlashCLI-0.0.21-py3-none-any.whl
  • Upload date:
  • Size: 62.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for ezFlashCLI-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 3280c78e1102f626f65e0629f27ac2669fe2375aab1c6583f65999ba570ecbe6
MD5 6f8b46863dba4c3d91c9e73f7e0ff895
BLAKE2b-256 7b8d623534f3ca1a39e8171cd70c9721dbeca4641b836608ffdab1068270e9f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page