I tried to disable ADV when timer expired so I called GAP_disable() in FreeRTOS timer callback however it gets blocked without return.
I use debug to find out what happened and it stop at ICall_abort()
I suspect ICall function call in timer callback is forbidden however I cannot find any doc mentioned this.
And I didn't find an example that call ICall api in FreeRTOS task or timer callback in SDK.
Would you please share any ideas ?