We are working on a custom board based on DA14681 and sdk is 1.0.14. We are using an i2c based eeprom M24M02-A125 with DA14681. Single read write is fine but when i read data form flash in a loop very frequently, it stucks randomly. When i opened the debug it was stuck in file port.c and at this point.
#if (dg_configIMAGE_SETUP == DEVELOPMENT_MODE)
/* If the code stops at this point then the interrupts were enabled while they
* shouldn't be so.
primask = __get_PRIMASK();
ASSERT_WARNING(primask == 1);
I do not know what is the issue and which are the interrupts the code is talking about?