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

sdk12.2 DFU buttonless ble_dfu_init crash

I'm trying to run the DFU buttonless example however this line crashes the app:

err_code = ble_dfu_init(&m_dfus, &dfus_init);

UPDATE:

Looks like this is causing the crash, which is inside the aforementioned function

nrf_dfu_settings_init();

Parents
  • SDK 12.2, GCC

    pca10040/s132/armgcc/ble_app_buttonless_dfu_gcc_nrf52.ld

    FIX: /* Linker script to configure memory regions. */

    SEARCH_DIR(.)
    GROUP(-lgcc -lc -lnosys)
    
    MEMORY
    {
      FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x59000
      RAM (rwx) :  ORIGIN = 0x20002128, LENGTH = 0xded8
      BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0007F000, LENGTH = 0x1000
    }
    
    SECTIONS
    {
      .bootloaderSettings(NOLOAD) :
      {
    
      } > BOOTLOADER_SETTINGS
    
      .fs_data :
      {
        PROVIDE(__start_fs_data = .);
        KEEP(*(.fs_data))
        PROVIDE(__stop_fs_data = .);
      } > RAM
      .pwr_mgmt_data :
      {
        PROVIDE(__start_pwr_mgmt_data = .);
        KEEP(*(.pwr_mgmt_data))
        PROVIDE(__stop_pwr_mgmt_data = .);
      } > RAM
    } INSERT AFTER .data;
    
    INCLUDE "nrf5x_common.ld"
    
  • Thanks for reporting this :) I will report this internally and add it to our known issues list with SDK v12.x.x, found here.

Reply Children
No Data
Related