This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to enable page aligned? when I want store more than 1024 bytes?

Hi,

I'm using nrf51822 and SDK 6.1.

devzone.nordicsemi.com/.../

I learned how to store data with using pstorage library. but I can't register block more than 1024 bytes. (block size * block count)

but above link's sample code does store mode data than 1024 bytes. and it's saying "Also, when registering for more than a single page, registered blocks must be page aligned."

What does this mean and how?

Thanks.

Parents
  • you can have more than page (1024 bytes) of memory if you choose PSTORAGE_MAX_APPLICATIONS to the required value. The value of memory pstorage will allocate for your application is PSTORAGE_MAX_APPLICATIONS number of pages.

    NOTE: PSTORAGE_MAX_APPLICATIONS is rename to PSTORAGE_NUM_OF_PAGES in SDK9.0

    And about the page aligned. I think @RK answer that to you here

Reply
  • you can have more than page (1024 bytes) of memory if you choose PSTORAGE_MAX_APPLICATIONS to the required value. The value of memory pstorage will allocate for your application is PSTORAGE_MAX_APPLICATIONS number of pages.

    NOTE: PSTORAGE_MAX_APPLICATIONS is rename to PSTORAGE_NUM_OF_PAGES in SDK9.0

    And about the page aligned. I think @RK answer that to you here

Children
No Data
Related