I want to use EtherGetMacAddr() to get MAC address !
I add EtherGetMacAddr() function MCUSDK tcpEcho example but can't not build , console will show undefined symbol while linking .
I think it maybe relate header files and lib not include . But after I include header files and lib . console still show undefined symbol like below:
**** Build of configuration Debug for project DK_LM3S9D96_tcpEcho ****
C:\ti\ccsv5\utils\bin\gmake -k all
'Building target: DK_LM3S9D96_tcpEcho.out'
'Invoking: ARM Linker'
"C:/ti/ccsv5/tools/compiler/tms470_4.9.1/bin/cl470" -mv7M3 --code_state=16 --abi=eabi -me -g --gcc --define=PART_LM3S9D96 --define=TARGET_IS_TEMPEST_RB1 --define=ccs --diag_warning=225 --display_error_number --gen_func_subsections=on -z --stack_size=256 -m"DK_LM3S9D96_tcpEcho.map" --heap_size=0 -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.1/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.1/include" --reread_libs --warn_sections --display_error_number --rom_model -o "DK_LM3S9D96_tcpEcho.out" -l"./configPkg/linker.cmd" "./tcpEcho.obj" "./DK_LM3S9D96.obj" -l"C:\ti\mcusdk_1_00_00_68\products\ndk_2_21_01_38\packages\ti\ndk\stack\lib\stk_nat_ppp_pppoe.aem3" -l"libc.a" -l"C:/ti/mcusdk_1_00_00_68/products/StellarisWare_9107/driverlib/ccs-cm3/Debug/driverlib-cm3.lib" "../DK_LM3S9D96.cmd"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
EtherGetMacAddr ./tcpEcho.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "DK_LM3S9D96_tcpEcho.out" not
built
>> Compilation failure
gmake: *** [DK_LM3S9D96_tcpEcho.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
I think I include the correct header file <ti/ndk/inc/_stack.h>
Do i call the function on the wrong place ? see attach . 0842.tcpEcho.c
Do i link the right Lib or some other problem ? see attach
MCUSDK version:1_00_00_68
Board : DK_LM3S9D96
ccs Version: 5.2.0.00069