diff --git a/pyocd/target/family/__init__.py b/pyocd/target/family/__init__.py index 2e5a747e1..58858e426 100644 --- a/pyocd/target/family/__init__.py +++ b/pyocd/target/family/__init__.py @@ -38,7 +38,7 @@ class FamilyInfo(NamedTuple): # present), or the 'Dname' or 'Dvariant' part numbers. The comparisons are performed in order from # specific to general, starting with the part number. FAMILIES = [ - FamilyInfo("NXP", re.compile(r'LPC55?[0-9]{2}.*'), target_lpc5500.LPC5500Family ), + FamilyInfo("NXP", re.compile(r'LPC55.?[0-9]{2}.*'), target_lpc5500.LPC5500Family ), FamilyInfo("NXP", re.compile(r'MIMXRT[0-9]{4}.*'), target_imxrt.IMXRT ), FamilyInfo("NXP", re.compile(r'MK[LEVWS]?.*'), target_kinetis.Kinetis ), FamilyInfo("Nordic Semiconductor", re.compile(r'nRF52[0-9]+.*'), target_nRF52.NRF52 ),