Hello,
How do I determine where this warning is coming from. I searched the "C" file using VS2008 and only found 4 lines in the code that call out FCM_TMR0. How do I locate which is causing this and where it is located in my project?
Building CASM file
Serious Warning: Possible sw stack corruption, function 'FCM_TMR0' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
The 4 areas I have found the FCM_TMR0 are listed below.
First Area Of C file
//Macro function declarations
void FCM_TMR0(); // This is required.
Second Area Of C file
//Call Macro: TMR0
FCM_TMR0(); // I think this is where I enable TMR0 in flowchart
Third Area Of C file
void FCM_TMR0()
{
//Comment: // This is the TMR0 code itself
Fourth Area Of C file
void interrupt(void)
{
if (intcon & (1 << TMR0IF))
{
FCM_TMR0();
clear_bit(intcon, TMR0IF);
}
}
Thank you,
Ron
Serious Warning
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Serious Warning
Hello Ron,
Its hard to see without having your program but are you calling the TMR0 macro via a software macro icon or is it simply the interrupt icon that referrs to it.
If you are using a software macro call then this should not be needed as the timer macro will run by itself once you have called the interrrupt enable function.
Its hard to see without having your program but are you calling the TMR0 macro via a software macro icon or is it simply the interrupt icon that referrs to it.
If you are using a software macro call then this should not be needed as the timer macro will run by itself once you have called the interrrupt enable function.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel