User`s guide
Code & Data Management
AT85C51SND3Bx Firmware User’s Guide 4-17
7691A–MP3–08/07
4.1.1.2 How to configure You must change the configuration in the « option.h » header file by defining following
constants:
• XDATA_LENGTH
• CODE_BANKING
• BANK_START_ADDRESS
Note: There are no « code size » #define, because this one is automatically computed using
XDATA_LENGTH.
You must modify the UV2 project according to « option.h » header file;
Figure 4-2. options are in ‘Options for Target’ pop-up in Target tab
Figure 4-3. options are in ‘Options for Target’ pop-up in BL51 Misc tab (linker file
player.lin)
WARNING : At compile time, there are no automatic coherency check between « UV2
project option » and « option.h » (no error and no warning). The execution code may be
corrupted if a difference exists.
CODE_BANKING (ENABLED)
BANK_START_ADDRESS
= 64KB-512B- XDATA_LENGTH
BankArea(0xC200,0xE5FF)
PRINT(".\List\player.m51") RAMSIZE(256)
DISABLEWARNING (15)
BANK10(?CO?FILE(0xC200),?PR?ROUTINE?FILE,?PR?ROUTINE2?FILE)
…
BANK01(?CO?FILE2(0xC200),?PR?ROUTINE?FILE2,?PR?ROUTINE2?FILE2)
OVERLAY( main!(?CO?MMI_LYRICS,…))
CODE( 0x0000-0xE5FF )
XDATA( 0x0000-0x17FF )
player.lin
BANK_START_ADDRESS
XDATA_LENGTH 64KB-512B- XDATA_LENGTH