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

Select one board when multiple connected for sketch upload #2

Open
rei-vilo opened this issue Sep 18, 2019 · 4 comments
Open

Select one board when multiple connected for sketch upload #2

rei-vilo opened this issue Sep 18, 2019 · 4 comments

Comments

@rei-vilo
Copy link
Member

Are two laptops required for playing with the Commissioner / Joiner example?

If two CC1352 LaunchPads are connected, one for Commissioner and the other for Joiner, I haven't seen any parameters to select one of two boards on the DSLite command.

/Users/ReiVilo/Library/Energia15/packages/energia/tools/dslite/9.1.0.1655/DebugServer/bin/DSLite load -c /Users/ReiVilo/Library/Energia15/packages/energia/tools/dslite/9.1.0.1655/CC1352R1_LAUNCHXL.ccxml -f /var/folders/dm/8k9c7vcn4_51pxxwvstj2p500000gn/T/arduino_build_3361/commissioner.ino.elf

@rei-vilo
Copy link
Member Author

rei-vilo commented Dec 10, 2019

Each XDS110 debug probe has a serial number. The Vendor ID of Texas Instruments is VID=0451.

% lsusb -d 0451: 2> /dev/null
Bus 020 Device 001: ID 0451:bef3 Texas Instruments XDS110 (02.03.00.18) Embed with CMSIS-DAP Serial: L410084W

The serial number of the connected XDS110 debug probe is L410084W.

The .ccxml should be modified to include that serial number.

<property Type="choicelist" Value="1" id="Debug Probe Selection">
  <choice Name="Select by serial number" value="0">
    <property Type="stringfield" Value="L410084W" id="-- Enter the serial number"/>
  </choice>
</property>

@robertinant
Copy link
Member

Unfortunately the serial number is dynamic and can even be changed bij the user using the xdsdfu utility. Thus modifying the serial number in the .ccxml files will not work.

@rei-vilo
Copy link
Member Author

I understand the serial number is dynamic, but does it change during a session?

Connecting 2 LPSTKs, reading their serial numbers, and selecting one as collector and another as server: could this procedure work, to be started again during the next session?

@rei-vilo
Copy link
Member Author

See the answer at SIMPLELINK-OPENOCD: Selecting one among multiple connected boards for OpenOCD.

The serial number of the XDS110 programmer-debugger can be passed as an argument.

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