Hello, I imported a BLE firmware update protocol from another project that I have and I'm having some problems regarding flash write and erase. The protocol basically store the data that came from bluetooth in RAM code and in main loop it tries to store it in flash. This process repeats itself a lot of times and in the middle of it I always lose connection with the host. When I try it without the flash_erase_sector and flash_write_page it works perfectly. I'm using the SDK V3.4.2.1_Patch_0001 for tlsr8251 Bluetooth LE Single Connection. Can someone help me?
TLSR8251 Scan response not being received |
TLSR8251 Discovery BLE for peripheral devices |
Hi gugagop,
We have A-B sector design for OTA fw and running fw. Usually we do old fw erase after a power cycle or a deep sleep back, because it will cost a lot of time which could compromise the ble connection.
We changed a little bit the protocol to erase at the begging of the connection. But I still fill that the firmware is crashing sometimes in the middle. We have a 2 minutes watchdog, but when it crashes, the watchdog doesn't work. Any idea on what is going on?
Actually I already figured it out. I was having an issue regarding timer interruption and when combined with the flash write function it was crashing the firmware. But now, everything works fine. Thank you!