The flow reversal is primarily caused by adverse pressure gradient imposed on the boundary layer by the outer potential flow. The streamwise momentum equation inside the boundary layer is approximately stated as
where  are streamwise and normal coordinates.
An adverse pressure gradient is when , which then can be seen to cause the velocity  to decrease along  and possibly go to zero if the adverse pressure gradient is strong enough.