2017-09-25 01:45 AM
Hi.
In the STM32F103, I'd like to control PA14, PA15 pin to I/O, But It's not controlling as my mind.
When I checked that with reference document, I found the below information.
I think If I want to use PA14 and PA15, then I have to do something.
If I want to use PA14 and PA15, what am I supposed to do?
Solved! Go to Solution.
2017-09-25 05:35 AM
Hi!
The way to use PA14,PA15 as normal GPIOs is to use
__HAL_RCC_AFIO_CLK_ENABLE();
__HAL_AFIO_REMAP_SWJ_DISABLE() macros.
But after this there is no debug functionality (you can program your device only under hardware reset).
Rgrds
vf
2017-09-25 02:16 AM
If I want to use PA14 and PA15, what am I supposed to do?
Configure them as you do with others.
But I would think twice (or thrice) before doing so. You loose the ability to debug.
2017-09-25 05:35 AM
Hi!
The way to use PA14,PA15 as normal GPIOs is to use
__HAL_RCC_AFIO_CLK_ENABLE();
__HAL_AFIO_REMAP_SWJ_DISABLE() macros.
But after this there is no debug functionality (you can program your device only under hardware reset).
Rgrds
vf