На ноге 4 в 8-ногом корпусе разварены несколько портов: PA0/PA1/PA2/NRST
По умолчанию NRST активен.
Как отключить NRST?
В последних pdf на STM32G030J6 и RM0454 не нашел информацию, как отключить NRST, чтобы использовать порты на этой ноге.
В презентациях от ST есть краткая информация по этому вопросу:
Код:
Two fields in the option bytes are used to configure the
NRST pin:
• NRST_MODE selects the operation mode of the
NRST pin: input / output reset, input only reset or
GPIO.
• IRHEN stands for Internal Reset Holder Enable.
When this mode is enabled, the NRST pin is driven
low until its voltage level goes under the voltage input
low threshold.
https://www.st.com/content/ccc/resource ... ol-RCC.pdf