add memory debugging feature
add stm32f4 sample code and config