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

Building Library with Code Banking...

Please help...
I built a library with specific module (group of files) to go into specific bank (I have 4 banks). The library built fine.
Now I linked this library with an application, which further had modules/group to go to specific bank.
After I built the app, it looked like the linker created object files for two banks, as shown here:

BANKED OBJECT FILE CONVERTER OC51 V3.10
COPYRIGHT KEIL ELEKTRONIK GmbH 1991 - 2002
GENERATING STANDARD (UN-BANKED) OBJECT FILES OBJECT FILE FOR BANK 1: module1.B01 OBJECT FILE FOR BANK 3: module1.B03
creating hex file from "module1.B01"...
creating hex file from "module1.B03"...

Which is not what I wanted. If I merged all files (library and app) and made it into one project (no library), the build would produce output that looked like this:

running oc51 on file "module.abs"...
BANKED OBJECT FILE CONVERTER OC51 V3.10
COPYRIGHT KEIL ELEKTRONIK GmbH 1991 - 2002
GENERATING STANDARD (UN-BANKED) OBJECT FILES OBJECT FILE FOR BANK 1: module.B01 OBJECT FILE FOR BANK 2: module.B02 OBJECT FILE FOR BANK 3: module.B03
creating hex file from "module.B01"...
creating hex file from "module.B02"...
creating hex file from "module.B03"...

What did I do wrong with the library/app above?

Another question: on the Extended Linker, what is the syntax for specifying bank #? With BL51, it seems to be BANK followed by a number but this would produce an 'Invalid Keyword', if I switched to LX51. The syntax on the 'Misc controls' of 'BL51' tab looks like this: BANK3(?CO?filename1(0xAFF0), ?CO?filename2(0xBFF0))

Thank you in advance for your help.