main.c(32): warning: #1-D: last line of file ends without a newline 这个是由于在main函数的“}”后,没有加回车. 只要在main函数的“}”后加回车键,此警告信息即可消除. C4056E type of input file 'xxx' unknown 经排查这个错误是MDK不支持路径名中带空格引起的,具体是Include文件夹中带了空格的路径 改过名字后就可以编译了 用ST-LINK调试下载:klie5设置
一. Warning C4819:The file contains a character that can ot be represented in the current code page(936). save the file in unicode format to prevent data loss. 中文意思是:该文件包含不能在当前代码页中表示的字符,请将文件保存为Unicode格式,以防止数据丢失. 一般来说,这个警告没有什么影响.要想去掉这个警告的方法有: (1)转换Code