prateek_k_chd
Member level 5
I'm using MPLAB 8.76 + PIC16F877a
I'm adding some new features to an existing product . Earlier the Output window in MPLAB displayed the Program space occupancy as 49.2%. The product ran fine.
But now,after tweaks, the code size is 52.3%. And the product doesn't work. Even the display doesn't work.
I've fiddled with the code and found that it stops working after the space crosses 50.5 % . To check this, i deleted the new modifications and added some redundant code - some simple loops and some other useless arithmetic calculations that do nothing but simply add to the code
The product works until this useless code doesn't bloat to more than 50.5% . But after that , even the display doesn't work.
The execution sequence is :
#include ...................
__CONFIG(0x1E32);
void main(void){
// Here goes the startup code
fnStartup();
// Let's proceed with the infinite loop
while(1)
{......................
So has anyone faced similar problem ? Any workarounds ??
Forgive me if this is a nOOb question - I'm relatively new to MPLAB.
P.S. - i've tried this with several pieces of 16f877a so it's not that my chip is bad.
The programmer I'm using is a clone of the USB programmer by PIC.I got it from here : eXtreme Electronics :: Programmers :: eXtreme Burner PIC
I'm adding some new features to an existing product . Earlier the Output window in MPLAB displayed the Program space occupancy as 49.2%. The product ran fine.
But now,after tweaks, the code size is 52.3%. And the product doesn't work. Even the display doesn't work.
I've fiddled with the code and found that it stops working after the space crosses 50.5 % . To check this, i deleted the new modifications and added some redundant code - some simple loops and some other useless arithmetic calculations that do nothing but simply add to the code
The product works until this useless code doesn't bloat to more than 50.5% . But after that , even the display doesn't work.
The execution sequence is :
#include ...................
__CONFIG(0x1E32);
void main(void){
// Here goes the startup code
fnStartup();
// Let's proceed with the infinite loop
while(1)
{......................
So has anyone faced similar problem ? Any workarounds ??
Forgive me if this is a nOOb question - I'm relatively new to MPLAB.
P.S. - i've tried this with several pieces of 16f877a so it's not that my chip is bad.
The programmer I'm using is a clone of the USB programmer by PIC.I got it from here : eXtreme Electronics :: Programmers :: eXtreme Burner PIC