If you look in ''\FWLib\examples\GPIO\IOToggle\main.c'' (v2), there's this:
/* Configure all unused GPIO port pins in Analog Input mode (floating input trigger OFF), this will reduce the power consumption and increase the device immunity against EMI/EMC */
This is a very much age old discussion, and depends on the actual design and silicon used.
For most designs i set unused io as output low (no external resistor). But even with this there is a tiny window where the floating io could oscillate - chances are very rare however. You will find quite a few threads on this topic around the web. Cheers Spen
hmm-> ''In Run mode you can just leave all your unused I/O pins on your PCB not connected and thru software configure them as Push-pull with Data 0.
This maintains a static level with zero consumption and finally is the best reliable mode for EMI and EMS.'' Qouted from STOne-32's post in the thread:
On 04-06-2009 at 22:24, Anonymous wrote: If you look in ''\FWLib\examples\GPIO\IOToggle\main.c'' (v2), there's this..Bad ST: this is the kind of thing that should be properly & clearly documented - not hidden as some aside in some example code! :|