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.

Tiva C connected LaunchPad and TI-RTOS: Can't get the DHCP server to work

Other Parts Discussed in Thread: SYSBIOS

Hello everyone,

This is a copy of a post I made recently into the Tiva C forum (link), for which no solution has been posted yet, so I am posting here as well in order for it to garner more attention. Here it is:

I bought the Tiva C connected LaunchPad (xm4c1294ncpdti2 chip), installed CCSv6, updated it and also got the TI-RTOSfeature for it, and then followed this guide (the PPT):


http://processors.wiki.ti.com/index.php/TI-RTOS_HTTP_Example

Except for a minor hiccup in the beginning (*1), everything went smoothly (*2) up until the end, when I wanted to set up the DHCP server. When I add the DHCP SERVER in the project.cfg wizard (*3) and then build the project, this happens: (*4) - basically CCS reports a missing library, stk_nat_ppp_pppoe.aem4f,  which I guess has something to do with DHCP functionality.

Does anyone know how to fix this problem? Thank you in advance.

*1: the guide did not say that "#include <ti/drivers/EMAC.h>" had to be uncommented.

*2: I skipped the whole SD card part.

*3: TI-RTOS -> Products -> NDK -> Networking - System Overview

*4:

**** Build of configuration Debug for project TivaTest ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
'Building file: ../empty.cfg'
'Invoking: XDCtools'
"c:/ti/xdctools_3_30_01_25_core/xs" --xdcpath="c:/ti/tirtos_tivac_2_00_02_36/packages;c:/ti/tirtos_tivac_2_00_02_36/products/bios_6_40_02_27/packages;c:/ti/tirtos_tivac_2_00_02_36/products/ndk_2_23_01_01/packages;c:/ti/tirtos_tivac_2_00_02_36/products/uia_2_00_01_34/packages;c:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C1294NCPDT -r release -c "c:/ti/ccsv6/tools/compiler/arm_5.1.7" "../empty.cfg"
configuring empty.xem4f from package/cfg/empty_pem4f.cfg ...
Error: library "C:\ti\tirtos_tivac_2_00_02_36\products\ndk_2_23_01_01\packages\ti\ndk\config\..\stack\lib\stk_nat_ppp_pppoe.aem4f" does not exist. Please follow the steps to build this NDK library at http://processors.wiki.ti.com/index.php/Rebuilding_The_NDK_Core_Using_Gmake
clem4f package/cfg/empty_pem4f.c ...
'Finished building: ../empty.cfg'
' '
'Building target: TivaTest.out'
'Invoking: ARM Linker'
"c:/ti/ccsv6/tools/compiler/arm_5.1.7/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --gcc --define=PART_TM4C1294NCPDT --define=ccs --define=TIVAWARE --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on -z -m"TivaTest.map" --heap_size=0 --stack_size=512 -i"c:/ti/ccsv6/tools/compiler/arm_5.1.7/lib" -i"c:/ti/ccsv6/tools/compiler/arm_5.1.7/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="TivaTest_linkInfo.xml" --rom_model -o "TivaTest.out" -l"./configPkg/linker.cmd" "./empty.obj" "./EK_TM4C1294XL.obj" "../EK_TM4C1294XL.cmd" -l"libc.a" -l"c:/ti/tirtos_tivac_2_00_02_36/products/TivaWare_C_Series-2.1.0.12573c/driverlib/ccs/Debug/driverlib.lib" -l"c:/ti/tirtos_tivac_2_00_02_36/products/TivaWare_C_Series-2.1.0.12573c/usblib/ccs/Debug/usblib.lib" 
<Linking>

undefined first referenced 
symbol in file 
--------- ---------------- 
CONTENT_TYPE_HTML ./empty.obj 
CRLF ./empty.obj 
CfgAddEntry D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
CfgFree D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
CfgNew D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
NC_NetStart D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
NC_SystemClose D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
NC_SystemOpen D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
NDK_hookCreate D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
NDK_hookInit D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
NIMUAddEthernetHeader C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
NIMUReceivePacket C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
NIMURegister C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
PBMQ_deq C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
PBMQ_enq C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
PBM_alloc C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
PBM_free C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
SemPost C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
_oscfg D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
efs_createfile ./empty.obj 
efs_destroyfile ./empty.obj 
httpSendClientStr ./empty.obj 
httpSendStatusLine ./empty.obj 
inet_addr D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
llTimerTick D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f 
mmAlloc C:\ti\tirtos_tivac_2_00_02_36\packages\ti\drivers\lib\instrumented\emac_tivaware.aem4f<EMACSnow.oem4f>
mmZeroInit D:\!UserFolders\Desktop\CCS6wrkspc\TivaTest\Debug\configPkg\package\cfg\empty_pem4f.oem4f

>> Compilation failure

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "TivaTest.out" not built
gmake: *** [TivaTest.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • We do not ship every library permutation of the NDK. We have not been seeing much stk_nat_ppp_pppoe, so to reduce the installer size, we do not ship this one. If you need this library, you can change the following line in the top-level TI-RTOS makefile (tirtos.mak) and rebuild the NDK

    BUILDMINSTACK_CONFIG     := BUILDMINSTACK=0 // change to false

    Refer to the TI-RTOS User Guide on how to rebuild the products.

    Note: The PPT steps do not do anything that require nat_ppp_pppoe. Do you do something different because you need it?

    Todd

  • Dear Todd,

    Thank you for your prompt help, unfortunately I ran into another problem while rebuilding TI-RTOS:

    I ran this command in the prompt, after reading the PDF (http://www.ti.com/lit/ug/spruhd4f/spruhd4f.pdf):

    gmake -f C:\ti\tirtos_tivac_2_00_02_36\tirtos.mak all

    It ran for quite a long time, until it finally stopped with an error (*1), "'C:/ti/xdctools_3_30_01_25_core/tirtos.bld' is not found.  Stop.".

    I did a quick search on google but I didn't find anything about this particular missing file. Please help.

    PS: Regarding the 'nat_ppp_pppoe', I have no idea; I followed the PPT to the letter, I chose to have a static IP.

    *1:

    ...
    all files complete.
    ======== all [./packages/ti/uia/scripts/ndk] ========
    all files complete.
    ======== all [./packages/ti/uia/services] ========
    all files complete.
    ======== all [./packages/ti/uia/sysbios] ========
    all files complete.
    all files complete: Thu Jul 24 00:56:23 RDT 2014.
    gmake[1]: Leaving directory `c:/ti/tirtos_tivac_2_00_02_36/products/uia_2_00_01_
    34'
    building tirtos packages ...
    making all: Thu Jul 24 00:56:23 RDT 2014 ...
    ======== .interfaces [./packages/host/platforms/PC] ========
    c:/ti/xdctools_3_30_01_25_core/packages/xdc/bld/xdc_rules.mak:307: *** Error: Sp
    ecified build configuration file 'C:/ti/xdctools_3_30_01_25_core/tirtos.bld' is
    not found. Stop.
    xdctools_3_30_01_25_core\gmake.exe: *** [packages/host/platforms/PC,.interfaces]
    Error 2
    gmake: *** [drivers] Error 2

  • You do not need to rebuild everything (e.g all). You should have just rebuild the NDK (e.g. gmake -f tirtos.mak ndk).

    Can you delete you ti-rtos installation and re-install it? You can get the installer here: http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/index.html

    Also, be in the c:\ti\tirtos_tivac_2_00_02_36 directory when you run the gmake. That might be part of the problem. I'll try rebuilding "all" here to see what the issue is. It's part of our regression testing, so I'm surprised it failed.

    Todd

  • Thank you Todd, everything works fine now.

    I uninstalled the TI-RTOS for Tiva C by going into

    CCSv6 -> Window -> Preferences -> Code Composer Studio -> RTSC

    and removing 'TI-RTOS for Tiva C' from 'Products and Repositories', then deleted the 'tirtos_tivac_2_00_02_36' folder from my CCSv6 installation folder 'C:\ti'.

    I then reinstalled TI-RTOS for Tiva C from the file that I downloaded from your link, edited the 'tirtos.mak' file appropriately, and went into the folder 'C:\ti\tirtos_tivac_2_00_02_36' and ran this command in the prompt:

    C:\ti\xdctools_3_30_01_25_core\gmake.exe -f C:\ti\tirtos_tivac_2_00_02_36\tirtos.mak ndk

    it took a while but it finished without error. Thanks again and best regards,

    Andrej Suc