Hi,
First of all sorry for the late replay.
There isn't an specific time for this, as far as I see, sometimes is used 3000 ms or 5000 ms, but this will be depending of your application.
The think that I found strange is that the code is getting stuck, which version of LPCOpen are you using and which MCU?
Best Regards,
Alexis Andalon