Simple program with String variable will make Arduino freeze, source code like below void loop() { String myStr = ""; }
My code like below, Due freeze when i comment variable String recv = "", when I change it to Charactor array like char recv[200];, code will work fine, String recv = ""; void setup(){ Serial.begin(9600); } void loop(){ while (Serial.available()) { char ch = Serial.read(); recv += ch; if (ch = '\n') { Serial.println(recv); } }
Hi, I've got a similar issue with the Due freezing when certain code is included. Did you manage to get to the bottom of what was going on with your issue ?