Menu

#8 Support for Multiple Connected Seggers

1.0
closed
None
2015-05-09
2015-05-08
Tom Keeley
No

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.

Related

Tickets: #8

Discussion

  • Roland King

    Roland King - 2015-05-08

    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.

     
    • Tom Keeley

      Tom Keeley - 2015-05-08

      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.

      On May 8, 2015, at 1:39 AM, Roland King rolandking@users.sf.net wrote:

      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.

      [tickets:#8] Support for Multiple Connected Seggers

      Status: open
      Milestone: 1.0
      Created: Fri May 08, 2015 02:33 AM UTC by Tom Keeley
      Last Updated: Fri May 08, 2015 02:33 AM UTC
      Owner: nobody

      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.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/rknrfgo/tickets/8/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #8

      • Tom Keeley

        Tom Keeley - 2015-05-08

        I 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:

        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.

        On May 8, 2015, at 1:39 AM, Roland King rolandking@users.sf.net wrote:

        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.

        [tickets:#8] http://sourceforge.net/p/rknrfgo/tickets/8 Support for
        Multiple Connected Seggers

        Status: open
        Milestone: 1.0
        Created: Fri May 08, 2015 02:33 AM UTC by Tom Keeley
        Last Updated: Fri May 08, 2015 02:33 AM UTC
        Owner: nobody

        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.

        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/rknrfgo/tickets/8/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        Status: accepted
        Milestone: 1.0
        Created: Fri May 08, 2015 02:33 AM UTC by Tom Keeley
        Last Updated: Fri May 08, 2015 06:40 AM UTC
        Owner: Roland King

        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.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/rknrfgo/tickets/8/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Tickets: #8

  • Roland King

    Roland King - 2015-05-08
    • status: open --> accepted
    • assigned_to: Roland King
     
  • Roland King

    Roland King - 2015-05-09

    That 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.

     
  • Roland King

    Roland King - 2015-05-09
    • status: accepted --> closed
     

Log in to post a comment.