I took out the interrupts and it the disconnect still happens actually.
Random googling found this:
https://devzone.nordicsemi.com/question/1183/nrf51822-flash-erase-error/?answer=1281#post-id-1281

"If you need to also erase pages while in a connection, you need to make
sure the connection interval is sufficiently long for this to be possible,
i.e. > 21 ms (most likely > (21 ms + some processing time)), and do the
erase right after the radio event. The ble_radio_notification module from
the SDK can be used to get a software interrupt both some time before and
right after an event. If you have further questions on this, or can't get
it working, it might make sense to post it as a separate question."

<https://devzone.nordicsemi.com/users/580/olha/>
In logs, interval advertises as adv_itvl_min=0 adv_itvl_max=0, on
connection logs ive seen both itvl=9 and itvl=12, not sure what that maps
to yet though..



On Thu, Apr 20, 2017 at 1:40 PM, Jacob Rosenthal <[email protected]>
wrote:

> Is it actually necessary to disable interrupts during the flash erase?
> Seems like most hals do it, though maybe not the STM?
>

Reply via email to