Serial flash, command loop in the applet