Trying to add synchronization between BSP and AP, not working