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.

RTOS: CC2640R2F simplelink_cc2640r2_sdk_1_40_00_45 multi_role example add OAD off-chip and NPI UART issue

Other Parts Discussed in Thread: CC2640R2F

Tool/software: TI-RTOS

Hi

   We are using simplelink_cc2640r2_sdk_1_40_00_45 (BLE 4.2 stack) and running multi_role project add

   IDE CCS:  Version: 7.1.0.00016 
   BLE SDK:         1_40_00_45 (BLE 4.2 stack)
   PC system:     Win10

  example project: multi_role add function
  1.add OAD off-chip function running OK
  2.add NPI UART follow
      1.in predefined symbols add NPI_USE_UART and NPI_FLOW_CTRL=0
      2.in include options add "${SRC_BLE_DIR}/../../../source/ti/blestack/npi/src/"
      3.in multi_role add Folder NPI and add files
             npi_rxbuf.c
             npi_task.c
             npi_task.h
             npi_tl_uart.c
             npi_tl.c
      4. in main.c add follow
                      #include "inc/npi_task.h" 

                     /*NPIUARTExampleTask-Priority2*/
                     NPITask_createTask(2);

 3.build following era errors   

undefined first referenced
symbol in file
--------- ----------------
NPIFrame_collectFrameData <whole-program>
NPIFrame_frameMsg <whole-program>
NPIFrame_initialize <whole-program>

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

Regards,

     Justin

    

  

  • Hi,

    I believe you are missing some function that are defined in npi_frame_hci.c which is used by NPI as suggested by the error message.

    Best wishes
  • Hi Zahid Haq

             Thanks Reply.

             I in NPI folder add npi_frame_hci.c file and in Predefind Symbols  reivse ICALL_MAX_NUM_TASKS= 3 update ICALL_MAX_NUM_TASKS=4 build OK, download CC2640R2F launchPad running ok ,iphone can find multi_role broadcast,iphone LightBlue App to connect Multi_Role ,can't connected,

     Debug multi_Role project pls see image:

    Thanks

          Justin