The subsonic module used the boundary layer whenever it needed it (for friction drag, for the slot, for vortex generators) and always promised the full story later. This is later. The stall is a boundary-layer event from beginning to end: a thin film of air losing a fight against a pressure rise. This lesson builds that film properly, laminar against turbulent, transition, separation, and then follows an aeroplane being flown slower and slower, degree by degree of angle of attack, through everything the pilot sees, feels and must not do on the way to the stall and just past it.
The boundary layer, properly defined
Air has viscosity: it sticks to surfaces. The molecules in direct contact with the wing do not move over it at all, and each layer above is dragged along a little faster than the one below, until, within a surprisingly short distance, the flow reaches the full local speed. That sheared film is the boundary layer: the thin layer between the surface and the free flow in which the velocity climbs from zero at the surface to effectively the free-stream value at its outer edge. Everything about friction, separation and the stall happens inside it.
The layer comes in two states, and the difference runs this whole module:
Laminar — near the leading edge: the air moves in smooth, parallel sheets that never mix. A laminar layer is extremely thin: on a wing, of the order of a millimetre or two; and because the shearing between its orderly sheets is gentle, its friction drag is low. That is its whole advantage, and designers chase it. Its weakness is the same orderliness: nothing stirs the layer, so the air closest to the surface, robbed of speed by friction, is never re-supplied with energy from above: the laminar layer is low on energy exactly where it matters.
Turbulent — downstream of the transition point, where the orderly sheets break down into mixing eddies: several times thicker (centimetres, growing toward the trailing edge) with higher friction drag from all that churning, but with one compensating virtue. The mixing continuously hauls fast air from the outer edge down toward the surface, so the turbulent layer's near-surface flow stays energetic.
Thin and cheap but weak; thick and costly but strong — that trade is the boundary layer in one sentence.