Coder Social home page Coder Social logo

ezflash / ezflashcli Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 8.0 79.56 MB

Command line utility to program Dialog Semiconductor Smartbond device family companion flash. Alternate tool to Smarbond devices built in the SDK.

License: MIT License

Python 99.76% Shell 0.24%
smartbond flash programming dialog da1469x da14680 da14683 da14585 da14531 da14531mod

ezflashcli's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ezflashcli's Issues

arm processor: shared library problem

Hello ,
I encountered this problem while trying to run ezFlashCLI list cmd:

INFO:root:By using the program you accept the SEGGER J-link™ license
ERROR:root:Error loading J-Link Library: /home/rock/.local/lib/python3.8/site-packages/ezFlashCLI/ezFlash/../third-party/segger/libjlinkarm.so.6.82.2: cannot open shared object file: No such file or directory
Exception ignored in: <function pyjlink.del at 0x7f9c9af040>
Traceback (most recent call last):
File "/home/rock/.local/lib/python3.8/site-packages/ezFlashCLI/ezFlash/pyjlink.py", line 192, in del
self.close()
File "/home/rock/.local/lib/python3.8/site-packages/ezFlashCLI/ezFlash/pyjlink.py", line 328, in close
self.jl.JLINKARM_Close()
AttributeError: 'NoneType' object has no attribute 'JLINKARM_Close'

Any ideas ?
Thanks

ezSerilacli Not working in Linux and Windows Works fine in MAC

The ezSerialCli while trying to program a DA14531 USB dev kit , works fine load is sucess in MAC with M1 chip, but same script fails in Linux and Windows, it fails in the bellow step

DEBUG:da1469xSerialLoader:Failed to get data ACK 0 101

Can someone tell me what can cause the problem in linux and windows

Mac M1 usage

Currently getting this error after installing with pip on an M1 Mac:

INFO:root:ezFlashCLI v1.0.5
INFO:root:By using the program you accept the SEGGER J-link™ license
ERROR:root:Error loading J-Link Library:
dlopen(/opt/homebrew/lib/python3.10/site-packages/ezFlashCLI/ezFlash/../third-party/segger/libjlinkarm.dylib, 0x0006):
tried: '/opt/homebrew/lib/python3.10/site-packages/ezFlashCLI/ezFlash/../third-party/segger/libjlinkarm.dylib'
(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')),
'/opt/homebrew/lib/python3.10/site-packages/ezFlashCLI/third-party/segger/libjlinkarm.dylib'
(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

Exception ignored in: <function pyjlink.__del__ at 0x1015b08b0>
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/ezFlashCLI/ezFlash/pyjlink.py", line 192, in __del__
    self.close()
  File "/opt/homebrew/lib/python3.10/site-packages/ezFlashCLI/ezFlash/pyjlink.py", line 328, in close
    self.jl.JLINKARM_Close()
AttributeError: 'NoneType' object has no attribute 'JLINKARM_Close'

How to use this tool without sudo?

I've tried this tool and find it can only be used with sudo:

[itemqq@itemqq-arch DA14585]$ ezFlashCLI probe
INFO:root:ezFlashCLI v1.0.6
INFO:root:By using the program you accept the SEGGER J-link™ license
ERROR:root:Device not responding: b'Cannot connect to J-Link.'
[itemqq@itemqq-arch DA14585]$ sudo ezFlashCLI probe
INFO:root:ezFlashCLI v1.0.6
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: Not Found

Also I don't know why there is no Device id, my device is a brand new DA14585 Basic Dev Kit

Is there anyway to make it work without sudo?

For jlink I know it can be done by changing jlink.ruels:

SUBSYSTEM=="usb", ATTR{idVendor}=="1366", ATTR{idProduct}=="0101", MODE="0666", GROUP="plugdev"

But for ezFlahsCLI I cannot figure it out. Would appreciate it if you can give any advice, thanks!

Can not write flash with DA14681

Hi,

The read_flash/erase_flash commands are okay but image_flash/image_bootloader_flash both failed as follwing.
and, would you please share the source code of segger_flash_loader_68x.elf?

20240404214251

INFO:root:ezFlashCLI v1.0.21
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:Smartbond chip: DA14680/DA14681
INFO:root:Flash information:
INFO:root:  - Device Id: W25Q32JW

C:\Users\fanticat>ezFlashCLI read_flash 0x0 128
INFO:root:ezFlashCLI v1.0.21
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
INFO:root:00000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
INFO:root:00000020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
INFO:root:00000030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
INFO:root:00000040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
INFO:root:00000050: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
INFO:root:00000060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
INFO:root:00000070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

C:\Users\fanticat>ezFlashCLI image_flash E:\diy\epd\DA14681\DA1468x_DA15xxx_SDK_1.0.14.1081\projects\dk_apps\templates\freertos_retarget\DA14681-01-Release_QSPI\freertos_retarget.bin
INFO:root:ezFlashCLI v1.0.21
INFO:root:By using the program you accept the SEGGER J-link™ license
INFO:root:[DA1468x] Program binary
ERROR:root:Download failed with code: @8000000 -5```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.