# Firmware Tips and Tricks

**URL:** <https://community.particle.io/t/firmware-tips-and-tricks/3649>\
**Category:** Firmware\
**Created:** [March 27, 2014, 1:59pm UTC](https://community.particle.io/t/firmware-tips-and-tricks/3649 "2014-03-27T13:59:40Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![Bluescreen](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@Bluescreen](https://community.particle.io/u/Bluescreen)\
**Post date:** [February 6, 2015, 8:55am UTC](https://community.particle.io/t/firmware-tips-and-tricks/3649/23 "2015-02-06T08:55:23Z")

</div>

> [@deancs](#):
>
> int doDFU(String command) {
> 
> FLASH\_OTA\_Update\_SysFlag = 0x0000;  
> Save\_SystemFlags();  
> BKP\_WriteBackupRegister(BKP\_DR10, 0x0000);  
> USB\_Cable\_Config(DISABLE);  
> NVIC\_SystemReset();
> 
> return 0;  
> }

That's a cool function. I added it to my commandline parser and can now flash the core without pressing the buttons. But what if I accindently start the DFU loader this way. Is there a way to reset to normal mode without really flashing? Some button tricks, timeouts or so.

I just managed to "brick" my core, it is now flashing blue. I have to look what that means. 🙂

---

_[View the full topic](https://community.particle.io/t/firmware-tips-and-tricks/3649)._
