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.

getting linking error while building keyfob demo using IAR workbench

Other Parts Discussed in Thread: CC2540, TRF7960, TRF7961

hi

    I am a newbie. I am working with Iar workbench for the first time.I need accelorometer readings.so I have to generate a hex file using IAR but I am getting linking error.Any files to be included?I am using cc2540f256 and the linker as lnk51ew_cc2540f256_banked.xcl

  • Hi,

    Can you please post the linkage error you are getting while building the project.

  • This is exactly what I am  getting

    Error[e46]: Undefined external "main" referred in ?cmain ( C:\Program Files\IAR Systems\Embedded Workbench 6.0  

    Evaluation\8051\LIB\CLIB\cl-pli-blxd-1e16x01.r51 )

    Error while running Linker



  • Hi,

    You haven't mentioned it, but I guessing you are working with BLE stack?

    If this is the case, uninstall it, and do a clean install again, then try to

    compile one of the projects with IAR.

  • I tried reinstalling btool but it didnot work I think the problem is with main.There is no main in keyfobdemo program.When I tried modifying the program by including main I am not getting any errors but I dont think all the files are getting included.the keyfob is not gettiong detected using dongle

  • I got it when i tried again thank you

  • Hi

           I want to interface cc2540 USB Dongle with a microcontroller and monitor accelerometer signals. can I do that?

  • Hi,

    I'm not a bluetooth guy, so I suggest you to start a new thread with your question.

  • i have the same problem... here is error message i gate

    ------------------------

    Error[e46]: Undefined external "?cstart_init_zero" referred in anticollision ( C:\Documents and Settings\Administrator\Desktop\TRF7960 Documents\
    TRF7961_Firmware_V3.2_EXP ( Source Code Of ISO15693 Only )_ baud\Debug\Obj\anticollision.r43 )
    Error[e46]: Undefined external "?Epilogue8" referred in anticollision ( C:\Documents and Settings\Administrator\Desktop\TRF7960 Documents\
    TRF7961_Firmware_V3.2_EXP ( Source Code Of ISO15693 Only )_ baud\Debug\Obj\anticollision.r43 )
    Error[e46]: Undefined external "?cstart_init_copy" referred in host ( C:\Documents and Settings\Administrator\Desktop\TRF7960 Documents\
    TRF7961_Firmware_V3.2_EXP ( Source Code Of ISO15693 Only )_ baud\Debug\Obj\host.r43 )
    Error[e46]: Undefined external "?ShiftLeft16" referred in parallel ( C:\Documents and Settings\Administrator\Desktop\TRF7960 Documents\
    TRF7961_Firmware_V3.2_EXP ( Source Code Of ISO15693 Only )_ baud\Debug\Obj\parallel.r43 )

    -------------------------------------------------

    i reinstall iar but problem still there