And here is the output of fbt blackmagic whith line 30 uncommented (everything after this is unchanged):
/dev/ttyACM1 {‘device’: ‘/dev/ttyACM1’, ‘name’: ‘ttyACM1’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.2’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.2’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’}
/dev/ttyACM0 {‘device’: ‘/dev/ttyACM0’, ‘name’: ‘ttyACM0’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.0’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.0’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’}
/dev/ttyACM1 {‘device’: ‘/dev/ttyACM1’, ‘name’: ‘ttyACM1’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.2’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.2’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’}
/dev/ttyACM0 {‘device’: ‘/dev/ttyACM0’, ‘name’: ‘ttyACM0’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.0’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.0’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’}
/dev/ttyACM1 {‘device’: ‘/dev/ttyACM1’, ‘name’: ‘ttyACM1’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.2’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.2’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’}
/dev/ttyACM0 {‘device’: ‘/dev/ttyACM0’, ‘name’: ‘ttyACM0’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.0’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.0’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’}
/dev/ttyACM1 {‘device’: ‘/dev/ttyACM1’, ‘name’: ‘ttyACM1’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.2’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.2’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’}
/dev/ttyACM0 {‘device’: ‘/dev/ttyACM0’, ‘name’: ‘ttyACM0’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.0’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.0’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’}
arm-none-eabi-gdb-py -ex “target extended-remote /dev/ttyACM0” -ex “set confirm off” -ex “monitor swdp_scan” -ex “monitor debug_bmp enable” -ex “attach 1” -ex “set mem inaccessible-by-default off” -ex “source debug/FreeRTOS/FreeRTOS.py” -ex “source debug/PyCortexMDebug/PyCortexMDebug.py” -ex “svd_load debug/STM32WB55_CM4.svd” -ex compare-sections build/f7-firmware-D/firmware.elf
/dev/ttyACM1 {‘device’: ‘/dev/ttyACM1’, ‘name’: ‘ttyACM1’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.2’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.2’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.2’}
/dev/ttyACM0 {‘device’: ‘/dev/ttyACM0’, ‘name’: ‘ttyACM0’, ‘description’: ‘Blackmagic ESP32 - Blackmagic ESP32’, ‘hwid’: ‘USB VID:PID=303A:4001 SER=blackmagic LOCATION=1-2:1.0’, ‘vid’: 12346, ‘pid’: 16385, ‘serial_number’: ‘blackmagic’, ‘location’: ‘1-2:1.0’, ‘manufacturer’: ‘Flipper Devices Inc.’, ‘product’: ‘Blackmagic ESP32’, ‘interface’: ‘Blackmagic ESP32’, ‘usb_device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2’, ‘device_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’, ‘subsystem’: ‘usb’, ‘usb_interface_path’: ‘/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0’}