Problems with sw stack corruption

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Jan Middel
Posts: 7
Joined: Sun Nov 18, 2007 11:23 am
Contact:

Problems with sw stack corruption

Post by Jan Middel »

Hello,

I have made a digital clock and i works good.
But when a send it tho de pic controller i get a warning.

Call Stack Usage Report
=======================
main and Task(s): hw used:5, exceeded by:0
interrupt: hw used:6, exceeded by:0
Serious Warning: Possible sw stack corruption, function 'FCD_LCDDisplay0_Clear' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)


Can anybady tell my what is the problem?

Groeten Jan Middel

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

This is because you are accessing an LCD macro from within an interrupt as well as the main program. Ideally, you should keep interrupt routines as simple as possible and not access any other macros (or delays) from an interrupt.

Post Reply