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

Application Version from Bootloader Unavailable through recommended approach

Hi,

The DFU process is working correctly and I've tried downgrading the app version which throws the expected error, so it is stored someplace

Accessing via the recommended:

static nrf_dfu_settings_t *p_dfu_settings = (nrf_dfu_settings_t *) FLASH_BOOTLOADERSETTINGS_START;  // FLASH_BOOTLOADERSETTINGS_START=0x0002F000

device.firmware.version = p_dfu_settings->app_version;


Returns a value of zero.

Thanks,

Andrew


Parents Reply
  • Can't recall, something like 3010001. It is working though as it errored on an attempt to downgrade.

    I'm using the same code as that already, it reports as zero. Plus I read using nrfjprog and it shows as zero.

    static nrf_dfu_settings_t *p_dfu_settings = (nrf_dfu_settings_t *) FLASH_BOOTLOADERSETTINGS_START;

    device.firmware.version = p_dfu_settings->app_version;

Children
Related