adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OTA DFU succeeds but does not start application

zwells opened this issue · comments

I've compiled the bootloader for my custom nrf52832 boards (different button/led pins) and merged it with s132 softdevice for my own hex file. It runs fine, OTA DFU on the Bluefruit app succeeds, but when I restart my board one LED does a fast pwm sequence and then both LEDs go solid on without starting the application.

I export the compiled binary hex file from Arduino IDE, then perform the following:

adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application sketch.ino.feather_nrf52832.hex package.zip

Then I unzip that file, and use the .hex file, and the .dat file (that's the init file that Bluefruit requires).

I'm hoping it's as simple as just having to change an address definition.

I tried this fix with the additional hex file to merge with, but it didn't work. I'm assuming due to it being for an old SoftDevice version:
https://devzone.nordicsemi.com/f/nordic-q-a/27006/how-to-flash-the-softdevice-the-bootloader-and-the-application-at-once

I noticed the current draw is different based on what sketch I give it, but it's like the application hangs at start. I may check the core configuration. I don't have an external crystal so maybe it's something simple like that.

The core was defined to use an external crystal in variant.h so I switched it to the internal RC but still same thing.

When I made a hex file with the softdevice, my bootloader, and my sketch, it goes into dfu like it doesn't know it has a valid app

My sketches run on my bootloader if I upload through Jlink with Arduino IDE and hold Shift for Upload with programmer

I will close this since it is not a bootloader issue, you are probably missing a step or two with the procedure.

You are correct! It is working now. Thank you!