[SOLVED] problem with downloading arduino code from external pc

Discussion in 'UDOO NEO' started by bhongtip, Nov 1, 2016.

Thread Status:
Not open for further replies.
  1. bhongtip

    bhongtip New Member

    Joined:
    Nov 1, 2016
    Messages:
    4
    Likes Received:
    0
    when I download arduino code into UDOOneo, it report as the attached photo

    is there anybody know how to fix this?
     

    Attached Files:

  2. knick

    knick New Member

    Joined:
    Nov 1, 2016
    Messages:
    29
    Likes Received:
    8
    I also have this problem. It keeps saying "UDOONeo M4 Sketch STOP failed: reboot system !" Rebooting doesn't fix it. I'm very interested to see if anyone can help with this.
     
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    What OS (Mac/Windows/Linux) is your PC?
    What Udoobuntu version is your Neo running on?

    Edit: Did you reboot the PC or the Neo? The Neo should be rebooted.
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Can you try doing the following on the Neo in a Terminal window if it still fails:
    Code:
    rm /var/opt/m4/m4last.fw
    sudo reboot
     
  5. knick

    knick New Member

    Joined:
    Nov 1, 2016
    Messages:
    29
    Likes Received:
    8
    I am running Windows 10 on my pc, and on the neo I'm running the latest udoobuntu (downloaded yesterday).

    I've tried resetting both the pc and the neo. I've also tried the command sequence as you suggested. Still no joy.
     
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Do you see file /var/opt/m4/m4last.fw change on the Neo?

    Did you try to reinstall the board manager on the Arduino IDE?

    It is a strange phenomenon that you both report. We just tested this feature for other reasons and did not see this error at all.
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    With internal Arduino IDE on the Neo itself it is working (select device port /dev/ttyMCC)?

    Did you leave the device port on the IDE on the PC empty?
     
  8. knick

    knick New Member

    Joined:
    Nov 1, 2016
    Messages:
    29
    Likes Received:
    8
    /var/opt/m4/m4last.fw does not exist. This folder is empty. The first time I ran 'rm /var/opt/m4/m4last.fw' it deleted the file. Since then the folder has been empty - even after I try to upload/run my sketch.

    I just tried reinstalling the board manager, and re-selecting the board 'Udoo Neo (Cortex M4)'. The problem is still there.
     
  9. knick

    knick New Member

    Joined:
    Nov 1, 2016
    Messages:
    29
    Likes Received:
    8
    I get the same error when using the internal Arduino IDE. I've attached the screenshot.

    Do you mean the Tools > Port setting in the Arduino IDE? I have this set to COM99. Previously I was using this for printing debugging info to the Serial Monitor window. It was working ok. I just tried changing it to COM1 to see if it changes anything but the error is still the same.
     

    Attached Files:

  10. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    That you have this issue also on the Neo internal IDE is very strange. That always works. Did you change anything on your configuration or do you use it from a clean udoobuntu install?

    Else we have to wait on a reaction from one of the Udoo team members.....
     
  11. knick

    knick New Member

    Joined:
    Nov 1, 2016
    Messages:
    29
    Likes Received:
    8
    I'm using a clean Udoobuntu install. I haven't changed the configuration.

    Thanks for your help so far. Hopefully one of the Udoo team members has some ideas, because I'm stuck :/
     
  12. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    Hi knick. Could you post the sketch code so we can try to reproduce the bug?
     
  13. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Ah, could it be a problem in the sketch? Perhaps try it first with a standard example that always compiles and has no libraries. Try Blink. If that works it has to be the sketch.

    @bhongtip you also still have issues?
     
  14. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
  15. knick

    knick New Member

    Joined:
    Nov 1, 2016
    Messages:
    29
    Likes Received:
    8
    I found a line in my code that seems to be causing the issue. I was calling Serial0.begin(..) in an object constructor, rather than in the setup() function. After moving the call to setup() the issue is gone.

    The thing that threw me is that previously I couldn't get anything to run - not even an empty sketch. Once I was able to get a sketch to run again it wasn't hard to track down the issue in the code.
     
    wertiti and waltervl like this.
  16. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Then I'm closing the topic. In case the issue is not solved send me a message please, and I'll reopen the topic.
     
Thread Status:
Not open for further replies.

Share This Page