在CCS新建工程后默认是
printf_support=minimal
然后弄一个printf,sprintf就会编译报错
Description Resource Path Location Type
#2631 Conversion f not allowed in printf_support=minimal mode hello.c /app line 189 C/C++ Problem
需在要Properties->Build->MSP430 Complier->summary of flags set中修改
printf_support=full
编译就可以了