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

C51: IN-SYSTEM FLASH PROGRAMMING (PART 2) and 80c400

I have been trying to run the demo program in the C51: IN-SYSTEM FLASH PROGRAMMING (PART 2) artical on the dallas 80c400 in contiguout mode.

the only changes I have made are:
change device to 80c400
change memory model: Large
code rom size: contiguous: 16M
far memory support.

but when I build the code I get the following errors. Any idea what I am doing wrong?

*** ERROR L127: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _CODE_FLASHMEM_L_
MODULE: Srom.obj (SROM)
*** ERROR L127: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _CODE_FLASHMEM_S_
MODULE: Srom.obj (SROM)
*** ERROR L127: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _CODE_FLASHMEM_T_
MODULE: Srom.obj (SROM)
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _CODE_FLASHMEM_L_
MODULE: Srom.obj (SROM)
ADDRESS: 10000CEH
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _CODE_FLASHMEM_L_
MODULE: Srom.obj (SROM)
ADDRESS: 10000D0H
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _CODE_FLASHMEM_S_
MODULE: Srom.obj (SROM)
ADDRESS: 10000D2H
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _CODE_FLASHMEM_S_
MODULE: Srom.obj (SROM)
ADDRESS: 10000D4H
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _CODE_FLASHMEM_T_
MODULE: Srom.obj (SROM)
ADDRESS: 10000D8H
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _CODE_FLASHMEM_T_
MODULE: Srom.obj (SROM)
ADDRESS: 10000DAH

Parents
No data
Reply
  • yeh, I got the same response from keil tech support "This example won't work in contiguous mode. It will work if you change back to Large ROM size.".... sound s like they told you the same thing.

    I don't know whats wrong with the tech support on this issue, they just seem to want to ignore us, tell us it won't work, and to go away.

    the solution is actually very simple... change all references of "CODE" to "ECODE" in pflash.c and srom.c

Children