Is there a way to read which product part number is connected via DFU bootloader?
I'm looking for a way to detect which device part number (EX: STM32F765...) is connected via the USB DFU bootloader before programming the device (as a sanity check to make sure the file is appropriate/compatible). I can see the VID/PID/REV and Option Bytes, but that is not specific enough.
Is there any way to do this? Or are there other recommended ways to check device compatibility with a target .DFU file?
For context, I'm envisioning a situation where I have 2 very different STM32 devices that support the USB DFU bootloader but require different DFU files.
