Announcement

Collapse
No announcement yet.

Arduino DUE problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Arduino DUE problem

    I currently have an Arduino Mega driving a 3.5" Gen4 display and am trying to convert to a Due. I cannot even get the blink program to run thru the Workshop and tracked it down this line of code

    %%Display%%.AssignDisplaySerialtoLibrary ; // *Replaced* at compile time with an Assign of the correct Serial port to the correct library

    If I comment this line out (as well as any other Display calls) everything works fine and the LED blinks. Add this line and the LED stays lit. Am I missing some include file or maybe getting a wrong library somewhere?

  • #2
    This problem is caused by calling _virtualPort->flush() in the constructor. Apparently it hangs in a Due (and Teensy and maybe others). See the following post...

    http://forum.4dsystems.com.au/forum/...and-teensy-3-6

    This problem is solved by commenting out:
    _virtualPort->flush(); (there's only one occurrence)
    in:
    Diablo_Serial_4DLib.cpp

    Comment

    Working...
    X