Why Your Microcontroller GPIO Doesn't Work Even When Your Code Looks Correct
A GPIO pin can fail for reasons that have little to do with the line of code that configures it. Pin multiplexing, electrical levels, reset behavior, boot straps, and board design all deserve a systematic check.