Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Automatic selection of first device to read/write flash does not work anymore #89

Open
sylv-io opened this issue Jul 31, 2024 · 3 comments

Comments

@sylv-io
Copy link
Contributor

sylv-io commented Jul 31, 2024

As of the latest commit 436ac5c of #87, it is now necessary to specify the device for each read/write operation, even if only one device is attached. IMHO, in the case of a single device, it should be selected automatically.

$ ./dpcmd -d

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Jul 31 2024

 

Device 1 (SF628665):    detecting chip
By reading the chip ID, the chip applies to [  W25Q128BV W25Q128FV S25FL128K W25R128FV W25R128JV W25Q128JV ]
W25Q128BV chip size is 16777216 bytes.


$ ./dpcmd -r test.rom

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Jul 31 2024

 
Error: Programmers are not connected.


[sylv SF100Linux]$ ./dpcmd --device 1 -r test.rom

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Jul 31 2024

 
By reading the chip ID, the chip applies to [ W25Q128BV ]

W25Q128BV parameters to be applied by default
W25Q128BV chip size is 16777216 bytes.


Reading, please wait ...

Device 1 (SF628665):
13.2s elapsed

Device 1 (SF628665):
Read OK

Successfully saved into file:test.rom 
@sylv-io
Copy link
Contributor Author

sylv-io commented Jul 31, 2024

cc @Benwang217

@emmedve1
Copy link

Related regression?

Before:

$ dpcmd --list-device-id 0

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Aug 12 2024


1,      SF700703
2,      SF700704
$ dpcmd --list-device-id 1

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Aug 12 2024


1,      SF700703
$ dpcmd --list-device-id 2

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Aug 12 2024


2,      SF700704

After:

$ dpcmd --list-device-id 0

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Aug 12 2024


Error: Programmers are not connected.


Command exited with non-zero status 12
$ dpcmd --list-device-id 1

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Aug 12 2024


Error: Programmers are not connected.


Command exited with non-zero status 12
$ dpcmd --list-device-id 2

DpCmd Linux 1.14.20.12 Engine Version:
Last Built on Aug 12 2024


Error: Programmers are not connected.


Command exited with non-zero status 12

@sylv-io
Copy link
Contributor Author

sylv-io commented Aug 13, 2024

@emmedve1 I think so. Try adding this flag: --device 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants