fix the bug of vsprintf
change the default isr code
add memory size test code
restore flags after memory test.