Author Topic: Avoid DFU mode entry at start of sketch  (Read 943 times)

blieber

  • RFduino Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Avoid DFU mode entry at start of sketch
« on: October 29, 2016, 06:26:34 PM »
Just by including this header - #include <OTA_Bootloader.h> - it seems that the Simblee enters DFU mode before hitting setup. Is this by design or is this a way to disable this? The contract I want instead is to enter DFU only when prompted from an external input.

danlsk

  • RFduino Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Avoid DFU mode entry at start of sketch
« Reply #1 on: November 03, 2016, 12:42:04 AM »
I don't think the DFU mode is immediately triggered before setup. I may be wrong. How do you confirm that? There are members here who reported able to use IOS/Android app NRF Toolbox to perform the DFU OTA upload without even calling the ota_bootloader_start() in sketch. I am not successful in doing that yet. Having said that, you may need to refer to "dfu_service" function on nordic SDK. 
« Last Edit: November 03, 2016, 02:44:40 PM by danlsk »

blieber

  • RFduino Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Avoid DFU mode entry at start of sketch
« Reply #2 on: November 09, 2016, 11:48:13 PM »
Got DFU working without calling ota_bootloader_start() in sketch, see http://forum.rfduino.com/index.php?topic=1559.msg5698#msg5698, happy to help troubleshoot if you're still running into issues here.

Tim

  • RFduino Sr. Member
  • ****
  • Posts: 126
  • Karma: +2/-0
    • View Profile
Re: Avoid DFU mode entry at start of sketch
« Reply #3 on: November 10, 2016, 09:19:34 AM »
I experienced the same. See:

http://forum.rfduino.com/index.php?topic=1355.msg5030#msg5030

Never did resolve. I got an RFD77203 (29-pin GPIO Breakout) and changed photoTransistorPin to 9 and all behaves normally.

Tim

 

anything