add flash code
Merge remote-tracking branch 'origin/test' into test