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

Secure DFU Bootloader Example not Advertising

I have followed all steps in the recent blog, but the device doesn't advertise. I am using:

  • BMD-300-EVAL devkit (nrf52832)
  • SDK 12.1.0
  • S132 3.0.0
  • Eclipse with gcc-arm-none-eabi-4_9-2015q3
  • Example folder is located in: nRF5_SDK_12.1.0/examples/dfu/bootloader_secure/

I have been using this setup with no issue for the development of other example applications and my own applications.

I notice in sdk_config.h that the clock is disabled. Could this be causing a problem? I tried to enabling it and adding the includes that it needed to the Makefile, but this did not work. Also, it seems that the softdevice is not enabled in main.c. I also tried enabling logging, but this causes a compile error. "region 'FLASH' overflowed by 9748 bytes. I don't know how to fix this so that I can debug.

Where o where am I going wrong?

Parents
  • Hi ,

    Could you try to test with SDK v13 ? I haven't heard of issue with the Secure bootloader and gcc except for the buttonless example as summarized here.

    How did you test ? Did you modify anything in the dfu bootloader ? If you simply compile (without modifying anything) and flash the bootloader and the softdevice, would it advertise ?

    You can remove optimization and run the bootloader in debug mode and see where it crashes.

  • SDKv12 should work as well. Could you just try again with the unmodified example ? Maybe a fresh copy ?

    The issue you have with pca10040_debug is that the memory configuration is not big enough when you remove optimization. You need to change the start address of the bootloader to make more room for the bootloader firmware.

Reply Children
No Data
Related