This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

flash write problem

Dear Nordic guy, I'm developing with nrf51822. I have one question regarding flash write. In ble connected state,I have some error to write some data to flash. I want to write some data to flash. I describe detail reproducing step 1)in ble state, write some data with page write function 2) at master control panel app with phone , no problem exits. but when my device communicate with master control panel pc window version with usb ble dongle, pc program take the hci link loss event and my device reset. 3) I guess that pc program is correct and phone app is incorrect. I guess that when page write in connected state(radio active?),ble stack maybe goes to watchdog state, and finally, device reset caused by time ,and pc program take hci link loss event caused by device reset. 4) If my guess is correct, do you have any idea? idea is that correctly flash write in connected state. If it's impossible,please inform me.

Parents
  • Hi Hijeon,

    It would be hard to say what cause the issue without knowing your code. Which S110 softdevice you used ? As you may already know the current S110 (v6.x) provides the flash writing and erasing API so that the issue that CPU blocking period when performing flash writing/erasing would not collide the BLE activity.

    The issue you observed that there behaviour are different between the MCP app on the phone and the MCP on PC, maybe resulted from the fact that the connection interval on the phone maybe longer, and it's enough time for the flash writing process without crashing the BLE connection.

    If you are using S110 v5.x you should use the Radio Notification to avoid collision when writing to flash.

Reply
  • Hi Hijeon,

    It would be hard to say what cause the issue without knowing your code. Which S110 softdevice you used ? As you may already know the current S110 (v6.x) provides the flash writing and erasing API so that the issue that CPU blocking period when performing flash writing/erasing would not collide the BLE activity.

    The issue you observed that there behaviour are different between the MCP app on the phone and the MCP on PC, maybe resulted from the fact that the connection interval on the phone maybe longer, and it's enough time for the flash writing process without crashing the BLE connection.

    If you are using S110 v5.x you should use the Radio Notification to avoid collision when writing to flash.

Children
No Data
Related