您好,CC2640R2F,我按照片外simple peripheral OAD 例程 以及 官方在multi Role 添加OAD的指导,自己在例程simple peripheral里面添加OAD ,按步完成后,bulid会有这个未定义的报错:
请问 stackImageHeader 和GATT_SendRsp 是应该在哪儿定义啊?谢谢解答,忙了好久一直不通
Kevin Qiu1:
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中
user6172527:
回复 Kevin Qiu1:
您好,谢谢,我现在第一个报错解决了。还是第二个Description Resource Path Location Type
unresolved symbol GATT_SendRsp, first referenced in <whole-program> simple_peripheral_cc2640r2lp_appC/C++ Problem
我添加了定义还是存在报错
Kevin Qiu1:
回复 user6172527:
这个和上面那个错误一样,定义是在 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,