Announcement

Collapse
No announcement yet.

Restart Screen/App for STACK problem

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

  • Restart Screen/App for STACK problem


    Hello,

    Hope you are well?

    I'm using the uLCD - 32PTU and I'm trying to restart my 4D screen using Visi code, can you please show me an example or a link on how this is possible?

    The reason for this that I'm trying to reset my #STACK because I'm running out of space and get the ERROR 15 message.

    Any help or advice would be great.

  • #2
    Well, if only change the #STACK you need to recompile and load, so that will reset the processor for you.

    If you really want to reset the processor from code, check out the SystemReset() function
    Mark

    Comment


    • #3
      Is there maybe a way to release some ram or fix the Error 15 message without resetting the screen?

      Comment


      • #4
        You need to work out what you are doing to cause the error 15.

        Have you got a routine with a huge number of local variables? The increasing the stack will help

        Are you recursively calling the same routine? Fixing bug that causes this will help. If it isn't a bug then increasing the stack will help

        Printing (to the screen, or to the com port) the EVE_SP() at various points might help you understand where the stack is going and why.
        Mark

        Comment

        Working...
        X