Hi guys,
i'm trying to learn gsm modem communicatin with microcontroller(pic16f877). in 'C' laguage.
I'm able to receive sms through gsm modem but only first few characters. I am defining a string as
Code:
unsigned char sms[50];
but if i try to increase the no. of characters and for that i try to define Code:
unsigned char sms[90];
i get the following errors:- Quote:
Error[491] : can't find 0x85 words for psect "rbss_0" in segment "BANK0"
Error[491] : can't find 0x7 words for psect "temp" in segment "COMBANK"
Error[593] : can't find 0x2 words (0x2 withtotal) for psect "code_ptr" in segment "BANK0"
i tried using different bank Code:
bank1 unsigned char sms[90];
but i still get the same resultts
PIC16F877A has 4 RAM banks, in which the top 16 bytes of each are mapped to the same address. Therefore, bank 0 and bank 1 have only 80 contiguous bytes of general purpose RAM, and bank 2 and bank 3 have only 96 contiguous bytes of general purpose RAM.
For your array of 90 bytes of RAM, you could try bank 2 or bank 3.