- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see this assignments :
#define USER_SFLASH_ROW_SIZE (128u) // SFlash row size for 128KB flash BLE device.
#define USER_SFLASH_ROW0_ADDRESS (0x0FFFF200u) /* Starting address of Row0 user SFlash row for 128KB PSoC 4 BLE device */
and comment that first 6 bytes is used for storing of BLE address so I need start from 0x0FFFF200u + 6 ?
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SFLASH can be written only row-wise. As first 6 bytes of row 0 can be used for BLE public device address, it is recommended that you write from row 1 onwards. You can use the API CySysSFlashWriteUserRow for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SFLASH can be written only row-wise. As first 6 bytes of row 0 can be used for BLE public device address, it is recommended that you write from row 1 onwards. You can use the API CySysSFlashWriteUserRow for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You want to say that because you used 6 bytes in row 0 I can`t use it ? What a function use it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are not really concerned about the device address which is used for advertising, then you can use Full Row 0 also for your custom data. During production, if you want to give individual address to each device, then that can also be done using SFLASH update tool.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I asked What a function use this memory ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SFLASH can be used for loading the BLE public device address. See line no: 1557 in CYBLE_eventHandler.c file:
if(CyBle_IsDeviceAddressValid(cyBle_sflashDeviceAddress) != 0u)
{
(void) CyBle_SetDeviceAddress(cyBle_sflashDeviceAddress);
------------------------------------------------------------------------
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks !