|
| BANKx Linker Directive| Abbreviation | | Bx | | Arguments | | BANKx (« start_address » « segname « (address) » « , ... » ») | | Default | | None. | | µVision | | Options — BL51 Misc — Misc Controls. | | Description | | The BANKx directive specifies a code bank x in which to locate a specified segment (segname). The start_address specifies the starting address for the code bank. The address specifies an address at which segname is located. If no start_address is specified, the code bank starts at the address defined with the BANKAREA directive. If you locate a constant segment into a code bank, you must ensure that the same code bank is used when accessing the data in that segment. You may use the switchbank function defined in L51_BANK.A51) to manually switch code banks. | | See Also | | BANKAREA | | Example | |
BL51 COMMON{A.OBJ}, BANK0{B.OBJ} &
BANK1(0x8000, ?PR?FUNC1?A, ?PR?FUNC2?B(0x8200))
This example locates the segment ?PR?FUNC1?A (function func1 from A.C) in code bank 1 starting at address 0x8000. It locates the segment ?PR?FUNC2?B at address 0x8200 in code bank 1. |
Related Knowledgebase Articles |
|