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

CAN RTX51

Hi

I'm trying to use the rtx can functions. However i get a lot of the "REFERNCE MADE TO UNRESOLVED EXTERNAL" type warnings.

My guess is that the RTXICAN.lib file doesn't get properly linked.

I have added the file to the keil\c51\LIB directory but that doesn't seem to do much.

So basicly I would like to know what I am doing wrong here.

Thanks in advance

Frank Roberts

  • Frank;
    Are the unresolved ref messages for the CAN or the RTX? Is the RTX51 selected in the Target Options? The header files referenced?
    Bradford

  • The unresolved ref messages are for the CAN functions which are listed in the RTX51 programmers manual. RTX51 is selected and the headerfile is properly referenced

    We also tried to include RTXICAN.lib directly into the project but that gives us even more errors. If I remember correctly there appeared to be some sort of conflict with the rtx library file. However I'm not sure and currently unable to check this.

    Frank Roberts

  • We are using CAN and RTX51 for years. The issue is the order of the files in the project. In one of our projects it looks like this:

    1. Startup.A51
    2. Rtxbcan.lib
    3. RtxConf.A51
    4. BcanConf.A51

    and then the rest of the project files.
    We are using uV2.

    regards

    Dejan

  • I've found the problem. I was using an older project file which had all the correct settings EXECPT for the off chip code memory. The settings caused all the errors when I tried to add the RTXICAN.LIB file to my project.

    Thank you all for your help