Hanging M4 communication makes it hard to develop

Discussion in 'UDOO NEO' started by Maurice, Apr 21, 2016.

  1. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    Over the past few weeks I've asked multiple questions about the stability and compatibility of the Arduino part of the Neo. I'm starting to believe more and more that it is quite unstable and isn't as Arduino compatible as I would like it to be.

    About the stability: I notice that after a 'few', and I don't know how many exactly, USB deployments from an external ide to the M4 the board does not seem to pick up the new program any more. Resetting sometimes helps, sometimes doesn't.

    Each time I reset the board the connection to the board is lost, and I need to re-ssh if I want to keep an eye on the serial output. A very big annoyance.

    Another stablity issue is which I seem to have with my simple 4x7 segment display, I think I should be able to download any Arduino library, and not have to spend my entire day trying to debug a library, nor having the need to dig up the specifications in order to try to create a library of my own.

    Although UDOO Neo has sparked my interest in Arduino programming I would certainly not recommend this board to anyone just starting out with Arduino. The Linux part seems to be okay though.

    Addition: Rebooted the board for multiple times now, removed /var/opt/m4/m4last.fw, re-started Arduino IDE, stood on my head, did a rain-dance, invoked the powers of the universe, but it refuses to even start the 'hello world' (blink led 13).
     
    Last edited: Apr 21, 2016
    kay likes this.
  2. kay

    kay New Member

    Joined:
    Nov 8, 2015
    Messages:
    3
    Likes Received:
    0
    I can confirm the observation of an unstable Arduino operation. My UDOO board freezes about every third time when I upload an Arduino sketch using the local Arduino IDE in the Ubuntu X-Desktop.

    It is very annoying to be forced to reset the whole UDOO frequently to be able to develop and run Arduino sketches. Please improve the Arduino part and give us a stable development environment !!

     
  3. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    @kay, I'm using an Arduino (clone) now too, and the experiences with that are much better. Altough I can use my Neo for a simple project, I think in the future I'm better of using a Arduino (clone) and a separate Linux board such as the Pine 64. Only downside of that is that you have two boards, requiring more space.

    Edit: forget that last specific suggestion:
     
    Last edited: May 17, 2016
  4. sirrab

    sirrab UDOOer

    Joined:
    Jul 26, 2014
    Messages:
    264
    Likes Received:
    32
    It’s relatively easy to pick up a few thousand ARM chips, hire an EE for a month or two to produce a single board computer, and find a contract manufacturer in China. The hard part is getting the software working, getting the documentation together, and fostering a community that isn’t stumbling in the dark trying to get this board to work. This is where the Pine64 fails. The forums are a mess right now, and the comments on the Kickstarter campaign aren’t much better.

    Kinda like here!
     
    sgm and modjo like this.
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Tip: If you have serial print commands in your sketch have the Neo Arduino IDE serial monitor open during compiling.
    It helped me a lot.

    When using an external Arduino IDE (eg on your own PC) then the serial monitor is not working so you have to find another way to be sure Serial print commands are not blocking the serial line. Perhaps start minicom -D /dev/ttyMCC on the Neo?
     
  6. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    @waltervl Unfortunately the 'hanging neo' has no relation with using Serial. I've had numerous hangs in small programs that didn't have any Serial usage at all.
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  8. kay

    kay New Member

    Joined:
    Nov 8, 2015
    Messages:
    3
    Likes Received:
    0
    @Maurice, is this not extremely annoying, buying a combined Linux/Arduino board to get the advantage of analog and digital realtime data capture and control plus a Linux platform to do the high level processing and end up with a malfunctioning device ??? I have several Raspberries and Arduinos in my workshop but I was thrilled by the idea of putting both together with a seamless on board communication, additional sensors, increased precision, Bluetooth and WiFi. I still hope they can fix the problem for the Neo :-(.
     
  9. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    Neither.

    btw, the page you are referring to was put up in response to my customer request. But that is not the solution. The technical support guys will now purchase a display themselves and hopefully find out the problem. Even more, I hope they'll be able to document it so next time it is easier to do so yourself.
     
    waltervl likes this.
  10. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I just compiled and uploaded 10+ times and had no errors. I used my own programs, bare minimal example, blink example, fade example, changed blink example a couple of times.
     
  11. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    Wierd. I wish I could have such a constant success. Using my Mega 2560 now, and not experiencing hangups is nice.
     
  12. gefla

    gefla New Member

    Joined:
    Oct 28, 2013
    Messages:
    3
    Likes Received:
    1
    Last edited: Jun 13, 2016
    waltervl likes this.
  13. Ed McLain

    Ed McLain New Member

    Joined:
    Jun 4, 2016
    Messages:
    4
    Likes Received:
    2
    I'm running into the same issues and have even tried to debug the M4 via UART2 but have been completely unable to get anything out of the UART at 9600 or 15200 and at 3v and 5v. Incidentally the only way I was able to get my M4 to take any sketch again was to completely wipe the SD card and reload it. Doesn't make a lick of sense why though. Any thoughts or ideas?
     
  14. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    I can empathize with all who are having problems with the Ardunio side. I don't think the UDOO team really thought how Ardunio could be ported to a heterogeneous architecture because it completely different (the M4 is so dependent on the A9) to a simpler mcu. Furthermore Ardunio makes many assumptions about the mcu architecture which don't apply to the M4, therefore these require workarounds which in some cases are crudely implemented and convoluted to use for a end users experience.
     
    Last edited: Jun 13, 2016
  15. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Andrea Rovai and Maurice like this.
  16. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  17. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Well the first update did not solve the /dev/ttyMCC reliability but last week some changes were made by the Udoo team that seems to improve things a lot.
     

Share This Page