This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C1294NCPDT: RtGetGateIP first referenced

Part Number: TM4C1294NCPDT

Tool/software: Code Composer Studio

Hi

e2e.ti.com/.../2748404
I looked this post and tried to invoke RtGetGateIP, but it occur error message "unresolved symbol RtGetGateIP, first referenced in ./tcpEcho.obj". Even though I include #include <ti/ndk/inc/stkmain.h> and added include search path.
Please help me to solve.

Thank you very much!

Allen

  • Hi Allen,

    This might be an issue with your CCS setup. How did you edit your include search path? Can you show me the contents of the File Search Path section of your CCS project properties? I'd expect to see the ti/ndk/stack/lib/stk library.

    Best,

    - Brandon

  • Hi Brandon

    Thanks for your response.

    My includes as follows.

    #include <string.h>
    
    #include <xdc/std.h>
    #include <xdc/runtime/Error.h>
    #include <xdc/runtime/System.h>
    
    #include <ti/sysbios/BIOS.h>
    #include <ti/sysbios/knl/Semaphore.h>
    #include <ti/sysbios/knl/Task.h>
    #include <ti/drivers/GPIO.h>
    
    /* NDK BSD support */
    //#include <sys/socket.h>
    
    #include <ti/ndk/inc/netmain.h>//http web server
    #include <ti/ndk/inc/stkmain.h>
    //#include <ti/ndk/stack/route/route.h>
    //#include <ti/ndk/rov/Ndk.h>
    #include <ti/ndk/inc/netctrl/netctrl.h>
    #include <ti/ndk/config/prototypes.h>
    //#include <ti/ndk/inc/usertype.h>
    
    
    
    /* Example/Board Header file */
    #include "Board.h"

    And the file search path.

    Error message

    Please help me to resolve, thank you very much!

    Allen

  • Hi Allen,

    I tried importing the tcpecho project from the sdk you're using and I didn't run into this issue. Did you import the project from the TI Resource Explorer and have you made any modifications to the settings? Could you post a picture of your included libraries? I was hoping to take a look at those along with the included search paths.

    Also, what version of CCS are you using?

    Best,

    Brandon

  • Hi Brandon
    Thanks for your response.
    My CCS version is 6.1.0.
    And I reimport project from TI Resource Explorer. When I use "RtGetGateIP" in main or own task, are well.
    But in user defined ip address hook will occur the error that "unresolved symbol RtGetGateIP, first referenced in ./tcpEcho.obj".
    (in properties -> ARM Compiler -> Predefined Symbosl I predefined "_STRONG_CHECKING")

    Thanks for your help.

    Allen
  • Hi Allen,

    It looks like you've found a bug! Sorry you ran into that. There are two quick ways to fix this before someone gets to this bug (which may take some time). I'm assuming you want strong checking enabled, but if you could live without it, disabling the _STRONG_CHECKING symbol should let you continue with your work. Another option, which would keep _STRONG_CHECKING enabled, would be to copy and paste the #define value for _STRONG_CHECKING found in routeif.h into your code.

    #define RtGetGateIP(h)          (((RT *)(h))->IPGate)

    A third option would be to define your own function body for RtGetGateIP().

    On further research, I have a (hopefully) better answer for you. In section (1.2) of the NDK User's Guide it talks about the use of _STRONG_CHECKING. If you want to enable strong checking, you need to rebuild the NDK and pass this macro as a compiler option. Please let us know if you need any further assistance.

    Regards,

    Brandon