Firmware · GPIO in practice

Enable the clock first

A GPIO port is switched off after reset, and writing to it before turning it on can fail without any error.