basic flash writer function test done.

Signed-off-by: cctsao1008 <chiacheng.tsao@gmail.com>