I was using the demo version of mikroElectroikas software but soon turned out the 2k program size is not large enough. When going to MPLAB (using C language) I ended up with a few problems was hoping someone could help me on.
First this is what I was using in mikro for setting up the LCD
But MPLAB doesn't seem to like these commands.
Also, even with commenting all of these references out I get the following error when building:
Any ideas?
Thanks!
edit: When I look through the Memory Usage Map, BANK0 of the Data Space section is almost completely full. As soon as I add a division or something like that it exceeds it and gives me the error. Any idea why this is occuring? How do I move to Bank1, etc.
First this is what I was using in mikro for setting up the LCD
Rich (BB code):
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;
sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
sbit LCD_D5_Direction at TRISB1_bit;
sbit LCD_D6_Direction at TRISB2_bit;
sbit LCD_D7_Direction at TRISB3_bit;
Also, even with commenting all of these references out I get the following error when building:
Rich (BB code):
Error [491] ; . can't find 0x5C words for psect "rbss_0" in segment "BANK0"
Thanks!
edit: When I look through the Memory Usage Map, BANK0 of the Data Space section is almost completely full. As soon as I add a division or something like that it exceeds it and gives me the error. Any idea why this is occuring? How do I move to Bank1, etc.
Last edited: