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

Adding one more FDS record once device deployed over DFU

Hello,

 

I am using nRF52840, SDK_16.0.0, SoftDevice S140 V7.0.1 and Segger for flashing the image. I am using ‘ble_app_blinky’.

 

Assume I have one FDS record. With this binary, we released devices to field.

Later we want to add few more FDS records. We will generate new DFU package with increased FDS records.

Using DFU will there be impact in case:

 

1) Without changing number of pages FDS_VIRTUAL_PAGES, if I just increase number of records and do DFU will there be any issues.

2) How about changing number of pages FDS_VIRTUAL_PAGES.

Will it cause any problem in re-constructing the FDS records after device reset.

 

Thanks & Regards

Vishnu Beema

Parents
  • Hi,

    Assume I added one FDS record in my application. With this I released my device to field and getting used by customer.

    /* A record containing dummy configuration data. */
    static fds_record_t const m_dummy_record =
    {
        .file_id           = CONFIG_FILE,
        .key               = CONFIG_REC_KEY,
        .data.p_data       = &m_dummy_cfg,
        /* The length of a record is always expressed in 4-byte units (words). */
        .data.length_words = (sizeof(m_dummy_cfg) + 3) / sizeof(uint32_t),
    };

    Assume after a year, we want to store one more record as below in same application. Now latest application with 2 records will be loaded into the customer device which is already in filed (Flashing latest image using DFU).

    /* A record containing dummy configuration data. */
    static fds_record_t const m_dummy_record1 =
    {
        .file_id           = CONFIG_FILE,
        .key               = CONFIG_REC_KEY1,
        .data.p_data       = &m_dummy_cfg1,
        /* The length of a record is always expressed in 4-byte units (words). */
        .data.length_words = (sizeof(m_dummy_cfg1) + 3) / sizeof(uint32_t),
    };
    

    So in this case will it cause any problem after loading latest application via DFU. Whether both records be constructed and maintained properly.

    Thanks & Regards

    Vishnu Beema

Reply
  • Hi,

    Assume I added one FDS record in my application. With this I released my device to field and getting used by customer.

    /* A record containing dummy configuration data. */
    static fds_record_t const m_dummy_record =
    {
        .file_id           = CONFIG_FILE,
        .key               = CONFIG_REC_KEY,
        .data.p_data       = &m_dummy_cfg,
        /* The length of a record is always expressed in 4-byte units (words). */
        .data.length_words = (sizeof(m_dummy_cfg) + 3) / sizeof(uint32_t),
    };

    Assume after a year, we want to store one more record as below in same application. Now latest application with 2 records will be loaded into the customer device which is already in filed (Flashing latest image using DFU).

    /* A record containing dummy configuration data. */
    static fds_record_t const m_dummy_record1 =
    {
        .file_id           = CONFIG_FILE,
        .key               = CONFIG_REC_KEY1,
        .data.p_data       = &m_dummy_cfg1,
        /* The length of a record is always expressed in 4-byte units (words). */
        .data.length_words = (sizeof(m_dummy_cfg1) + 3) / sizeof(uint32_t),
    };
    

    So in this case will it cause any problem after loading latest application via DFU. Whether both records be constructed and maintained properly.

    Thanks & Regards

    Vishnu Beema

Children
No Data
Related