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.

在simple peripheral例程添加OAD 报错希望能够得到解答

Other Parts Discussed in Thread: CC2640R2F

您好,CC2640R2F,我按照片外simple peripheral OAD 例程 以及 官方在multi Role 添加OAD的指导,自己在例程simple peripheral里面添加OAD ,按步完成后,bulid会有这个未定义的报错:

请问 stackImageHeader 和GATT_SendRsp 是应该在哪儿定义啊?谢谢解答,忙了好久一直不通

  • stackImageHeader在main.c中定义
    GLOBAL VARIABLES
    */
    // The stack's image header is found at runtime, available for entire app to use
    const imgHdr_t *stackImageHeader = NULL;
    GATT_SendRsp在gatt.h中
  • 您好,谢谢,我现在第一个报错解决了。还是第二个Description Resource Path Location Type
    unresolved symbol GATT_SendRsp, first referenced in <whole-program> simple_peripheral_cc2640r2lp_app C/C++ Problem
    我添加了定义还是存在报错
  • 这个和上面那个错误一样,定义是在 ble_dispatch_JT.c中
    #if ( HOST_CONFIG & ( CENTRAL_CFG | PERIPHERAL_CFG ))
    (uint32)GATT_RegisterForMsgs, // JT_INDEX[169]
    (uint32)GATT_UpdateMTU, // JT_INDEX[170]
    (uint32)GATT_SendRsp, // JT_INDEX[171]
    (uint32)GATT_SetHostToAppFlowCtrl, // JT_INDEX[172]
    (uint32)GATT_AppCompletedMsg,