Keep_alive() was not invoked in the 1000 ms timelimit. Haven't made progress in mpsse_flush()


DEBUG CONSOLE output this warn message:

Warn : Haven't made progress in mpsse_flush() for 4012ms.
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1025 ms). Workaround: increase "set remotetimeout" in GDB

how to avoid this? where to put the command “set remotetimeout ***”?

Does the delay make the board go into a low power sleep mode?

No, board in normal running state.

There are multiple versions of this question but no clear answers. Why is this? Surely someone know how to do it?