Announcement

Collapse
No announcement yet.

uLCD-32PT error 15

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

  • uLCD-32PT error 15

    Hello,

    I'm writing a GUI for RepRap 3D printers with an uLCD-32PT.
    The interface works well, the problem is that sometimes my program crashes returning the error 15 (stack overflow).I'm not using any recursive function.
    In addition to the recursion there are other ways in which my lcd returns error 15?

    Regards
    Marco

  • #2


    If there are large amounts of local variables, or lots of subroutines calling subroutines, you can run out of stack space.

    In that case use the #STACK nnnn compiler (in your root program, if loading others) directive to increase the space.

    Usually the compiler works out a good size, but if you are using file_run/exec/loadfunction it has no way of telling the requirements of the called program
    Mark

    Comment


    • #3


      thank you very much,the problem was caused by too many subroutine.
      I solved it by increasing the # STACK. RegardsMarco Antonini

      Comment

      Working...
      X