Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Note: In WICES Smart SDK 2.1.0, the default VS length is 1024; In WICED Smart SDK 1.1.0, the length is 512.
The NVRAM is divided into many pages. The size of page is 32 bytes.
The BLE firmware occupy 4 pages, so the number of the pages left to store record item is
[Total Pages of Record Item] = ([VS Length] / 32) - 4
For example, when VS length is 1024, it has 32 pages, and 28 pages are used to save NVRAM record item.
A NVRAM record item has a 3 bytes header.
Page is the minimum allocation unit of NVRAM. It means that even if the record item’s size (included the header) is less than 32 bytes, it still needs to allocate one page for it. In other word, one record item occupies one page at least. Therefore, the maximum number of record items we can use is equal to total pages of record item as mentioned above.
The formula of allocated page number of a record item is as below:
NVRAM record item is identified by ID. The valid rang for user is 0 – 0x6F. And in WICED Smart SDK, some IDs are used by stack and pre-defined applications as shown in Figure 1. We shouldn’t use these IDs.