Hi Dialog
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);
#endif
I do not know what is the issue and which are the interrupts the code is talking about?
Keywords:
Device:
Hi mahmed106,
This sounds like the scheduler is running, with interrupts disabled. Since the primask is 1, this means that you missed to enable interrupts. Additionally, are you using any of the sleep modes?
Thanks, PM_Dialog
I m using normal extended sleep mode.
Which interrupts i missed, and how should i enable it . Because my code is running fine without eeprom read, Only when i attempt to read eeprom with sequential read then this issue occurs
Hi mahmed106,
Let me check it and I’ll get back to you. In the meanwhile, could you please probe the I2C lines and share a screenshot?
Thanks, PM_Dialog