Skip to content

Commit a4b2b5b

Browse files
galaknashif
authored andcommitted
sanitycheck: Add support for TI XDS110 to --generate-hardware-map
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]>
1 parent 1ad3543 commit a4b2b5b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/sanitycheck

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3611,7 +3611,12 @@ def main():
36113611
serial_devices = list_ports.comports()
36123612
filtered = []
36133613
for d in serial_devices:
3614-
if d.manufacturer in ['ARM', 'SEGGER', 'MBED', 'STMicroelectronics', 'Atmel Corp.']:
3614+
if d.manufacturer in ['ARM', 'SEGGER', 'MBED', 'STMicroelectronics',
3615+
'Atmel Corp.', 'Texas Instruments']:
3616+
# TI XDS110 can have multiple serial devices for a single board
3617+
# assume endpoint 0 is the serial, skip all others
3618+
if d.manufacturer == 'Texas Instruments' and not d.location.endswith('0'):
3619+
continue
36153620
s_dev = {}
36163621
s_dev['platform'] = "unknown"
36173622
s_dev['id'] = d.serial_number
@@ -3623,6 +3628,8 @@ def main():
36233628
s_dev['runner'] = "jlink"
36243629
elif s_dev['product'] in ['STM32 STLink']:
36253630
s_dev['runner'] = "openocd"
3631+
elif s_dev['product'].startswith('XDS110'):
3632+
s_dev['runner'] = "openocd"
36263633
else:
36273634
s_dev['runner'] = "unknown"
36283635
s_dev['available'] = True

0 commit comments

Comments
 (0)