cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L051 PA12 not set and always 0 (RTS problem). How can I use PA12? I'm already found that PIN always set as RTS and read errata for my MCU that states "Configure as alternate function after setting the UE and RE bits." How to use PA12 as GPIO?

IIvan.6
Associate II
2 REPLIES 2
TDK
Guru

> How to use PA12 as GPIO?

Set the pin to GPIO with the MODER register using HAL_GPIO_Init or similar. Same as any other pin.

The errata note is not relevant here if you don't need RTS functionality.

If you feel a post has answered your question, please click "Accept as Solution".
IIvan.6
Associate II

But I can't change its state!