2021-09-22 12:37 AM
Hello,
what is the difference between configuring GPIO pins from software and leave as default(no code).
does it have an impact on other register settings that are not being set/clear in default configuration.
because I am having a problem when I leave pin as an default(no code), if I do initialize(software based) then there is no problem.
Thank you!
2021-09-22 02:34 AM
> I am having a problem when I leave pin as an default
What problem? Which pin? Elaborate.
JW
2021-09-22 06:12 AM
> what is the difference between configuring GPIO pins from software and leave as default(no code).
If you leave it as default, the GPIO isn't touched from its reset settings. Normally this means the pin will be in high impedance input analog mode with no pullup/pulldown. However, pins used by SWD are an exception to this.
You can find the reset settings for individual GPIO pins in the reference manual.
2021-09-22 06:35 AM
2021-09-22 06:35 AM
does it mean it is in analog mode by default ?
2021-09-22 06:41 AM
Yes, corrected.
As stated in your other thread, if the GPIOx register settings are the same in both configurations, that's not the source of your problem. Registers tell the full story. Has to be a difference somewhere else.