Part Number: LAUNCHXL-CC2640R2
Tool/software: Code Composer Studio
I am using the Simple_Peripheral example with blestack of CC2640R2 SDK v3.30.00.20, .
Following your (TI) suggestion, I enable advertising with the following code:
static void SimplePeripheral_processStateChangeEvt(gaprole_States_t newState)
{
.....
switch ( newState )
{
case GAPROLE_STARTED:
uint8_t AdvertEnable = TRUE;
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),
&AdvertEnable);
.....
}
-------------------------------------------------------------------------
Then after advertising for 10 seconds, I try to disable advertising with the following code in my own Application Task:
uint8_t advertEnabled = FALSE;
// Disable connectable advertising.
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t), &advertEnabled);
-----------------------------------------------------------------------------
Then the program will end up stuck at the following while(abortLoop) :
ICall_abort(void)
{
if (abortLoop)
{
while(abortLoop);
}
-------------------------------------------------------------------------------
I have no clue why it happened. Please see the picture for reference:
![]()
Can anyone help ?
thank you.
Charles