Цитата(pvo125 @ Mar 14 2016, 05:13)

Не знаю как в серии STM32L.. Делал на STM32F10x все неиспользуемые порты и выводы переводил в "Analog input".
Если выводы просто перевести в Input или Analog input, то они превращаются в антенны! Можно наблюдать изменение тока потребления при поднесении рук к микроконтроллеру
Волшебство
Правильно так:
"..
Unused I/Os and features.All microcontrollers are designed for a variety of applications and often a particular application does not use 100% of the MCU resources.
To increase EMC performance and avoid extra power consumption, unused clocks, counters or I/Os, should not be left free.
I/Os should be connected to a fixed logic level of 0 or 1 by an external or internal pull-up or pull-down on the unused I/O pin. The other option is to configure GPIO as output mode using software. Unused features should be frozen or disabled, which is their default value.
.."