This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ERROR L258: AJMP IN BANKTABLE OUT OF RANGE

I’m working on application with bank switch. It was working fine up to last week. Then the code was bigger than code area and I must to reorganize modules on banks. It fits now, but LX51 shows:

*** ERROR L258: AJMP IN BANKTABLE OUT OF RANGE, CONFIGURATION ERROR IN L51_BANK.A51
START: 0000H
JMPSTART: 80041B0H

What a meanning of both information (START and JMPSTART)?

Manual shows:
There is a configuration error in the L51_BANK.A51 (banking configuration) file. Make sure that you are using the current version of this file. Also you should make not modifications to the PUBLIC symbols or segment names of that file.

I don’t understand what happens. I didn’t change L51_BANK.A51. It’s the same than last week.

I’m using on L51_BANK.A51:

?B_NBANKS       EQU  2
?B_MODE         EQU  4
?B_RTX          EQU  0
?B_VAR_BANKING  EQU  0
?B_RST_BANK     EQU  0x00

The MAP file shows:

START     STOP      LENGTH    ALIGN  RELOC    MEMORY CLASS   SEGMENT NAME
***   COMMON AREA   ***
000800H   000F2FH   000730H   PAGE   INBLOCK  CODE           ?BANK?SWITCH
…
0019B6H   0019C0H   00000BH   BYTE   UNIT     CODE           ?BANK?SELECT

I’m using 9.01 version and the areas used are:
COMMON: 0000H to 24FDH
CODE BANK 0: 2500H to F348H
CODE BANK 1: 2500H to 7C7FH

How can I correct this error?

Thanks for any help :)

0