add demo-flashing method [version 2.0]