energia / cc13x2-core

Energia core for the CC13x2 family
1 stars 0 forks source link

Select one board when multiple connected for sketch upload #2

Open rei-vilo opened 5 years ago

rei-vilo commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.