Hello, It seems that something is wrong with UDOObuntu's serial functions on the Due. I am able to execute the following code on an Arduino Mega with no problems while the UDOObuntu v 1.0 image does not work. Not sure what the problem is but I just wasted two days trying to figure out why it would not work. It is a weird problem because most serial functions work. Please help me out with this. The script is list below for testing purposes. Code: const int LED=13; String IncomingData; //Echo every character char data; //holds incoming character void setup() { Serial.begin(115200); //Serial Port at 9600 baud pinMode(LED, OUTPUT); } void loop() { if ( Serial.available() > 0 ) { while (Serial.available() > 0 ){ IncomingData +=char(Serial.read()); Serial.println(IncomingData); delay(50); } if (IncomingData == "test"){ digitalWrite(LED,HIGH); delay(1000); digitalWrite(LED,LOW); } } IncomingData = ""; }
I also have same problem. Main problem is String variables. When you declare String, DUE side is freeze and can not work. Below code is simple but not work on udoo because of String variables. Code: String emre="udoo"; void setup() { Serial.begin(9600); } void loop() { Serial.println(emre); delay(1000); } You can upload the same code from external computer until udoo team solve this problem.
Thanks for the reply. The UDOO team responded very quickly and advised that: I will just use my laptop to upload so that I wont have to change the code once the fix is applied.
UDOO Team, I cant believe that after 5 months this problem has not been resolved. Programming the micro-controller directly from the LINUX side, is one of, if not, the biggest selling point of this board. I was originally told that a fix would be coming shortly with an UDOOBuntu update and still this problem persists. Does the UDOO Team not value this functionality?
Hi, this is a hard issue unfortunately. We need to explore gcc compiler sources and try to correct the problem there. It's difficul to extimate a timeline for this kind of issues. We hope to solve it in our next releases. Regards
This was said five months ago as well. Has there been any progress? If the Arduino side does not function properly then you should stop marketing it as having an Arduino Due. There is no good reason why this problem has persisted for so long from a commercial company. I expected to use this product the same way I could interface with an DUE. Since I can not, this seems reason enough for money back. Thoughts?
We're working on releasing a new version of UDOObuntu (after the winter break) with the Arduino IDE 1.5.8. I hope it will solve the problem.
hi dantavious, String problem has been solved. I can use udoo's arduino software without any error. :=)
Hi there dantavius, the Arduino IDE for ARM has actually this problem. You can programm the SAM3X8E from the outside, like you would do with the DUE. By the way, Arduino works perfectly, it's our compiler that present this limitation, which is the same problem you would encounter with every Arduino IDE for ARM.