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 does not work when add code into another code banking

hi, All


I encountered a strange problem. When I integrated my mudole into the project, which is finished by my colleague and me, the total project can not work normmaly and can not dislpay anything . The following is the description for my project:





The target is intel 8032 with extended memory Xdata (1024 byte), DRAM (2M byte) and 2M flash memory. The target MCU has been integrated into system on chip to control TV chip. This project is divided into several part: UI, service and driver.


Up to now, these components can run normally separately. When my module, one of service,and UI module combined to a test unit, I found the code can not work. Our project used 8 bank(0--7) to save code into flash. UI and drivers took up 6 code banking, what's more ,they and work well. But When I added my obj file into bank6 , the code can not run in the target platform.


I tested my module dividually and found it could work in the real platform without UI module. With the limit of harware, I can not use uVision 2 tool to debug the module. I cheked the Map file *.M51 and can't find out the false in it. Any error for banking configuration for code banking ?





What's wrong with it. Any reason can cause the result?


I paste my banking file as follows:


common {..\obj\Driver\misc\l51bank8.obj,


..\obj\Driver\misc\startup.obj,


..\obj\Driver\misc\isr.obj,


..\obj\Driver\misc\timer_ui.obj


},





bank0 {


..\obj\Driver\rs232\drv_rs232.obj,


..\obj\Emulate\test_osd.obj,


..\obj\Driver\kernel\setDRAM.obj,


..\obj\Driver\misc\init.obj,


..\obj\Driver\misc\util.obj,


..\obj\Driver\vdoin\hw_vdoin.obj,


..\obj\Driver\tve\drv_tve.obj,
},
bank6 {
..\obj\Service\CC\ccdata.obj,
..\obj\Service\CC\CCApi.obj
}
to UI.OMF DS DL RS(256) XDATA(0FC00h-0FFFFh) &
DISABLEWARNING (13) &
RC(0) &
common(?PR?_VRS232LOGB?DRV_RS232, ?PR?_VRS232LOGS?DRV_RS232) &
bank0(?CO?DRV_TVE, ?CO?DRV_IR) &
bank1(?CO?VGA_TABLE, ?CO?TTXOSD, ?CO?DRV_OSD) &
bank6(?CO?CCDATA, ?CO?CCAPI)

Thanks any advice and help in advance.
Jansen