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.

CC2640R2F: IAR Compiler cant find defines from Stack

Part Number: CC2640R2F

After switching some C-Files in application i get error messages from Linker:

The Stack from the multi_role example project was used.

Do i need switch files in Stack too?

Do i miss some includes?

Do i simply need to change compiler options?

Any help would be appreciated.

  • Saddly the error message screenshot was not attached.

    Error[Li005]: no definition for "ROM_BASE_ADDR" [referenced from
    D:\uidr2315\R2_Upgrade\ble_stack\obj\rom_init.o]
    Error[Li005]: no definition for "RAM_BASE_ADDR" [referenced from
    D:\uidr2315\R2_Upgrade\ble_stack\obj\rom_init.o]
    Error[Li005]: no definition for "HCI_LE_GenerateDHKeyCmd" [referenced from
    D:\uidr2315\R2_Upgrade\ble_stack\obj\rom_init.o]
    Error[Li005]: no definition for "HCI_LE_ReadLocalP256PublicKeyCmd" [referenced
    from D:\uidr2315\R2_Upgrade\ble_stack\obj\rom_init.o]
    Error[Li005]: no definition for "LL_GenerateDHKeyCmd" [referenced from
    D:\uidr2315\R2_Upgrade\ble_stack\obj\rom_init.o]

    and lots more, all referenced from rom_init
  • Hi Gunter,

    What did you move around?

    It looks like the the compiler wasn't able to compile some of the configuration .c files.

    Regards,
    Rebel
  • Good morning,

    first of all thank you for the reply.

    All the errors i get are related to the "rom_init.c" which is used in the stack. But when i do a rebuild of the stack i get the following:

     Starting Compilation for [ble_dispatch_JT.o]...[OK]

     Starting Compilation for [ble_dispatch_lite.o]...[OK]

     Starting Compilation for [common_rom_init.o]...[OK]

     Starting Compilation for [gap.o]...[OK]

     Starting Compilation for [ble_user_config.o]...[OK]

     Starting Compilation for [gatt_uuid.o]...[OK]

     Starting Compilation for [gattservapp_util.o]...[OK]

     Starting Compilation for [gapbondmgr.o]...[OK]

     Starting Compilation for [hal_assert.o]...[OK]

     Starting Compilation for [hal_flash_wrapper.o]...[OK]

     Starting Compilation for [hal_trng_wrapper.o]...[OK]

     Starting Compilation for [icall_lite_translation.o]...[OK]

     Starting Compilation for [icall_startup.o]...[OK]

     Starting Compilation for [npi.o]...[OK]

     Starting Compilation for [onboard.o]...[OK]

     Starting Compilation for [osal_bufmgr.o]...[OK]

     Starting Compilation for [osal.o]...[OK]

     Starting Compilation for [osal_cbtimer.o]...[OK]

     Starting Compilation for [osal_clock.o]...[OK]

     Starting Compilation for [osal_memory_icall.o]...[OK]

     Starting Compilation for [osal_icall_ble.o]...[OK]

     Starting Compilation for [osal_pwrmgr.o]...[OK]

     Starting Compilation for [osal_snv_wrapper.o]...[OK]

     Starting Compilation for [osal_timers.o]...[OK]

     Starting Compilation for [sm_ecc.o]...[OK]

     Starting Compilation for [rom_init.o]...[OK]

    So the stack is all OK, but when i try and link the stack in the app i start getting errors. Any further ideas?

  • Try to install SDK to default folder which is c:\ti.
  • It was allready installed in the default location.
    Nevertheless i did a unintsall and reinstall -> No improvement.
  • Hi Gunter,

    I'm still curious what you moved around - this issue only occurs when you move around files right?

    If this is happening out of the box, that's a much bigger issue.

    Regards,
    Rebel