using sdk13.1 can't write to flash.

while using example buttonless DFU in sdk13.1, writing to flash using flash_word_write() is preventing ble connections, even though ble is advertising.

can anyone help with this please? any quick reply is much appreciated.