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

Error L127 & L128

I am getting the following error messages when compiling. I want to programm a can bus for the c167 using the service routines from the infineon homepage. Can anyone help me to solve the L127 & L128 errors.

It would be nice if i get a detailed solution, because a im a novice.

assembling START167.A66...
compiling prakt2.c...
compiling CHKBO16X.C...
compiling CHKMO16X.C...
compiling CHM1516X.C...
compiling CISR16X1.C...
compiling DEFMO16X.C...
DEFMO16X.C(78): warning C192: '=': value truncated
compiling INCAN16X.C...
INCAN16X.C(29): warning C2: 'GLOBAL': unknown #pragma/control, line ignored
INCAN16X.C(40): warning C2: 'PUBLIC': unknown #pragma/control, line ignored
INCAN16X.C(51): warning C140: '_bfld' undefined; assuming 'extern int _bfld()'
INCAN16X.C(114): warning C192: '=': value truncated
compiling LDMOD16X.C...
compiling RDM1516X.C...
compiling RDMOD16X.C...
compiling SNDMO16X.C...
linking...
*** ERROR L127: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _bfld
MODULE: INCAN16X.obj (INCAN16X)
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _bfld
MODULE: INCAN16X.obj (INCAN16X)
ADDRESS: 00CCH
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _bfld
MODULE: INCAN16X.obj (INCAN16X)
ADDRESS: 00DCH
Program Size: data=694(near=692) const=44(near=44) code=1806
Target not created

Parents
  • Markus,

    Can you post contents on INCAN16X.C and INCAN16X.h (is this header included in files where functions from INCAN16X.C are called?)?
    Looks like the source of your errors (as well as some of the warnings) are in there somewhere.
    Dont know about C166 compiler (I only used C51 so far), but if I remember right, using _ before variable names can cause problems (I think because it's ignored but that's relying on my own memory banks). If that is part of your code, you may want to changed it. If it's part of a CANned routine though, I don't know

    Andy

Reply
  • Markus,

    Can you post contents on INCAN16X.C and INCAN16X.h (is this header included in files where functions from INCAN16X.C are called?)?
    Looks like the source of your errors (as well as some of the warnings) are in there somewhere.
    Dont know about C166 compiler (I only used C51 so far), but if I remember right, using _ before variable names can cause problems (I think because it's ignored but that's relying on my own memory banks). If that is part of your code, you may want to changed it. If it's part of a CANned routine though, I don't know

    Andy

Children