Skip to main content
User16669512935851271792
Associate III
November 3, 2022
Solved

Flash Memory HAL Drivers for Read and Write in stm32wb55 series.

We need dedicated drivers for Flash memory Read and Write operations dedicatedly. In example project given the just Read a 32-bit word data only. If we want to read the entire page or part of the page data and verification is there any driver layer available, please share to us.

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
November 9, 2022

Hello,

You can look BLE_RfWithFlash example which allow to erase and write a number of flash sector configurable in app_conf.h file.

Best Regards

6 replies

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
November 9, 2022

Hello,

You can look BLE_RfWithFlash example which allow to erase and write a number of flash sector configurable in app_conf.h file.

Best Regards

User16669512935851271792
Associate III
November 22, 2022

Hi Remy,

We have Started using the BLE_RfWithFlash example code in my project. While using this code, it is hanged at below function.

void UTIL_SEQ_WaitEvt(UTIL_SEQ_bm_t EvtId_bm)

while ((EvtSet & EvtId_bm) == 0U)

 {

   UTIL_SEQ_EvtIdle(wait_task_idx, EvtId_bm). and it is not coming out from this loop.

 }, EvtSet value is always zero only.

we have added the flash_driver.c file to my project and I am able to integrate the code. But while execution we are getting the above issue.

Apart from the flash_driver.c file, we need to do any other changes in terms of configuration settings and sequencer related changes.

Regards,

Srinivas.V

Remy ISSALYS
ST Technical Moderator
November 30, 2022

Hello,

The CPU2 will prevent all flash activity (write or erase) in all cases when the BL RF Idle is shorter than 25ms. If your connection interval is shorter than 25 ms, you can't perform flash activity, maybe that's why you are hanged in WaitEvt function.

Best Regards

User16669512935851271792
Associate III
November 9, 2022

Hi Remy,

Thanks for your reply. It is very much helpful to us to write a Flash application.

Regards,

Srinivas.V