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

PSTORAGE_DATA_END_ADDR in examples

Hi, In examples of SDK 11.0, I see two different defines PSTORAGE_DATA_END_ADDR.

#define PSTORAGE_DATA_END_ADDR      ((PSTORAGE_FLASH_PAGE_END - 1) * PSTORAGE_FLASH_PAGE_SIZE)
#define PSTORAGE_DATA_END_ADDR      (PSTORAGE_FLASH_PAGE_END * PSTORAGE_FLASH_PAGE_SIZE)

Which is the correct one?

Related