nrfjprog does not appear to behave correctly when more than one Segger is connected. "nrfjprog list" returns the following error "Error: More than one connected device - must supply a serial number" when it should simply list multiple serial numbers. Also, with two seggers connected, even if I supply a serial number, nrfjprog will sometimes choose a segger with a different serial number.
oh dear I wonder when I broke that, probably one of the last couple of revisions where I changed the code which worked out whether the command line parameters were all valid. I'll take a look over the weekend, should have some time.
if you can run it with '-v' it would be helpful to catch it driving the wrong segger, I'm not entirely sure how that could happen since it just passes the serial number along to JLinkExe but I'll certainly look at that too.
Will do. I'll do some tests today with -v.
Thanks for the great tool! It's been awesome not having to load a virtual machine on my Mac to use nrfjprog.
Tom
Sent from my iPhone.
Related
Tickets:
#8I ran it a few times with -v (always supplying --serial 59XXXXXX on the
command line). It looks like it is always selecting the serial number that
appears first in the list regardless of the command line. See below for the
relevant output from the command:
Sleep(100)
J-Link[0]: Connection: USB, Serial number: 68XXXXXXX, ProductName: J-Link
J-Link[1]: Connection: USB, Serial number: 59XXXXXX, ProductName: J-Link
Sleep(200)
Script processing completed.
CWD:
/var/folders/d5/g3lb4rXXXXXX_XXXXXXXXXXXXX/T/XXXXXXX-XXXX-4803-A288-XXXXXXXXXXX
Command: /usr/bin/JLinkExe JLINK_WipeDevice.2 -if swd -device nrf51822
-SelectEmuBySn 68XXXXXX
Thanks for your help,
Tom
On Fri, May 8, 2015 at 8:11 AM, Tom Keeley tkeeley@users.sf.net wrote:
Related
Tickets:
#8That was pretty broken - should be fixed in 1.0.10 which I just uploaded, that gives you version 1.0.6 of nrfjprog. 'list' should work with multiple seggers and selecting the device on the command line should actually select it!
I also fixed a bootloader bug while I was in the code.