KESTREL_LOG("\n[WARNING] Program failed at address 0x%08x (flag status 0x%02x)! Retry limit reached, aborting write to location.\n",flash_address,flag_status_register);
retry_operation=0;
retry_count=0;
retcode=-1;
}
#if (WITH_ZEPHYR)
if(retry_operation)
{
// Give the Flash device some time to recover / flush data