Imp.wakeup(60,test) crashes

60 - It crashes the Imp and doesn’t respond to Run button after 60 seconds. Must disconnect power.
30 - Works as expected, can reboot at any time with Run

function test() {
local s,tt;
s=time();
while(s==time());
tt=hardware.millis()%1000;
server.log(tt);
imp.wakeup(30,test);
}
test();

Maybe this is a better example:

local t;

function initt(){
local s;
imp.enableblinkup(true);
s=time();
while(s==time());
t=hardware.millis()%1000;
}
function inittest(){ //this shows time() drifts about 1ms/min
local s,tt;
s=time();
while(s==time());
tt=hardware.millis()%1000;
server.log(tt-t);
imp.wakeup(60,inittest);
}
initt();
inittest();

Can you reproduce my error with this code?

No: it works for me whatever the duration of the wakeup.

Peter

Tried again. All better. All I can say is that’s it’s not a hardware issue. It was happening just as I described. There was no hardware connected before. Thanks for listening!