atmega128 problem
Heloo,
There are 2 solutions for you:
1. Redesign and use another port.
2. If you cannot redesign, then you cannot just skip the codevision wizzard and put the address of PORTF in the program because in ATMEGA128 the PORTF and DDRF addresses are above $00 to $1F range of CBI and SBI instructions( read Note 2 at the end of Register Summary in ATMEGA128 datasheet). Another reason is that DDRF, PINF and PORTF registers need to be in a specific order (see lcd.lib), and for ATMEGA128 they aren't.
The solution is to modify the lcd.lib so that instead of using CBI and SBI to access the port, you'll be using STS, LDS, etc.
Best regards,
rosu