For gdbserver, use the same initialization sequence like for flashing