- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone have an example of how to use CY_SECTION(".cy_sflash_user_data") to prepopulate SFLASH User data?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if I get what you mean.
You can locate your data into CY_SECTION(".cy_sflash_user_data") in firmware. The target data would be programmed into device with the hex file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This section is used to store user data. However, it does not mean you can use this section freely.
The specific allocation for this section is listed in cydevice_trm.h, where only the rows marked with CYREG_SFLASH_USER_FREE_ROWx can be used for user data, especially when BLE functionality is enabled in your application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, my question wasn't clear. I meant is there a way to prepopulate usable sflash rows at programming time? I'm able to read/write programmatically to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you tell more details about the meaning of "prepopulate usable sflash rows at programming time"? What kind of data you want to store in sflash?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We use the user rows of SFLASH to store our device's configuration. I was hoping there was a way to flash our devices 'default config' during programming.
Thanks for your time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if I get what you mean.
You can locate your data into CY_SECTION(".cy_sflash_user_data") in firmware. The target data would be programmed into device with the hex file.