I am using Pic16f877 microcontroller for my project. I am trying to declare a char Array as
char dataPkt[256] = {0};
While compiling, i received an error
error: (1250) could not find space (256 bytes) for variable dataPkt
Can anyone guide me how to resolve this error ??
Best Answer
There is no substitute for understanding the machine at the low level. Whether using a compiler or not, you have to actually READ THE DATASHEET.
As Figure 2-3 on page 13 clearly shows, there is no way to get 256 contiguous bytes of RAM.
Other observations: