STM32L496 - DFU Exit detection
Hello, I'm running into a bit of trouble updating firmware using DFU. This would not be such a big deal, apart from the fact that sometimes an upgrade needs to be made without the ST-Link tool.
First of all, entering DFU mode and re-flashing the firmware using CubeProgrammer works.
I'm using the settings shown above.
When the flashing is finished, I'm reading a Backup register. If it's 0 (it seems they zero out after DFU mode, I do a reset by calling HAL_NVIC_SystemReset(). However, I don't think that works.
Is there a reliable way of detecting if the system just exited from DFU mode (status bit, register, etc...), and would that be available just after reset, i.e, at the start of the main() program?
Cheers,
Alberto
