add demo-flashing method [version 3.0]