Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6

FiBe_4648916
New Contributor II

I have a problem with saving bonding data. When I bond with a peer device I get the CY_BLE_EVT_PENDING_FLASH_WRITE event. Then I try to save the data in Flash using the Cy_BLE_StoreBondingData API. Unfortunately, every time I call this function I have a hard-fault (especially due to the call of Cy_BLE_StoreStackData) ... I can't understand what the problem could be. Has anyone had this problem?

0 Likes
1 Solution
FiBe_4648916
New Contributor II

Hi,

Thanks for the reply. I found the problem:

The (cy_em_eeprom.) section that is used to save the bonding data was not correctly placed in memory.

CY_SECTION(".cy_em_eeprom") CY_ALIGN(CY_FLASH_SIZEOF_ROW) static const cy_stc_ble_flash_storage_t cy_ble_flashStorage ;

View solution in original post

0 Likes
2 Replies
VenkataD_41
Moderator
Moderator

Hi,

Are you using a normal BLE application or OTA-Bootloader-based application? If you are using the normal application, please find the attached peripheral project and see if this works at your side. You can use CySmart mobile application as a central to connect with the peripheral.

If the above application is not working at your side, please attach the project schematic as well as your PSoC Creator project. If it works then please compare the logical flow and follow the same and let us know if you still face the same issue.

Thanks and regards

Ganesh

0 Likes
FiBe_4648916
New Contributor II

Hi,

Thanks for the reply. I found the problem:

The (cy_em_eeprom.) section that is used to save the bonding data was not correctly placed in memory.

CY_SECTION(".cy_em_eeprom") CY_ALIGN(CY_FLASH_SIZEOF_ROW) static const cy_stc_ble_flash_storage_t cy_ble_flashStorage ;

View solution in original post

0 Likes
Top labels