This question already has an answer here:
Throughout all of the Star Wars movies, we see Storm Troopers (and their ilk) wearing their iconic armor.
However, as far as I can remember, in none of the movies does it explain WHY they wear this armor. It doesn't seem to protect them from blasters at all, as we see a lot of them fall/die when shot.
Is there an explanation (in any canon) as to the functional use/s of stormtrooper armor?