Skip to main content
Associate II
July 12, 2023
Solved

Spurious BLE disconnection

  • July 12, 2023
  • 2 replies
  • 1194 views

Hi,

I am using two device that are connected one to another with BLE.

The first device is a server.

The second is a routeur.

I detect some spurious disconnection between both device after some random time.

The disconnection error I get is : HCI_CONNECTION_TIMEOUT_ERR_CODE

Do you have any idea what could be the cause and how I could fix it?

The server device writes sometimes into the flash, but it should write on the flash only during specific moments

Thank you in advance

This topic has been closed for replies.
Best answer by Remy ISSALYS

Hello,

Did you follow the algorithm to write/erase data in the flash memory (see figure 10) describes in AN5289? In STM32CubeWB package, BLE_RfWithFlash example demonstrate the capability to erase/write the flash while a Point-to-Point communication using BLE component is active using the flash drive which follow the algorithm.

Best Regards

2 replies

Remy ISSALYS
Remy ISSALYSBest answer
Technical Moderator
July 20, 2023

Hello,

Did you follow the algorithm to write/erase data in the flash memory (see figure 10) describes in AN5289? In STM32CubeWB package, BLE_RfWithFlash example demonstrate the capability to erase/write the flash while a Point-to-Point communication using BLE component is active using the flash drive which follow the algorithm.

Best Regards

Associate II
July 24, 2023

Hi,

Thank you for your reply.
I indeed implemented the algorithm to write/erase data in the flash memory as described in AN5289 and it seemed to solve my problem.

Thank you very much !