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.

Porting CC2541 to CC2640

Other Parts Discussed in Thread: CC2541, CC2640

Hi all,

I try to porting CC2541 project to CC2640, but I can not use some function(like gapbondmge.c-->GAPBondMgr_ResolveAddr) in "CC2640APP workspace" even I include related files. How do I resolve this problem? thanks 

  • Hi Kimi,

    It is already used in gapbondmgr.c (included in the stack side) but you need to make sure the bond manager is enabled on the stack side by defining -DGAP_BOND_MGR in buildConfig.opt. It is enabled by default.

    The method of communication between the application and stack is through a layer called ICall wich handles message passing forth and back between the stack. I cannot see that the function is directly accessible for the application.

    What are you trying to use it for? The functionality might be available through some other API.
  • Hi Kimi,

    Unfortunately, you cannot call this API from the Application project as it is not currently defined in the ICallBLE.c file. I will contact the the R&D team and advise if there is an alternative way or otherwise get it supported. I recognize the need to have this API.

    Note that gapbondmgr.c is part of the Stack project, and thus only executes in the Stack context. Functions defined in this file cannot be called directly by the Application. In this case, ICall must be used as mentioned above.

    Best wishes
  • Hi svendbt and JXS,

    I try to implement "PRA" from JXS's suggestion(e2e.ti.com/.../1430366)
    but i can not use GAPBondMgr_ResolveAddr and linkDB_Find in CC2640APP. If you have any suggestion please tell me, thanks