This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51822 over the air bootloader - nRF Mcp freezes or reports GATT ERROR

Today, I tried out the Ble Bootloader from the Sdk examples. As a central client, I'd used the »nRF Loader App« an an iPhone and also »nRF Mcp« on an Android Tablet.

I tried it out with some different application binaries (all are attached to this post). The Blinky is slightly different agains the sck examples (a bit different blinking pattern). All application binaries My test target is a nRFgo: nRF6310 Rev 1.4 Motherboard with PCA10004 Rev 2.0.0 cpu module. For each test run I began with nRFgo Studio "Erase all", "Program SoftDevice" & "Program Bootloader" to have always a clean base.

The results are as followes.

Update via nRF Loader (iPhone), needs *.bin update files:- Blinky Debug -> Update ok, application works as expected

  • Blinky Release -> Update ok, application works as expected
  • Hrs Debug -> Update ok, application works as expected
  • Hrs Release -> Update ok, application works as expected
  • Hrs Debug2 -> Update ok, application works as expected
  • buildin ble_app_hrs -> Message "Finished upload!", but no Ble Peripheral visible on Mcp or LightBlue
  • buildin ble_app_rscs -> dito

Update via nRF Mcp (Android), needs *.hex update files:- Blinky Debug -> Starting DFU -> no progress bar, ends up in a screen with: "Status: GATT ERROR \n NOT BONDED"

  • Blinky Release -> Update ok, application works as expected
  • Hrs Debug -> Starting DFU -> freezes at 20%
  • Hrs Release -> Starting DFU -> freezes at 36%
  • Hrs Debug2 -> Starting DFU -> freezes at 20% Look's like an issue with the "nRF Master Control Panel" Android app, isn't it?

nRF-Binaries.zip

  • Updated Android App: As I'm using Mcp (nRF Master Control Panel app) until now, your update contains a new version of nRF Toolbox (now version 1.5.2). I tried out my hex files with the new nRF Toolbox and all updates are performed correctly :-)

    Open Local Files: Ok, I understand. Before installing the file manager app, the touch of the [DFU] button (both in nRF Mfc & Toolbox app) had instantly launch dropbox (even though my Android tablet consist of a build in (Samsung stock) file manager which seems not to be considered here). After installing the file manager app, the click on [DFU] brings up the »Complete action using« dialog to give me the choice between Dropbox and File Manager.

    What I tried before: Clicking the hex file inside of the file manager and hoping I got an option to open that file using nRF Mcp or Toolbox (like the way the nRF Loader on iOS works when opening a hex file from an email attachment). Ok, this way works not with the nRF Android apps - but for me that's no problem - opening from inside the app is really ok.

    Conclusion Solved :) - laudable quick & competent.

  • Just got an update for "nRF Master Control Panel" Android app to version 1.4.3 via Google Play Store. The problem still resists although the behaviour is slightly different:- Blinky Debug -> "Status: GATT ERROR \n NOT BONDED"

    • Blinky Release -> Update ok, application works as expected
    • Hrs Debug -> Starting DFU -> freezes at 18%
    • Hrs Release -> "Status: GATT ERROR \n NOT BONDED"
    • Hrs Debug2 -> Starting DFU -> freezes at 18%
  • Hi Joe,

    The Master Control Panel hasn't got the update for the bug we found on 17th yet. But if you update the nRF Toolbox, you should have the DFU update without problem.

    I will talk with the developer to have the MCP updated. But please be noted that the MCP is not the reference design, when the nRF Tool box is.

  • Just another update, Joe. I tried again today with MCP 1.4.3, and it seems that it works fine. Maybe, you would need to manually uninstall the app and install it again. Make sure you can find 1.4.3 when you look the the app information on your phone.

  • Yep. Although I'd already been on Mcp 1.4.3, I had to reinstall the app. Now Dfu works also in Mcp.

Related