joan wrote:You can't depend upon the state of the gpios during Pi initialisation. Even if a solution appears to work now it might be broken in a subsequent firmware/kernel release.
Is that really true? If so it has some serious implications for many Pi applications.A defined reset state is usually rather important for controllers of all sorts, for safety, EMC, product life etc. It wouldn't do for a motor to start running just because the Pi (or a microcontroller) was reset.
Designers should always assume that their Pi inputs may power up as outputs driving high or low, and never connect a Pi GPIO direct to another device's output pins?
Eben's "Raspberry Pi User Guide" says "by default , the Raspberry Pi's GPIO pins are switched off."
However,
this topic discusses pins defaulting to output as the OS boots.
It would be good to know that at least one GPIO comes up in a guaranteed state so that safe power sequencing of permanently connected peripherals can be managed by application code.