Skip to main content
This topic has been closed for replies.

2 replies

Technical Moderator
December 13, 2024

Hello @priyanka.yadav 

To be able to use the UART3 instead of UART1 you should update the lines below in the file interfaces_conf.h.

#define USARTx USART1

#define USARTx_TX_PIN GPIO_PIN_9
#define USARTx_TX_GPIO_PORT GPIOA
#define USARTx_RX_PIN GPIO_PIN_10
#define USARTx_RX_GPIO_PORT GPIOA
#define USARTx_ALTERNATE GPIO_AF1_USART1

Explorer
December 16, 2024

Hello @Saket_Om ,

Following changes have been made in code, but not connecting to desired UART.

priyankayadav_0-1734339933347.png

 

Technical Moderator
December 16, 2024

Hello @priyanka.yadav 

Could you provide more details about your setup please?

ST Employee
December 23, 2024

Hello @priyanka.yadav ,

Could you please check your bootloader version. if it is V13.0, according to AN2506 table 164, the USART3 is not working.

With regards

Explorer
December 24, 2024

Hello SirineST,

Bootloader version is showing as 0x92. Please see the snapshot.

Also, please note that USART3 is working when I'm trying to flash via USART3 (but only issue is that this requires manual intervention to uncheck nBOOT0 via ST-LINK debugger). So this is not IAP where we can fully program device via USART.

We are looking for solution where device initially waits for some timeout for data from usart and when its timeout then device will simply boot via flash. In this case if we don't wish to flash it'll simply boot via flash and in case we need to do IAP then we can stop and flash new file during timeout when its waiting for data from USART for any updated file.

Thanks!