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.

CC2642R: How enable NPI protocol for SPI to communicate Application Processor

Part Number: CC2642R
Other Parts Discussed in Thread: SYSBIOS, CC2650, CC2640R2F,

Hi,

I am using simple_central application. I want to communication to my application processor(AP) over SPI interface. How to enable NPI layer and communicate to AP.

ccs - Code Composer Studio 10.1.1

sdk - simplelink_cc13x2_26x2_sdk_4_30_00_54

Archana

  • Hi Archana,

    The BLE5-Stack User's Guide contains information regarding the files which must be included to support the UNPI.  You can reference the host_test example, be sure to define NPI_SPI_CONFIG and NPI_USE_SPI (instead of NPI_USE_UART) accordingly

    Regards,
    Ryan

  • I added NPI protocol files. It giving linker error in CCS. 

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


    **** Build of configuration Release for project simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs ****

    /home/user/ti/ccs1011/ccs/utils/bin/gmake -k -j 4 all -O

    making ../src/sysbios/rom_sysbios.aem4f ...
    gmake[1]: Nothing to be done for 'all'.
    making ../src/sysbios/rom_sysbios.aem4f ...
    gmake[2]: Nothing to be done for 'all'.
    Building target: "simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out"
    Invoking: ARM Linker
    "/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_ble_app_config.opt" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_build_config.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/build_components.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/factory_config.opt" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --define=DeviceFamily_CC26X2 --define=FLASH_ROM_BUILD --define=NVOCMP_NWSAMEITEM=1 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.map" -i"/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source" -i"/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages" -i"/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/lib" --reread_libs --define=FLASH_ROM_BUILD=2 --diag_suppress=16002-D --diag_suppress=10247-D --diag_suppress=10325-D --diag_suppress=10229-D --diag_suppress=16032-D --diag_wrap=off --display_error_number --warn_sections --xml_link_info="simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs_linkInfo.xml" --rom_model -o "simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out" "./syscfg/ti_ble_config.obj" "./syscfg/ti_devices_config.obj" "./syscfg/ti_radio_config.obj" "./syscfg/ti_drivers_config.obj" "./Application/board_key.obj" "./Application/simple_central.obj" "./Application/simple_central_menu.obj" "./Application/two_btn_menu.obj" "./Application/util.obj" "./Drivers/NV/crc.obj" "./Drivers/NV/nvocmp.obj" "./NPI/src/npi_frame_hci.obj" "./NPI/src/npi_rxbuf.obj" "./NPI/src/npi_task.obj" "./NPI/src/npi_tl.obj" "./NPI/src/npi_tl_spi.obj" "./NPI/src/npi_tl_uart.obj" "./Startup/ble_user_config_stack.obj" "./Startup/main.obj" "./Startup/osal_icall_ble.obj" "./Startup/rom_init.obj" "./iCall/icall.obj" "./iCall/icall_cc2650.obj" "./iCall/icall_user_config.obj" "./iCallBLE/ble_user_config.obj" "./iCallBLE/icall_api_lite.obj" "../cc13x2_cc26x2_app.cmd" -l"configPkg/linker.cmd"
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    AESCCM_Operation_init <whole-program>
    AESCCM_Params_init <whole-program>
    AESCCM_close <whole-program>
    AESCCM_init <whole-program>
    AESCCM_oneStepDecrypt <whole-program>
    AESCCM_oneStepEncrypt <whole-program>
    AESCCM_open <whole-program>
    AESECB_Operation_init <whole-program>
    AESECB_Params_init <whole-program>
    AESECB_close <whole-program>
    AESECB_init <whole-program>
    AESECB_oneStepDecrypt <whole-program>
    AESECB_oneStepEncrypt <whole-program>
    AESECB_open <whole-program>
    CryptoKeyPlaintext_initBlankKey <whole-program>
    CryptoKeyPlaintext_initKey <whole-program>
    ECDH_OperationComputeSharedSecret_init <whole-program>
    ECDH_OperationGeneratePublicKey_init <whole-program>
    ECDH_Params_init <whole-program>
    ECDH_close <whole-program>
    ECDH_computeSharedSecret <whole-program>
    ECDH_generatePublicKey <whole-program>
    ECDH_init <whole-program>
    ECDH_open <whole-program>
    NISTP256_a <whole-program>
    NISTP256_b <whole-program>
    NISTP256_generator <whole-program>
    NISTP256_order <whole-program>
    NISTP256_prime <whole-program>
    NOROM_CPUcpsid /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/src/sysbios/rom_sysbios.aem4f<rom_sysbios.obj>
    NOROM_CPUcpsie /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/src/sysbios/rom_sysbios.aem4f<rom_sysbios.obj>
    NOROM_SetupTrimDevice /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/src/sysbios/rom_sysbios.aem4f<rom_sysbios.obj>
    Power_idleFunc /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/configPkg/package/cfg/simple_central_app_pem4f.oem4f
    Power_releaseConstraint <whole-program>
    Power_releaseDependency <whole-program>
    Power_setConstraint <whole-program>
    Power_setDependency <whole-program>
    RF_Params_init <whole-program>
    RF_cancelCmd <whole-program>
    RF_control <whole-program>
    RF_flushCmd <whole-program>
    RF_getCmdOp <whole-program>
    RF_getCurrentTime <whole-program>
    RF_getInfo <whole-program>
    RF_getRssi <whole-program>
    RF_open <whole-program>
    RF_ratCompare <whole-program>
    RF_ratDisableChannel <whole-program>
    RF_runDirectCmd <whole-program>
    RF_runImmediateCmd <whole-program>
    RF_runScheduleCmd <whole-program>
    RF_scheduleCmd <whole-program>
    RF_setTxPower <whole-program>
    TRNG_close <whole-program>
    TRNG_generateEntropy <whole-program>
    TRNG_init <whole-program>
    TRNG_open <whole-program>
    __TI_decompress_lzss
    __TI_decompress_none
    __TI_zero_init
    __aeabi_lmul /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/src/sysbios/rom_sysbios.aem4f<rom_sysbios.obj>
    __aeabi_uidivmod /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/src/sysbios/rom_sysbios.aem4f<rom_sysbios.obj>
    __aeabi_uldivmod <whole-program>
    _args_main /home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages/ti/targets/arm/rtsarm/lib/boot.aem4f<boot.oem4f>
    _nop /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/configPkg/package/cfg/simple_central_app_pem4f.oem4f
    _register_lock /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/configPkg/package/cfg/simple_central_app_pem4f.oem4f
    _register_unlock /home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/configPkg/package/cfg/simple_central_app_pem4f.oem4f
    abort <whole-program>
    copy_in /home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages/ti/targets/arm/rtsarm/lib/auto_init.aem4f<auto_init.oem4f>
    main_func_sp /home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages/ti/targets/arm/rtsarm/lib/boot.aem4f<boot.oem4f>
    memset <whole-program>

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out" not built

    >> Compilation failure
    makefile:177: recipe for target 'simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out' failed
    gmake[1]: *** [simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out] Error 1
    gmake: *** [all] Error 2
    makefile:173: recipe for target 'all' failed

    **** Build Finished ****

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

    What can be done to resolve this linker error?

  • These errors mostly seem related to the TI Drivers, not specifically NPI inclusion issues.  What all changes did you make to your project to cause such problems?  I did not observe similar behavior after adding the NPI folder to my project and adding it to the Project Properties -> Build -> ARM Compiler -> Include Options, however I am sure that our approaches are different.

    Regards,
    Ryan

  • Hi,

    I added NPI files to simple central app as link files. I also included the path. Now i am getting below error :- 

    #1965 cannot open source file "inc/npi_config.h"

    Below is compilation logs

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


    **** Build of configuration Release for project simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs ****

    /home/user/ti/ccs1011/ccs/utils/bin/gmake -k -j 4 all -O

    making ../src/sysbios/rom_sysbios.aem4f ...
    gmake[1]: Nothing to be done for 'all'.
    Building file: "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_rxbuf.c"
    Invoking: ARM Compiler
    "/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_ble_app_config.opt" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_build_config.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/build_components.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/factory_config.opt" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Application" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/NPI" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/controller/cc26xx/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/rom" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/heapmgr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/dev_info" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/simple_profile" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/osal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/saddr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/sdata" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/nv" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/devices/cc13x2_cc26x2" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/posix/ccs" --include_path="/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --include_path="../ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --define=DeviceFamily_CC26X2 --define=FLASH_ROM_BUILD --define=NVOCMP_NWSAMEITEM=1 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="NPI/npi_rxbuf.d_raw" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg" --obj_directory="NPI" --cmd_file="syscfg/ti_build_config.opt" --cmd_file="syscfg/ti_ble_app_config.opt" --cmd_file="configPkg/compiler.opt" "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_rxbuf.c"

    >> Compilation failure
    NPI/subdir_rules.mk:14: recipe for target 'NPI/npi_rxbuf.obj' failed
    "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc/npi_tl.h", line 58: fatal error #1965: cannot open source file "inc/npi_config.h"
    1 catastrophic error detected in the compilation of "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_rxbuf.c".
    Compilation terminated.
    gmake: *** [NPI/npi_rxbuf.obj] Error 1
    Building file: "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_task.c"
    Invoking: ARM Compiler
    "/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_ble_app_config.opt" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_build_config.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/build_components.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/factory_config.opt" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Application" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/NPI" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/controller/cc26xx/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/rom" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/heapmgr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/dev_info" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/simple_profile" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/osal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/saddr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/sdata" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/nv" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/devices/cc13x2_cc26x2" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/posix/ccs" --include_path="/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --include_path="../ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --define=DeviceFamily_CC26X2 --define=FLASH_ROM_BUILD --define=NVOCMP_NWSAMEITEM=1 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="NPI/npi_task.d_raw" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg" --obj_directory="NPI" --cmd_file="syscfg/ti_build_config.opt" --cmd_file="syscfg/ti_ble_app_config.opt" --cmd_file="configPkg/compiler.opt" "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_task.c"

    >> Compilation failure
    NPI/subdir_rules.mk:21: recipe for target 'NPI/npi_task.obj' failed
    "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc/npi_tl.h", line 58: fatal error #1965: cannot open source file "inc/npi_config.h"
    1 catastrophic error detected in the compilation of "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_task.c".
    Compilation terminated.
    gmake: *** [NPI/npi_task.obj] Error 1
    "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc/npi_tl.h", line 58: fatal error #1965: cannot open source file "inc/npi_config.h"
    1 catastrophic error detected in the compilation of "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_tl_spi.c".
    Compilation terminated.
    gmake: *** [NPI/npi_tl_spi.obj] Error 1
    "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc/npi_tl.h", line 58: fatal error #1965: cannot open source file "inc/npi_config.h"
    1 catastrophic error detected in the compilation of "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_tl.c".
    Compilation terminated.
    gmake: *** [NPI/npi_tl.obj] Error 1
    Building file: "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_tl_spi.c"
    Invoking: ARM Compiler
    "/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_ble_app_config.opt" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_build_config.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/build_components.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/factory_config.opt" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Application" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/NPI" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/controller/cc26xx/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/rom" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/heapmgr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/dev_info" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/simple_profile" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/osal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/saddr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/sdata" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/nv" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/devices/cc13x2_cc26x2" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/posix/ccs" --include_path="/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --include_path="../ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --define=DeviceFamily_CC26X2 --define=FLASH_ROM_BUILD --define=NVOCMP_NWSAMEITEM=1 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="NPI/npi_tl_spi.d_raw" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg" --obj_directory="NPI" --cmd_file="syscfg/ti_build_config.opt" --cmd_file="syscfg/ti_ble_app_config.opt" --cmd_file="configPkg/compiler.opt" "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_tl_spi.c"

    >> Compilation failure
    NPI/subdir_rules.mk:35: recipe for target 'NPI/npi_tl_spi.obj' failed
    Building file: "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_tl.c"
    Invoking: ARM Compiler
    "/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_ble_app_config.opt" --cmd_file="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_build_config.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/build_components.opt" --cmd_file="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/factory_config.opt" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Application" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/NPI" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/controller/cc26xx/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/rom" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/target/_common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/hal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/heapmgr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/dev_info" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/profiles/simple_profile" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/icall/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/osal/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/saddr" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/services/src/sdata" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/nv" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/common/cc26xx" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/devices/cc13x2_cc26x2" --include_path="/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/posix/ccs" --include_path="/home/user/ti/ccs1011/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --include_path="../ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/inc" --define=DeviceFamily_CC26X2 --define=FLASH_ROM_BUILD --define=NVOCMP_NWSAMEITEM=1 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="NPI/npi_tl.d_raw" --include_path="/home/user/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg" --obj_directory="NPI" --cmd_file="syscfg/ti_build_config.opt" --cmd_file="syscfg/ti_ble_app_config.opt" --cmd_file="configPkg/compiler.opt" "/home/user/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/npi/src/npi_tl.c"

    >> Compilation failure
    NPI/subdir_rules.mk:28: recipe for target 'NPI/npi_tl.obj' failed
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

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

  • Have you added ti\simplelink_cc13x2_26x2_sdk_4_30_00_54\source\ti\ble5stack\npi\src to your Include Options?  This is where referencing the host_test example will be useful.

    Regards,
    Ryan

  • After adding ti\simplelink_cc13x2_26x2_sdk_4_30_00_54\source\ti\ble5stack\npi\src to include path. I am getting the previous error.

    Any driver iclusion also required? or any config change?

  • Make sure that npi_config.h exists in the inc folder, try removing the mention of inc altogether and only include "npi_config.h", or perhaps attempt creating a local copy.  

    Regards,
    Ryan

  • Yes Ryan , I tried that and I got compilation issue the one which I have shared in my second comment

    Regards,

    Archana

  • You mean linker issues?  I can only recommend that you continue trying to change Include Options and File Search Path based on the errors you are receiving.

    Regards,
    Ryan

  • Hi,

    I used simple peripheral application and added SPI into it. It compiles fine. But for simple central app still the linker issue remains the same.

    Regards,

    Archana

  • I'm not seeing as many File Search Paths with your Linker as I am with mine, especially driverlib

    Invoking: ARM Linker
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" --cmd_file="C:/Users/a0274016/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_ble_app_config.opt" --cmd_file="C:/Users/a0274016/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_build_config.opt" --cmd_file="C:/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/build_components.opt" --cmd_file="C:/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source/ti/ble5stack/config/factory_config.opt" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --define=DeviceFamily_CC26X2 --define=FLASH_ROM_BUILD --define=NVOCMP_NWSAMEITEM=1 --define=NPI_SPI_CONFIG --define=NPI_USE_SPI -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.map" -i"C:/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/source" -i"C:/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/kernel/tirtos/packages" -i"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/lib" --reread_libs --define=FLASH_ROM_BUILD=2 --diag_suppress=16002-D --diag_suppress=10247-D --diag_suppress=10325-D --diag_suppress=10229-D --diag_suppress=16032-D --diag_wrap=off --display_error_number --warn_sections --xml_link_info="simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs_linkInfo.xml" --rom_model -o "simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out" "./syscfg/ti_ble_config.obj" "./syscfg/ti_devices_config.obj" "./syscfg/ti_radio_config.obj" "./syscfg/ti_drivers_config.obj" "./Application/board_key.obj" "./Application/simple_central.obj" "./Application/simple_central_menu.obj" "./Application/two_btn_menu.obj" "./Application/util.obj" "./Drivers/NV/crc.obj" "./Drivers/NV/nvocmp.obj" "./NPI/Transport/SPI/npi_tl_spi.obj" "./NPI/Transport/npi_tl.obj" "./NPI/npi_frame_hci.obj" "./NPI/npi_rxbuf.obj" "./Startup/ble_user_config_stack.obj" "./Startup/main.obj" "./Startup/osal_icall_ble.obj" "./Startup/rom_init.obj" "./iCall/icall.obj" "./iCall/icall_cc2650.obj" "./iCall/icall_user_config.obj" "./iCallBLE/ble_user_config.obj" "./iCallBLE/icall_api_lite.obj" "../cc13x2_cc26x2_app.cmd" -l"configPkg/linker.cmd" -l"C:/Users/a0274016/workspace_v10/simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs/Release/syscfg/ti_utils_build_linker.cmd.genlibs" -l"ti/devices/cc13x2_cc26x2/driverlib/bin/ccs/driverlib.lib" -llibc.a
    <Linking>

    You may consider restarting with a fresh project.

    Regards,
    Ryan

  • Hello Archana,

    Looks like we need to revisit your actual usage example again. The CC2642R and its SDK does not support the Simple_NPI interface - this is supported only on the earlier CC2640R2F at this time. 

    The Simple_central app is a self-contained application running on the CC2642R. You can have another communication task to transfer messages over SPI to another processor - but that would be independent of any bluetooth specific operations. 

    hope this helps.

    Regards,

    Prasanna.

  • I tried adding file search path to resolve the linker issue but it did not help. As further info can not be shared here on this forum. Looking for private support e.g; debug session