xuyaogyo 发表于 2013-7-21 17:03:43

Arduino字符串常量过多好像会导致程序卡死


在写Arduino程序的时候,使用了很多:
Serial.println("log.....");
之类的打印信息的语句,发现用多了之后,Arduino跑着跑着就会卡死不动了。

好像是因为这个问题:

http://www.amobbs.com/thread-5383055-1-1.html

不知道各位有没有遇到过这个问题

swim 发表于 2013-7-21 19:23:18

没有遇到过,也有可能是串口通信不稳定吧

yyy_zc 发表于 2013-7-22 10:28:01

看上去是这个原因,也不排除函数问题,改用Serial.print("log....."); + Serial.print('\n');
页: [1]
查看完整版本: Arduino字符串常量过多好像会导致程序卡死