This question had been answered quite a few times a few years ago, but it looks like the old way isn’t working any more?
Basically, I want to be able to call a particle function that puts the Electron in DFU mode.
The workaround used to be setting the FLASH_OTA_Update_SysFlag (from the bootloader) to 0. Example code below.
However, those variables no longer seem to be defined.
OR, I just need more sleep and I’m completely missing something obvious.
You guys have any way to get the Electron into DFU mode via code?
FLASH_OTA_Update_SysFlag = 0x0000; Save_SystemFlags(); BKP_WriteBackupRegister(BKP_DR10, 0x0000); USB_Cable_Config(DISABLE); NVIC_SystemReset();