ezflash / ezflashcli Goto Github PK
View Code? Open in Web Editor NEWCommand line utility to program Dialog Semiconductor Smartbond device family companion flash. Alternate tool to Smarbond devices built in the SDK.
License: MIT License
Command line utility to program Dialog Semiconductor Smartbond device family companion flash. Alternate tool to Smarbond devices built in the SDK.
License: MIT License
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
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!
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'
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?
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```
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.