2024-09-24 01:34 AM
I am using the STM32G031 MCU, and if you look at the picture below in the STM32 CubeMX,
there are no NRST and BOOT0 settings at the PF2-NRST and PA14-Boot0 Pin
I am curious as to whether it is set as default even if I do not configure it, or if there is a way to set it separately. help!!
2024-09-24 01:43 AM - edited 2024-09-24 01:44 AM
Hello @Paul6 and welcome to the ST community.
For the PF2-NRST, we have a note under the table 120 of the DS12992 that says:
"PF2-NRST default functionality is NRST, if used in this mode on SO8 and WLCSP, take particular care to configuration of other IOs connected to this pin."
and for the PA14-BOOT0 is the default function if you are not setting the Pin for another function.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-09-24 05:54 AM
The PF2-NRST pad is tied to both PF2 and NRST internally. Always. Similar for PA14-BOOT0. You can change how NRST and BOOT0 behave through the option bytes via STM32CubeProgrammer. Default values are highlighted here.
Note that since nBOOT_SEL=1 by default, the value on the BOOT0 pin is ignored in favor of the nBOOT0 option bit.