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

Code banking

Hello Forum,
I recently took over a project, that did not have code banking implemented.
The hardware was designed with code banking in mind, a 128K FLASH is used and the A16 of the FLASH is connected to P1.5 of the 8051. We've have slowly been getting to the point where we need to utilize the upper 64K of the FLASH. I've done some research regarding how to implement code banking, but am having difficulties on what exactly needs to be setup.

This is what I have done so far.
I added L51_BANK.A51 to the project and changed the following:
?B_NBANKS EQU 2
?B_MODE EQU 0
?B_RTX EQU 0
?B_VAR_BANKING EQU 0
P1 DATA 90H
?B_PORT EQU P1
?B_FIRSTBIT EQU 5

In UV2, target options, target tab:
Eanbled code banking.
Bank area start: 0x0000
Bank area end: 0xFFFF

This will give me 2 banks from 0 - 0xFFFF, but what about the comon area? Where will that be placed?

Is it possible to have a 64K common area and a 64K bank0?

TIA,

Andy