gui: Reset CPU before uploading code

Signed-off-by: Michael Buesch <m@bues.ch>