标题: NXP LPC1768 Error: L6915E:Library reports error: __use_no_semihosting was req... [打印本页]

作者: cainiaoPNR    时间: 2016-3-23 21:47
标题: NXP LPC1768 Error: L6915E:Library reports error: __use_no_semihosting was req...
.\output\LPC1768_APP.axf: Error: L6915E: Library reports error: __use_no_semihosting was requested, but a semihosting fgetc was linked in
只是因为程序中加入了char c; c=getchar();
去掉getchar();就没这个错误了,有人遇到过吗,该怎么解决,求指点,谢谢。
作者: baocong2019    时间: 2020-5-25 15:45
同问,遇到了同样的问题
作者: shy111    时间: 2020-6-14 16:35
老哥解决了么

作者: 2537274979    时间: 2021-8-11 18:12
shy111 发表于 2020-6-14 16:35
老哥解决了么

在重定向文件里加
_ttywrch(int ch)
{
        ch = ch;
}

或者勾选“Use MicroLIB”
作者: Hephaestus    时间: 2021-8-12 16:00
别用getchar不就行了吗?semihosting太慢了,我都是用jlinkrtt取代的。




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1