AnsweredAssumed Answered

Using BeyondStudio for NXP JN5169 I can't seem to get set up to access function ZPS_u64AplZdoGetIeeeAddr() so I can extract the MAC address.

Question asked by Randy Richardson on Apr 23, 2019
Latest reply on Apr 26, 2019 by Randy Richardson

I am following "JN-AN-1172-JN516x-Customer-Module-Evaluation-Tool" as an initial basis for my application.  I have the following includes:


#include <AppHardwareApi.h>
#include <JPT.h>


When I try to compile and link the following command:


mac = ZPS_u64AplZdoGetIeeeAddr(); //Get device MAC address


I get the following linker messages for the resulting error:


C:\Users\RRICHA~1\AppData\Local\Temp\ccKiZs35.ltrans1.ltrans.o: In function `AppColdStart':
ccKiZs35.ltrans1.o:(.text+0x104): undefined reference to `ZPS_u64AplZdoGetIeeeAddr'
ccKiZs35.ltrans1.o:(.text+0x104): relocation truncated to fit: R_BA_18_PCREL against undefined symbol `ZPS_u64AplZdoGetIeeeAddr'
collect2.exe: error: ld returned 1 exit status
make: *** [AN1172_CustomerModuleEvalTool_JN5169.elf] Error 1


What am I missing in the setup to be able to access this function?