Soft Currie didn't start at power on ?

Discussion in 'UDOO X86' started by TGo1, Feb 12, 2018.

  1. TGo1

    TGo1 New Member

    Joined:
    Jan 3, 2018
    Messages:
    26
    Likes Received:
    0
    Hi all,
    When i power up my UDOO ULTRA, the currie soft don't start.
    I have to launch the arduino IDE then the terminal for this app to start.
    I think there is a solution to correct this?
    Thanks for your answer.
    Thierry
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    What dou you mean with Curie Soft? What kind of App is that?

    Do you mean that the sketch you have loaded before to the curie is not running after a start or restart/reboot of the complete Udoo X86?
    Not running can be related to your arduino sketch so we have to rule that out first. If this is the case what happens if you load the blink example to the Curie (simple program, just flashes build in LED) and restart the Udoo?
     
  3. TGo1

    TGo1 New Member

    Joined:
    Jan 3, 2018
    Messages:
    26
    Likes Received:
    0
    Yes, the sketch I have loaded before to the curie is not running after a start or restart/reboot of the complete Udoo X86.
    In fact, after others tests, I realize that if I run an exe on braswell, the arduino starts !!!
    I test with blink example asap.
     
  4. TGo1

    TGo1 New Member

    Joined:
    Jan 3, 2018
    Messages:
    26
    Likes Received:
    0
    I just tested with BLINK program and it working after a OFF then ON power !!!
    Here is the beginning of my sketch :
    Code:
    void setup() {
      Serial.begin(9600);   //  initialize Serial communication
      while (!Serial);        //  wait for the serial monitor to open
    
    May be is it use to put :
    Code:
      delay(5000);
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Your sketch is doing what you programmed it to do: wait until the serial device is monitored on the Braswell side (line 3 of your code).
    Monitoring can be done by Arduino IDE serial monitor or an external program.

    Normally this is done to prevent overloading the serial bus. The curie can start much faster than the Braswell part so if you do not wait until the Braswell side is reading and processing the serial bus the curie can send too much data and can lockup everything.
     
    TGo1 likes this.
  6. TGo1

    TGo1 New Member

    Joined:
    Jan 3, 2018
    Messages:
    26
    Likes Received:
    0
    OK,
    I don't know why, but now it's working !!!
    TU
     
    Last edited: Feb 20, 2018
  7. TGo1

    TGo1 New Member

    Joined:
    Jan 3, 2018
    Messages:
    26
    Likes Received:
    0
    In conclusion, it is necessary to read USB port side Braswell before genuino soft side start ...
     
  8. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    But only if you want to send serial data from Arduino to Braswell. Or reprogram the sketch so that it starts doing what it should do (eg reading sensors, switching output etc) but only really send data when Braswell is monitoring for example for debugging:

    Code:
      //Enable this line when debugging only!
      //Having this enabled will mean that the sketch
      //will work only when the Serial window is OPEN!
      debug = false;
      if (debug)
      {
        while (!Serial);
      }
     
    TGo1 likes this.
  9. TGo1

    TGo1 New Member

    Joined:
    Jan 3, 2018
    Messages:
    26
    Likes Received:
    0
    For sure :)
     

Share This Page