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

Start dfu bootloader from MBR

On my own board based on 51822, I developped an HTS-like application with SD8.0.0.

Now, I would like integrate the DFU bootloader.

I follow the "Running the BLE bootloader example" .

Programming the DFU bootloader

  1. Erasing the device OK

  2. Program the SoftDevice OK

  3. Compile the project dfu_dual_bank_ble_s110_pcaNNN OK NNN is my board with 1 led and 1 button

  4. Select ... (I don't use Keil, but eclipse, arm-gcc toolchain and cygwin as dev environment) NO IN MY CASE

  5. Program the DFU bootloader. OK

Updating the device firmware

  1. Create a firmware file or use one provided within example POSTPONED

  2. Make sure that you are using Master Control Panel v3.8 or later. OK (3.10.0.14)

  3. Start the device in bootloader mode. FAILED

As there is no existing application on the device, the device should be started in bootloader mode.

This step fails...

My checks are:

  • UICR in 0x10001014 is programmed with 0x0003C000

  • the debugger doesn't stop on the main() breakpoint.

Have you an idea what happens ?

Thanks for your support !

Parents
  • Hi Manu,

    Could you try to test:

    • Make a simple application (blinking an LED for example) and make sure it works when the softdevice programmed on the flash (locate the application in the application area)

    • Write 0x0003C000 to 0x10001014 in UICR and flash the test application to the address 0x3C000

    If the application doesn't start on test case 2, please provide us the hex dump of the whole flash and your project files of the test project

Reply
  • Hi Manu,

    Could you try to test:

    • Make a simple application (blinking an LED for example) and make sure it works when the softdevice programmed on the flash (locate the application in the application area)

    • Write 0x0003C000 to 0x10001014 in UICR and flash the test application to the address 0x3C000

    If the application doesn't start on test case 2, please provide us the hex dump of the whole flash and your project files of the test project

Children
No Data
Related