2
\$\begingroup\$

enter image description here

I came across this on one of the STM32 uC's reference manual and I really have no idea about the use case of this feature. I might be having a very narrow approach because I feel that it doesn't have any use case because the person who is coding for it will be taking care that he/she doesn't change the GPIO configuration at any random point of time.

That is what I feel and I don't see any practical use case of this particular feature but I really doubt because people at STM wouldn't have put something without any thought process. Can anyone help me?

\$\endgroup\$

closed as too broad by Chris Stratton, Dave Tweed Jan 3 at 19:13

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ I could think about the case of a bootloader, which might want to reserve some GPIOs and not let the "user" program mess with them. \$\endgroup\$ – Eugene Sh. Jan 3 at 18:10
  • 1
    \$\begingroup\$ Also a little google search is revealing a simple answer on a forum: eevblog.com/forum/microcontrollers/… \$\endgroup\$ – Eugene Sh. Jan 3 at 18:18
  • 2
    \$\begingroup\$ "... THE person who is coding ..." Have you never worked on multi-person projects? \$\endgroup\$ – Dave Tweed Jan 3 at 19:13
  • 2
    \$\begingroup\$ I would find this usefull in a critical I/O setup where I would not want any potential bugs or security issue mess up the specific state of GPIOs. The state of the GPIOs could be life critical or security critical - whatever. Sure, if they should not change, the program will not be coded to change them. But if they are critical, it is better risk management to have them locked once they are set. \$\endgroup\$ – le_top Jan 3 at 23:14
  • 1
    \$\begingroup\$ Right after making the previous comment , It did struck to me that changing the gpio config may burn the gpio pin. \$\endgroup\$ – MaNyYaCk Jan 7 at 6:57

Browse other questions tagged or ask your own question.