Warning:uploading clean firmware failed

Discussion in 'UDOO NEO' started by klakier2121, Dec 7, 2015.

  1. klakier2121

    klakier2121 Member

    Joined:
    Dec 5, 2015
    Messages:
    48
    Likes Received:
    15
    Hello when i try to compile any program i get:
    /usr/bin/udooneo-m4uploader: line 78: 14684 Bus error $up "$FW_CLEAN" 2>&1 warning: uploading clean firmware failed

    How to solve this problem?
     
  2. ddewaele

    ddewaele Member

    Joined:
    Dec 2, 2014
    Messages:
    48
    Likes Received:
    11
    I'm getting these from time to time

    Code:
    /usr/bin/udooneo-m4uploader Blink/Blink.cpp.bin
    /usr/bin/udooneo-m4uploader: line 78:  1923 Bus error               $up "$INPUT" 2>&1
    Only solution for now is to power toggle the board
     
  3. klakier2121

    klakier2121 Member

    Joined:
    Dec 5, 2015
    Messages:
    48
    Likes Received:
    15
    Now I have:
    Code:
    /usr/bin/udooneo-m4uploader: line 78:  3134 Bus error               $up "$INPUT" 2>&1
    flash: uploading input firmware failed
     
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    In this case the first suggestion is to reboot the board. After rebooting does it still give you problems?
     
  5. klakier2121

    klakier2121 Member

    Joined:
    Dec 5, 2015
    Messages:
    48
    Likes Received:
    15
    Yes after reboot is ok, but when i use SerialPort in arduino sketch it shows again. I have another problem which is connected with previous problem. I have example program:
    Code:
    
    int ledPin = 13;
    
    void setup()
    {
      //Create Serial Object
      Serial.begin(9600);
      pinMode(ledPin, OUTPUT);
    }
    
    void loop()
    {
      //Have the arduino wait to receive input
      while (Serial.available() == 0);
      //Read the Input
      int val = Serial.read() - '0';
      if (val == 1)
      {
        Serial.println("Led is On");
        digitalWrite(ledPin, HIGH);
      }
      else if (val == 0)
      {
        Serial.println("Led is Off");
        digitalWrite(ledPin, LOW);
      }
      else
      {
        Serial.println("Invalid!");
      }
      Serial.flush();
    }
    

    When i write something in Serial Monitor nothing happen. Then when i upload next sketch, SerialMonitor once reads the value which i wrote. I dont know what i am doing wrong.
     
    Last edited: Dec 9, 2015
  6. klakier2121

    klakier2121 Member

    Joined:
    Dec 5, 2015
    Messages:
    48
    Likes Received:
    15
    writing to /dev/ttyMCC is updated every reboot or what ?
     
  7. klakier2121

    klakier2121 Member

    Joined:
    Dec 5, 2015
    Messages:
    48
    Likes Received:
    15
    Ok, i solved this problem :) My arduino program was wrong :)
     
  8. jrullan

    jrullan New Member

    Joined:
    Dec 11, 2014
    Messages:
    28
    Likes Received:
    4
    @klakier2121 Do you mind telling us what was wrong?
    I have the same problem and I can't see what is wrong in my code.
     
  9. klakier2121

    klakier2121 Member

    Joined:
    Dec 5, 2015
    Messages:
    48
    Likes Received:
    15
    I compiled this example program :
    Code:
    // the setup function runs once when you press reset or power the board
    int led = 13;
    int l;
    
    void setup() {
      // initialize digital pin 13 as an output.
      pinMode(led, OUTPUT);
      Serial.begin(115200);
    }
    
    // the loop function runs over and over again forever
    void loop() {
    
    if(Serial.available() > 0)
    {
    l = Serial.read() - '0';
    
      if(l == 1)
      digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
    
     if(l == 0)
      digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
    
    }
    }

    and then I run command
    Code:
    minicom -D /dev/ttyMCC
    when you will wrire 1 or 0, led will flash or not
     
  10. Watson

    Watson New Member

    Joined:
    Jun 30, 2016
    Messages:
    1
    Likes Received:
    0
    Hi,
    I'm still having this problem, the reboot do not help. I'm trying to compile my code directly to the M4 core
    (using the NXP's FreeRTOS BSP). I have a simple led blinking example which uses the GPIO_105
    (GPIO4_09) and I don't use any serial port. Does anyone know where should I look for the problem?

    Code:
    udooer@udooneo:~/vd1209/m4$ udooneo-m4uploader -v blinking_imx_demo_epit_imx6sx_ai_m4.bin
    FILENAME = /boot/m4clean.fw; loadaddr = 0x847c0000
    start - end (0x84780000 - 0x84800000)
    FILENAME = blinking_imx_demo_epit_imx6sx_ai_m4.bin; loadaddr = 0x1fff0000
    start - end (0x1ff80000 - 0x20000000)
    /usr/bin/udooneo-m4uploader: line 86:  1538 Bus error               $up "$INPUT" 2>&1
    flash: uploading input firmware failed
    
     

Share This Page