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

nRF52832 Bootloader at end of Flash memory

Hello,

In below link, I am bit confused between “With bootloader” and “Without bootloader”. What for this bootloader.

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_fstorage.html

 

But as per SoftDevice Memory usage, I am seeing only “Master Boot Record”.

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_fstorage.html

 

I want to write data records into Flash. To be safe side I am trying to understand what for “Bootloader” at end of Flash, so that I don’t what to corrupt. Also I loaded “ble_app_blinky” (ble_peripheral) and in Memory layout I am not seeing any Bootloader at end of Flash.

Thanks & Regards

Vishnu Beema

Parents Reply Children
  • Hi,

    In my code I am using both "Flash Storage" and "Flash Data Storage".

    1) Assume there is no boot loader, but as part of nrf_fstorage_init(), in 'fstorage' we give start & end address of Flash. Whether this will reserve flash between Start & End.

    2) Assume start & end in fstorage as 96th page start address and 128th page End address. Later if I initialize fds_init() whether data records are stored below 96th page or it will overlap fds records with fstorage.

    Thanks & Regards

    Vishnu Beema

  • 1) 

    Whether this will reserve flash between Start & End.

    That is where in flash that instance of fstorage will store data. BUT, fstorage makes no effort to ensure that different instances operate on non-overlapping flash memory regions. It is up to the users to ensure that their usage of the module does not disrupt others'.

    2) Assume start & end in fstorage as 96th page start address and 128th page End address. Later if I initialize fds_init() whether data records are stored below 96th page or it will overlap fds records with fstorage

    Yes, you will get overlap. The fstorage instance that fds uses as backend will not be aware of the other fstorage instance.(FDS will by default use the 3 last pages(FDS_VIRTUAL_PAGES) in this case.)

  • Thank you for your inputs.

    Yes, its getting overlapped. I tested and I am getting FDS_ERR_NO_SPACE_IN_FLASH error.

Related