src/eric7/MicroPython/UF2FlashDialog.py

branch
eric7
changeset 11174
ab097070aedf
parent 11172
a5bbcf506ef0
child 11176
1b0e4bf80f49
--- a/src/eric7/MicroPython/UF2FlashDialog.py	Tue Mar 18 18:14:12 2025 +0100
+++ b/src/eric7/MicroPython/UF2FlashDialog.py	Tue Mar 18 18:19:14 2025 +0100
@@ -784,6 +784,13 @@
         "volumes": {
             (0x239A, 0x0029): [
                 ("FTHR840BOOT", "Feather nRF52840 Express"),
+                ("MDK840DONGL", "MDK nRF52840 USB Dongle"),
+            ],
+            (0x239A, 0x0063): [
+                ("NANO33BOOT", "Nano 33 BLE"),
+            ],
+            (0x239A, 0x00DA): [
+                ("XENONBOOT  ", "Particle Xenon"),
             ],
             (0x2886, 0x0045): [
                 ("XIAO-SENSE", "XIAO nRF52840 Sense"),
@@ -866,7 +873,9 @@
         for vidpid, volumes in SupportedUF2Boards[board]["volumes"].items():
             for volume, description in volumes:
                 if OSUtilities.isWindowsPlatform():
-                    if FileSystemUtilities.findVolume(volume, findAll=True):
+                    if FileSystemUtilities.findVolume(
+                        volume, findAll=True, markerFile="INFO_UF2.TXT"
+                    ):
                         foundDevices.add((board, description, vidpid))
                 else:
                     # check only user mounted devices on non-Windows systems
@@ -1269,7 +1278,9 @@
             volumes = SupportedUF2Boards[boardType]["volumes"][vidpid]
             foundVolumes = []
             for volume, _ in volumes:
-                foundVolumes += FileSystemUtilities.findVolume(volume, findAll=True)
+                foundVolumes += FileSystemUtilities.findVolume(
+                    volume, findAll=True, markerFile="INFO_UF2.TXT"
+                )
 
             if len(foundVolumes) == 0:
                 self.__showNoVolumeInformation([v[0] for v in volumes], boardType)
@@ -1316,7 +1327,9 @@
                 for volume, _ in volumes:
                     if OSUtilities.isWindowsPlatform():
                         foundBootVolumes.update(
-                            FileSystemUtilities.findVolume(volume, findAll=True)
+                            FileSystemUtilities.findVolume(
+                                volume, findAll=True, markerFile="INFO_UF2.TXT"
+                            )
                         )
                     else:
                         # check only user mounted devices on non-Windows systems

eric ide

mercurial