编译时候报错..
Library reports error: __use_no_semihosting was requested, but _ttywrch was referenced
上网找了解决方法
在usart.c文件的
_sys_exit(int x)
{
x = x;
}
大约47行后面加入
//__use_no_semihosting was requested, but _ttywrch was
_ttywrch(int ch)
{
ch = ch;
}
即可解决问题
..\code\User_Code\ rt.h(25): warning: #1295-D: Deprecated declaration Test rt - give arg types
deprecated declaration翻译过来就是不赞成的声明方式。
这个warning的原因就是realview mdk不占成参数是空的,空的的时候必须写明void。
即"void test()"会爆warning,而“void test(void)”不会