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

DFU not advertising

Hi,

I am trying to get DFU working on my PCA10040 board using SDK 14.2 and armgcc toolchain.

I have followed the instructions to set up DFU here:

devzone.nordicsemi.com/.../

The only changes I have made to the bootloader example are to include the generated public_key.c file in the Makefile - trying to compile the example without this throws an error about the example key not being allowable in production.

The bootloader compiles fine and I've flashed it onto the board along with the softdevice. LED 3 lights which I understand should indicate DFU mode (although LED 1 does not light).

The problem is that the board isn't advertising. If I instead flash the pre-compiled hex file from the example directory then advertising works fine, noting that both LED 1 and LED 3 are lit.

The process is pretty simple so I can't obviously see where I would have gone wrong. Any suggestions would be gratefully received!

This is the generated public_key.c file: public_key.c

And this is the compiled hex file: nrf52832_xxaa_s132.hex

Parents
  • I managed to get the code into the bebugger and it seemed to be crashing at the point where initialisation of the dfu was happening. It would get part way through and then suddenly jump off somewhere random in memory.

    Given I had tried everything else I decided to regenerate the private and public keys and try again. This worked first time. Possibly there was some issue with the first key that was generated?

Reply
  • I managed to get the code into the bebugger and it seemed to be crashing at the point where initialisation of the dfu was happening. It would get part way through and then suddenly jump off somewhere random in memory.

    Given I had tried everything else I decided to regenerate the private and public keys and try again. This worked first time. Possibly there was some issue with the first key that was generated?

Children
No Data
Related