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.

Error[e46]: Undefined external "primaryServiceUUID" referred in accelerometer

Other Parts Discussed in Thread: Z-STACK

Hello

i get an error

Error[e46]: Undefined external "primaryServiceUUID" referred in accelerometer ( C:\Users\matthew\Desktop\research thesis\Keyfobdemo\Projects\ble\KeyFob\CC2540DB\CC2540DK-mini Keyfob Slave\Obj\accelerometer.r51 ) .

pls can someone help me to solve the problem.

  From matthew.

  • did u link library which u created?

    i too had same truble while working with zstack  solved by following steps...

    right click on project name in wprk space ->add -> add files -> select .lib or .r51 file (from location where u have created library file -> exe->.......)

     

    & also attach .h file location in option -> c\c++ complier ->preprocessor......

     

    Hope it will work....

  • This looks like it could possibly be an issue of the library being built with IAR 7.60.7 and the project being built with IAR 8.10, or vice versa.

     

  • Hi,

     I'm facing a similar issue and am not able to resolve it.

    I'm using IAR 8.30.3.

    When I try to compile znp project I'm getting the following error

    Error[e46]: Undefined external "?V1" referred in AF ( C:\Texas Instruments\ZStack-CC2530-2.5.1a\Projects\zstack\ZNP\CC253x\CC2530-Debug\Obj\AF.r51 )

    How to resolve this?

    Any suggestions?

    Regards,

    Vamsi.

  • Hi Vansi,

    You can refer to my answer at e2e.ti.com/support/low_power_rf/f/158/t/304927.aspx

  • Thank you YiKai Chen. 

    your answer at  e2e.ti.com/support/low_power_rf/f/158/t/304927.aspx   worked.

    It compiles now.

    rgrds,

    Vamsi

     

     

  • Hi,

    I'm using a 8.2V IAR, and received those errors, any idea how to solve it?


    Warning[w60]: The entry point label "__program_start" was not found in any input file. The image will not have an entry point.
    Error[e46]: Undefined external "__program_start" referred in ?ABS_ENTRY_MOD ( )
    Error[e46]: Undefined external "?V0" referred in xxx ( C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error[e46]: Undefined external "?L_MOV_X" referred in xxx ( C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error[e46]: Undefined external "T4_ovf_cnt" referred in xxx (  C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error[e46]: Undefined external "?L_ADD_TO_X" referred in xxx (  C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error[e46]: Undefined external "?INTERRUPT_ENTER_XSP" referred in xxx (  C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error[e46]: Undefined external "halMcuWaitMs::?relay" referred in xxx (  C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error[e46]: Undefined external "?INTERRUPT_LEAVE_XSP" referred in xxx (  C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error[e46]: Undefined external "__INIT_XDATA_I" referred in xxx (  C:\Users\user\Documents\IAR Embedded Workbench\...\Debug\Obj\xxx.r51 )
    Error while running Linker

    thanks!

    Asaf.

  • Which Z-Stack version and HW do you use?