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.

TMS320F28388D: LWIP Issues

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hello Community,

I want to use LWIP example in my application,

And I created a New CM Project using File > New > CCS project > Cortex M(Arm) tab > Selected Empty Project > Project name > Finish

And I further Added Required Files as in ene_lwip_udp example. My project structure looks like this:

 .

Further Added below includes:

and pre defined "_FLASH" and "ccs".

Further File search path looks like this:

And Then tweaked Linker script as per the requirement.

Now If I tried loading this build onto CM Core after loading CPU1 with CM related Ethernet Initializations. Code is getting stuck in ie., in FaultISR

"lwIPInit(0, pucMACArray, IPAddr, NetMask, GWAddr, IPADDR_USE_STATIC); "

Further I investigated where exactly it is getting in to FaultISR(), I found that it is not coming out from ethernet_output() function.

But If I try to import enet_lwip_udp directly from c2000 directly into my workspace I see there are no issues, Code is not getting hung.

Can Someone please help me out here.

Thanks and regards,

Pranay

  • Pranay, 

    Can you share the compilation log  for your project? Also , please ensure that the compiler options and variable paths under the include options are correctly configured. 

    Usually the hard fault is caused when the CM core tries to access some invalid  memory location. Can you single step through the ethernet_output function and see the disassembly to check which particular line of code is causing this behavior.

    Best Regards

    Siddharth

  • Siddharth,

    To be exact, it is failing in function f2838xif_transmit() line Interrupt_enable(INT_EMAC_RX0);

    Find the respective screenshot of assembly:

    I double ensured the added paths under include options,all the paths are proper.

    Can is possibly going wrong with above screenshot.

    Please find the attached working and non working compilation logs :

    **** Build of configuration Flash for project enet_lwip_udp ****
    
    "C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k all 
     
    Building file: "../GrlPDComm.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="GrlPDComm.d_raw"  "../GrlPDComm.c"
    "../GrlPDComm.c", line 18: warning: variable "lRegVal" was set but never used
    "../GrlPDComm.c", line 152: warning: function "httpLEDToggle" declared implicitly
    "../GrlPDComm.c", line 153: warning: variable "err" was declared but never referenced
    Finished building: "../GrlPDComm.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="enet_lwip_udp.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c"
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 425: warning: variable "txChan" was set but never used
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 426: warning: variable "descPtr" was declared but never referenced
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 427: warning: variable "tailPtr" was declared but never referenced
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 1006: warning: declaration is not visible outside of function
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 1075: warning: argument of type "struct ip_addr *" is incompatible with parameter of type "const ip_addr_t *"
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 1096: warning: argument of type "void (*)(void *, struct udp_pcb *, struct pbuf *, struct ip_addr *, u16_t)" is incompatible with parameter of type "udp_recv_fn"
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 1405: warning: function "sys_check_timeouts" declared implicitly
    "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c", line 851: warning: function "tcp_echoserver_recv" was declared but never referenced
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/enet_lwip_udp.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/f2838xif.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="f2838xif.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/f2838xif.c"
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/f2838xif.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/fs.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="fs.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/fs.c"
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/fs.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/httpd.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="httpd.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/httpd.c"
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/httpd.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/utils/lwiplib.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="lwiplib.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/utils/lwiplib.c"
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/utils/lwiplib.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/board_drivers/pinout.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="pinout.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/board_drivers/pinout.c"
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/board_drivers/pinout.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/startup_ccs.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="startup_ccs.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/startup_ccs.c"
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm/startup_ccs.c"
     
    Building file: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/utils/ustdlib.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/enet_lwip_udp" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="ustdlib.d_raw"  "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/utils/ustdlib.c"
    Finished building: "C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/utils/ustdlib.c"
     
    Building target: "enet_lwip_udp_cm.out"
    Invoking: ARM Linker
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual -z -m"enet_lwip_udp_cm.map" --heap_size=0 --stack_size=2048 -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -i"C:/ti/ccs1040/ccs/tools/compiler" -i"C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug" --reread_libs --warn_sections --xml_link_info="enet_lwip_udp_cm_linkInfo.xml" --rom_model -o "enet_lwip_udp_cm.out" "./GrlPDComm.obj" "./enet_lwip_udp.obj" "./f2838xif.obj" "./fs.obj" "./httpd.obj" "./lwiplib.obj" "./pinout.obj" "./startup_ccs.obj" "./ustdlib.obj" "../2838x_flash_lnk_cm_lwip.cmd"  -l"C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib" -llibc.a 
    <Linking>
    Finished building target: "enet_lwip_udp_cm.out"
     
    
    **** Build Finished ****
    **** Build of configuration Debug for project GRLControllerLWIP ****
    
    "C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 16 all -O 
     
    Building file: "../fs.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="fs.d_raw"  "../fs.c"
    Finished building: "../fs.c"
     
    Building file: "../pinout.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="pinout.d_raw"  "../pinout.c"
    Finished building: "../pinout.c"
     
    Building file: "../GrlPDComm.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="GrlPDComm.d_raw"  "../GrlPDComm.c"
    "../GrlPDComm.c", line 19: warning #515-D: a value of type "volatile uint32_t *" cannot be assigned to an entity of type "uint32_t *"
    "../GrlPDComm.c", line 149: warning #225-D: function "httpLEDToggle" declared implicitly
    "../GrlPDComm.c", line 150: warning #179-D: variable "err" was declared but never referenced
    Finished building: "../GrlPDComm.c"
     
    Building file: "../startup_ccs.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="startup_ccs.d_raw"  "../startup_ccs.c"
    Finished building: "../startup_ccs.c"
     
    Building file: "../f2838xif.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="f2838xif.d_raw"  "../f2838xif.c"
    Finished building: "../f2838xif.c"
     
    Building file: "../ustdlib.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="ustdlib.d_raw"  "../ustdlib.c"
    Finished building: "../ustdlib.c"
     
    Building file: "../httpd.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="httpd.d_raw"  "../httpd.c"
    Finished building: "../httpd.c"
     
    Building file: "../enet_lwip_udp.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="enet_lwip_udp.d_raw"  "../enet_lwip_udp.c"
    "../enet_lwip_udp.c", line 425: warning #552-D: variable "txChan" was set but never used
    "../enet_lwip_udp.c", line 426: warning #179-D: variable "descPtr" was declared but never referenced
    "../enet_lwip_udp.c", line 427: warning #179-D: variable "tailPtr" was declared but never referenced
    "../enet_lwip_udp.c", line 1006: warning #233-D: declaration is not visible outside of function
    "../enet_lwip_udp.c", line 1075: warning #169-D: argument of type "struct ip_addr *" is incompatible with parameter of type "const ip_addr_t *"
    "../enet_lwip_udp.c", line 1096: warning #169-D: argument of type "void (*)(void *, struct udp_pcb *, struct pbuf *, struct ip_addr *, u16_t)" is incompatible with parameter of type "udp_recv_fn"
    "../enet_lwip_udp.c", line 1405: warning #225-D: function "sys_check_timeouts" declared implicitly
    "../enet_lwip_udp.c", line 851: warning #179-D: function "tcp_echoserver_recv" was declared but never referenced
    Finished building: "../enet_lwip_udp.c"
     
    Building file: "../lwiplib.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip" --include_path="D:/V-TE-PWR/EthBased/TI_Workspace/GRLControllerLWIP" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip_udp/cm" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/c2000/C2000Ware_4_00_00_00/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="lwiplib.d_raw"  "../lwiplib.c"
    Finished building: "../lwiplib.c"
     
    Building target: "GRLControllerLWIP.out"
    Invoking: Arm Linker
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --define=_FLASH --define=ccs -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"GRLControllerLWIP.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -i"C:/ti/ccs1040/ccs/tools/compiler" -i"C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="GRLControllerLWIP_linkInfo.xml" --rom_model -o "GRLControllerLWIP.out" "./GrlPDComm.obj" "./enet_lwip_udp.obj" "./f2838xif.obj" "./fs.obj" "./httpd.obj" "./lwiplib.obj" "./pinout.obj" "./startup_ccs.obj" "./ustdlib.obj" "../2838x_flash_lnk_cm.cmd"  -l"C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib" -llibc.a 
    <Linking>
    Finished building target: "GRLControllerLWIP.out"
     
    
    **** Build Finished ****

    --Pranay.

  • Pranay,

    Thanks for providing these files. Request you to also share the ".map" files for both these projects. Can you check  if the driverlib_cm library is allocated to a valid address in the map file.? 

    Best Regards

    Siddharth

  • Hi Siddharth,

    Please find the attached zip file of working and non working map files.

    working and non working map files.zip

    I see that driverlib_cm is allocated memory and it is in valid range as per memory browser. Any other way to ensure that driverlib_cm library is allocated to a valid address ?


    Thanks and regards,
    pranay

  • Pranay,

    Looks like a stack overflow issue. Can you increase the stack size and try to run it again?

    Best Regards

    Siddharth

  • Got it, Changed the stack size in .cmd file. So now I allocated 24k Stack size.

    It is working.

    I needed this for Ethernet based Second stage bootloader application for CM core.

    Is this okay ? or Do you have any suggestions.

    Thanks and regards,

    Pranay

  • Pranany,

    Glad that you were able to get it working.  

    Can you briefly explain how do you intend to use the bootloader application?

    Best Regards

    Siddharth

  • Siddharth,

    My requirement is something like this: "https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/984448/tms320f28388d-firmware-update"

    CM is the communication interface with our SW Application that streams FW for all cores over TCP, CPU1/CPU2 FWs shall be updated via IPC to flash and CM shall be updated over TCP to flash. We will be developing custom SSBL that handles TCP for CM core and CPU1/CPU2 has its own custom SSBL to write FW to required Flash location and Boot.

    Let me know if you foresee any issues or will this approach actually works ?

    --Pranay

  • Pranay,

    If you are looking for updating firmware using Ethernet , then this is fine since Ethernet is only accessible from CM core and not from CPU1/CPU2. 

    Best Regards

    Siddharth

  • Hi Siddharth,

    Thanks for the reply.

    with the above created project I tried adding the functions available in "flashapi_cm_ex1_programming" example.

    When I added function "Fapi_initializeAPI(F021_CPU0_BASE_ADDRESS,200)" and built. It is giving me below error:

    Description    Resource    Path    Location    Type
    #16004-D file "C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib<ethernet.obj>" has a Tag_ABI_VFP_args attribute value of "0" that is different than one previously seen ("1"); combining incompatible files    GRL_PD_Comm_SSBL_CM             C/C++ Problem

    Find the respective console log below:

    **** Build of configuration Debug for project GRL_PD_Comm_SSBL_CM ****
    
    "C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 16 all -O 
     
    Building target: "GRL_PD_Comm_SSBL_CM.out"
    Invoking: Arm Linker
    "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me --define=DEBUG --define=_FLASH -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"GRL_PD_Comm_SSBL_CM.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/lib" -i"C:/ti/c2000/C2000Ware_3_04_00_00/libraries/flash_api/f2838x/cm/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -i"C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="GRL_PD_Comm_SSBL_CM_linkInfo.xml" --rom_model -o "GRL_PD_Comm_SSBL_CM.out" "./GrlPDComm.obj" "./enet_lwip_udp.obj" "./f2838xif.obj" "./fs.obj" "./httpd.obj" "./lwiplib.obj" "./pinout.obj" "./startup_ccs.obj" "./ustdlib.obj" "../F2838x_CM_FlashAPI.lib" "../GRLPDComm_CM.cmd"  -llibc.a -l"C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib" 
    <Linking>
    error #16004-D: file "C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib<ethernet.obj>" has a Tag_ABI_VFP_args attribute value of "0" that is different than one previously seen ("1"); combining incompatible files
    error #10010: errors encountered during linking; "GRL_PD_Comm_SSBL_CM.out" not built
     
    >> Compilation failure
    makefile:151: recipe for target 'GRL_PD_Comm_SSBL_CM.out' failed
    gmake[1]: *** [GRL_PD_Comm_SSBL_CM.out] Error 1
    gmake[1]: Target 'secondary-outputs' not remade because of errors.
    makefile:147: recipe for target 'all' failed
    gmake: *** [all] Error 2
    
    **** Build Finished ****

    This is my project structure:

    include options:

    File Search path:

    predefined symbols:

    Error window:

    I believe it is something got to do with floating point support so I tried changing the floating point support options but that didn't help - it is not taking any other value apart from None.

    Can you please help me out here.

    --Pranay

  • Pranay, 

    I see that the include paths are from two different versions of C2000Ware - 3_04_00_00 and 4_00_00_00 . 

    Not sure whether this is causing this issue.  Can you try correcting these paths and see if the issue is resolved.

    Best Regards

    Siddharth

  • Hi Siddharth,

    I did that, I tried changing all the include options to c2000_4_00_00_00. Please find the below image:

    But that didn't sort the issue. Disappointed

    Can you please let me know if any other alternates.

    --Pranay

  • Pranay, 

    Not sure what is causing this issue.. will check with some other members in the team and update you.

    In the meantime,  can you try import the 'f2838x_driverlib_cm' project for f2838x and recompile the driverib_cm.lib library?  This is located at C:\ti\c2000\C2000Ware_4_00_00_00\driverlib\f2838x\driverlib_cm\ccs

    Best Regards

    Siddharth

  • Hi Siddharth,

    I did that. I have imported f2838x_driverlib_cm project and compiled, I'm able to build without any errors.

    And then I tried building my project but it is still having same errors. Is this what you want me do ? correct me otherwise.

    Thanks and regards,

    Pranay.

  • Pranay ,

    Yes, that's what I intended to try.   I was thinking that the driverlib_cm project and your project had some different compile options which maybe causing this issue. However , it doesn't seem to resolve it.

    Will check with some other members in the team regarding the issue and keep you posted.

    Best Regards

    Siddharth

  • Hi Siddharth,

    Any updates here ? I'm waiting for your inputs.

    --Pranay

  • Pranay, 

    Unfortunately I don't have any updates .

    I tried to replicate the issue with the enet_lwip_udp example . Imported the existing project for enet_lwip_udp and then linked the lib "F2838x_CM_FlashAPI.lib" to the project and then updated the include path to add "C:\ti\c2000\C2000Ware_4_00_00_00\libraries\flash_api\f2838x\cm\include\FlashAPI" path and then added the following code to enet_lwip_udp.c file to invoke the Flash API in the main() function.

    Fapi_initializeAPI(F021_CPU0_BASE_ADDRESS,200);

    I am able to build this project without any issues. Hence not sure what could be causing the issue on your end.

    Can you try doing the same steps with the existing enet_lwip_udp project?

    Best Regards

    Siddharth