Hi
What SDK are you using exactly? I think it's not recommended to do flash operation inside interrupts like this, especially in applications with the SoftDevice, since the SoftDevice has higher priority than most other peripherals/functions and may at any time interrupt operations like this to do something time critical.
Best regards,
Simon
Hi Simon,
Almost solved my issue, i have one question:
is that possible to disable softdevice inside an ISR and then can use SD_FLASH_ERASE function? if possible, how is that with a tested case please.
my best
No, that's not possible. SD_... functions are SoftDevice functions that the SoftDevice calls and manages, so disabling the SoftDevice won't let you use any of these functions. I don't see how it makes sense to disable the SoftDevice in the middle of your application at all, and I do not recommend doing so.
Best regards,
Simon