DSPS can not write eeprom after extened sleep

3 posts / 0 new
Last post
airjang
Offline
Last seen:2 years 11 months ago
Joined:2015-09-06 05:07
DSPS can not write eeprom after extened sleep

Hi Dialog friends,
I am now developing DA14580 with DSPS example.After DA14580 entered into extened sleep model,I conntected it and made some data transfers via iPhone.DA14580 would write these datas into eeprom after receving it.However,i found data cound not be written into eeprom successfully.If i configure DA14580 into active model instead of extend sleep model,data would be written into eeprom successfully.
My problem is
1.According to my understanding,DSPS would wake up when making data transfer with iPhone, but why data can not be written into eeprom at this moment?
2.i also tried to add code below:
app_disable_sleep();
peripheral_init();
still no effect. what else should i do before writing data into eeprom?

Device:
MT_dialog
Offline
Last seen:6 days 13 hours ago
Staff
Joined:2015-06-08 11:34
Hi airjang,

Hi airjang,

最可能的原因是,当你试图write data the da is asleep, if you have to perform transactions over i2c you have to keep the da awake in order to complete the i2c transactions and then activate the sleep mode. When you invoke the app_disable_sleep() can you see if your da indeed stays awake until the transaction is complete (from smart snippets) ? Perhaps later on in execution a module invokes app_set_extended_sleep().

Thanks MT_dialog

airjang
Offline
Last seen:2 years 11 months ago
Joined:2015-09-06 05:07
Now problem solved,GPIO

Now problem solved,GPIO intial and peripheral initial must be done after wake up!

Topic locked