Hi, i'm fai I learning stm32f103 programming, and I'm confuse, I want using
void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, u16 GPIO_Pin)
. How to unlocking pin after I using it? please help me.. thanks
Thanks for the answer, I think in stm32f103 have a gpio unlock pin function, in fact not have. I think that because I have use nuvoton nuc100 series cortex m0, they have gpio lock & unlock pin function. OK thanks all, I'm understand now.
There is no unlock. You cannot modify a port bit once it has been locked until you do a reset. (See Section 9.2.7 of the RM0008 reference manual)
Note that this is a specific question about an ST product - it has nothing to do with Keil or ARM.
And is not so different from many other questions posted on this forum.
Section 9.2.7 of the RM0008 reference manual states:
When the LOCK sequence has been applied on a port bit it is no longer possible to modify the value of the port bit until the next reset.
So you would probably be better asking ST.
What does the stm32f103 documentation tell you? and/or the documentation for the GPIO_PinLockConfig() function ?
View all questions in Keil forum