Skip to content

Commit

Permalink
sanitycheck: Add support for TI XDS110 to --generate-hardware-map
Browse files Browse the repository at this point in the history
Add support for boards that utilize the TI XDS110 like the CC3220SF,
CC3235SF, CC1352R1 and CC26x2R1 LaunchXL boards.  The XDS110 can expose
multiple serial endpoints one for the uart device, but another for a
trace buffer.  We assume that endpoint 0 will be the UART device.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak authored and nashif committed Nov 14, 2019
1 parent 1ad3543 commit a4b2b5b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -3611,7 +3611,12 @@ def main():
serial_devices = list_ports.comports()
filtered = []
for d in serial_devices:
if d.manufacturer in ['ARM', 'SEGGER', 'MBED', 'STMicroelectronics', 'Atmel Corp.']:
if d.manufacturer in ['ARM', 'SEGGER', 'MBED', 'STMicroelectronics',
'Atmel Corp.', 'Texas Instruments']:
# TI XDS110 can have multiple serial devices for a single board
# assume endpoint 0 is the serial, skip all others
if d.manufacturer == 'Texas Instruments' and not d.location.endswith('0'):
continue
s_dev = {}
s_dev['platform'] = "unknown"
s_dev['id'] = d.serial_number
Expand All @@ -3623,6 +3628,8 @@ def main():
s_dev['runner'] = "jlink"
elif s_dev['product'] in ['STM32 STLink']:
s_dev['runner'] = "openocd"
elif s_dev['product'].startswith('XDS110'):
s_dev['runner'] = "openocd"
else:
s_dev['runner'] = "unknown"
s_dev['available'] = True
Expand Down

0 comments on commit a4b2b5b

Please sign in to comment.