Problem witn MikroC global variables usign PIC16F877

Status
Not open for further replies.

KHDAK

Junior Member level 1
Joined
Dec 14, 2011
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,390
Hi, I declared my global variables as "static" but during program execution the variable contents are over written by other functions, specially when LCD is used. My RAM utilization is below 50% and no variable overflows. I am checking the output on PROTEUS ISIS. I have used WINAVR and CodeVision before and I never experience such problem. Please help me with this issue, Is there a compiler settings that can cause this issue?
 

Questions:

Do you use any commands that alter memory contents directly?

Do you use a variable to store graphics in a form that might extend beyond its DIMensioned memory, with the chance it could overwrite a neighboring variable?

Does your byte addressing scheme constrain itself to particular boundaries (specifically even memory values)?

And (pardon if this question is redundant), does your programming language interpret 'STATIC' variables as global when they are declared outside any function?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…