Har skrivit i ordning alla funktioner för att hantera displayen och har nu börjat med att hantera texten. Jag har ett par texter i programmet och ville kunna kolla hur många tecken det finns i en sträng. Alltså la jag till string.h.
När jag kompilerar är inga fel, men när jag bygger programmet gnäller den på att den inte hittar två words i BANK0.
Kod: Markera allt
/Here is the main program
void main(void)
{
int StrLength;
char i, Xpos;
Init(); //Initiate the PIC
delay_ms(100);
LCDInit();
// Here starts the main program loop
StrLength = strlen (TextRowOne);
HI-TECH PICC-Lite COMPILER (Microchip PICmicro) V9.60
Copyright (C) 1984-2006 HI-TECH SOFTWARE
Error [593] ; . can't find 0x2 words (0x2 withtotal) for psect "code_ptr" in segment "BANK0"
Kommenterar jag ut raden med StrLength så funkar det. Alltså nåt knas med strlen.
Kod: Markera allt
Memory Usage Map:
Program space:
CODE used AFh ( 175) of 800h words ( 8.5%)
CONST used 18h ( 24) of 800h words ( 1.2%)
ENTRY used 0h ( 0) of 800h words ( 0.0%)
STRING used 0h ( 0) of 800h words ( 0.0%)
Data space:
BANK0 used 5Bh ( 91) of 60h bytes ( 94.8%)
BANK1 used 0h ( 0) of 50h bytes ( 0.0%)
COMBANK used 0h ( 0) of 10h bytes ( 0.0%)
EEPROM space:
EEDATA used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space:
IDLOC used 0h ( 0) of 4h bytes ( 0.0%)
Configuration bits:
CONFIG used 1h ( 1) of 1h word (100.0%)
Summary:
Program space used C7h ( 199) of 800h words ( 9.7%)
Data space used 5Bh ( 91) of B0h bytes ( 51.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Configuration bits used 1h ( 1) of 1h word (100.0%)
Skulle vara tacksam för lite hjälp här.
MVH
/Björne