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

What should I start in order to use the maximum memory space in fstorage?

Hello everybody, 

I just started using fStorage. When I examine the example, it starts from write address 0x3e000.

err_code = nrf_fstorage_write(&fstorage, 0x3e000, m_hello_world, sizeof(m_hello_world), NULL);
APP_ERROR_CHECK(err_code);

Q-1 How is this write address determined?

Q-2 For example, when I write12 bytes data, what should I start with the next write address?

Thank you.

Parents Reply
  • Should it be Const?  Because I am trying to save the data from nus_data. The variable type here is uint8_t * p_data (Not const) as you know.

    Also I tried this one;

    static uint8_t const m_deadbeef[10] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x10};

    and Writing has not occurred. 

    static uint8_t const m_deadbeef[8] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08}; is working

    static uint8_t const m_deadbeef[10] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x10}; is not working

    I have not changed anything(except m_deadbeef size) . Pretty odd! . 

Children
No Data
Related