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

pstorage_size_t is short or int?

From SDK 7.2, we have the following definitions:

components\drivers_nrf\pstorage\config\pstorage_platform.h

typedef uint16_t pstorage_size_t; /** Size of length and offset fields. */

examples\dfu\bootloader\config\pstorage_platform.h

typedef uint32_t pstorage_size_t; /** Size of length and offset fields. */

I would think my bootloader and application should share the same code, so I'm confused why there are different definitions of this type.

Can someone explain why these differ?

Related