My PIC program hangs probably because of memory issues

Status
Not open for further replies.

viccram

Junior Member level 1
Joined
Oct 15, 2007
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,433
my program hangs....
it is compiled and built successfully showing 44.45% program memory usage
i am programming in C...should i consider page or compiler does it???
what is the stack limitation of PIC16F877a???

is calling a function in another function creating this problem???

i hav heard that if the program code memory exceeds 2k we need to change PCLATH.

how is that done???
 

My PIC program hangs

most compilers manage the paging and banking, just don't exceed the 2k page limit on a single routine (16F) or you can use 18F series, no banking and paging worries.
 

Re: My PIC program hangs

Normally the C compilers handle the bank switching stuff internally. However might it be that your code does not have a valid / correct return path since you mentioned that you have functions calling functions?

Cheers
Slayer
 

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…