Hi
In the STM32L053R8 Datasheet, I cannot figure out the default alternative function AF0, AF1...
I'm using the UART TX RX on PA10 PA9 is that the correct choice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-04 3:51 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-06 4:50 AM
AF4 is set by software.
If you used PA9/PA10 for a UART connection in your design it will be usable as such.
​
F​or the System Loader see App Note AN2606 for supported PINS and METHODS.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-04 4:08 AM
Hello @BEKABEN​ ,
Correct, for UART instance 1 : PA9/PB6 -> UART1_TX and PA10/PB7 -> UART1_RX
For LPUART : PB10/PC4/PC10 -> LPUART1_TX and PC5/PC11 -> LPUART1_RX
Also, for UART instance 2 : PA2/PA14 -> UART2_TX and PA3/PA15 -> UART2_RX
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-04 5:14 AM - edited ‎2023-11-20 6:28 AM
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-04 11:33 PM
Yes
is AF4 the default setting on the stm32l053r8?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-04 11:55 PM
No.
Default setting of all AF is AF0 - see GPIO_AFR registers description in the GPIO chapte of Reference Manual.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-06 3:58 AM
If I design my schematic based on AF4 and I'm accessing the UART from PA9 PA10 is it possible to do updates in the future?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-06 4:50 AM
AF4 is set by software.
If you used PA9/PA10 for a UART connection in your design it will be usable as such.
​
F​or the System Loader see App Note AN2606 for supported PINS and METHODS.
Up vote any posts that you find helpful, it shows what's working..
