UDOObuntu Serial Problems

Discussion in 'General Discussion' started by dantavious, Jul 13, 2014.

  1. dantavious

    dantavious New Member

    Joined:
    Nov 29, 2013
    Messages:
    32
    Likes Received:
    0
    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 = "";
    }
    
     
  2. emrebektas

    emrebektas New Member

    Joined:
    Jan 27, 2014
    Messages:
    19
    Likes Received:
    4
    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.
     
  3. dantavious

    dantavious New Member

    Joined:
    Nov 29, 2013
    Messages:
    32
    Likes Received:
    0
    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.
     
  4. dantavious

    dantavious New Member

    Joined:
    Nov 29, 2013
    Messages:
    32
    Likes Received:
    0
    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?
     
  5. gionji

    gionji Member

    Joined:
    Jun 28, 2013
    Messages:
    38
    Likes Received:
    0
    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
     
  6. dantavious

    dantavious New Member

    Joined:
    Nov 29, 2013
    Messages:
    32
    Likes Received:
    0
    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?
     
  7. delba

    delba Administrator Staff Member

    Joined:
    May 8, 2013
    Messages:
    1,064
    Likes Received:
    9
    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.
     
  8. dantavious

    dantavious New Member

    Joined:
    Nov 29, 2013
    Messages:
    32
    Likes Received:
    0
    Hi,
    Is there an update on this significant problem?
     
  9. emrebektas

    emrebektas New Member

    Joined:
    Jan 27, 2014
    Messages:
    19
    Likes Received:
    4
    hi dantavious, String problem has been solved. I can use udoo's arduino software without any error. :=)
     
  10. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    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.
     

Share This Page