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.

CC2640: Simple peripheral + observer + OAD

Part Number: CC2640


Hi,

My requirement is to make device working in both mode peripheral plus observer and add OAD feature also. Without OAD, Peripheral plus observer code is working fine and With OAD, only peripheral mode(Image B) is working(IMAGE A+ IMAGE B). But when i am using observer mode with peripheral for IMAGE B, then after OAD device stops broadcasting.( Initial advertisement is enabled in IMAGE B).

Can anyone please help me in this?

  • Hello,

    Did you physically detach the debugger on your board? This will prevent a device reset from occurring.

    Best wishes
  • Hi,

    Yes we have checked that by physically detaching the debugger IMAGE B  is not working.After adding PLUS OBSERVER IMAGE B is unable to advertise over IMAGE A(Image with OAD Target sample code).

    Will OAD Taget sample code as Image A will support SimpleBleObserver as IMAGE B?

  • Hi,

    We have checked that in PeripharalObserver.c when we comment this line gapRole_profileRole = (GAP_PROFILE_PERIPHERAL | GAP_PROFILE_OBSERVER) then IMAGE B is broadcasting.

    #ifdef PLUS_OBSERVER
    // gapRole_profileRole = (GAP_PROFILE_PERIPHERAL | GAP_PROFILE_OBSERVER);
    //#else
    gapRole_profileRole = (GAP_PROFILE_PERIPHERAL);
    #endif

    Can any one help us with this issue.