2022-01-26 12:31 AM
Application note AN2606, on page 380. It says that in the default bootloader, USART is used on pin PA9 (E5)(TX) and PA10 (C8)(RX). However, when I select USART1 in STM32CubeMX, in mode Asynchronous, pins E1 (TX) and C3 (RX) are used. USART programming is not possible with the default bootloader then, right?
Solved! Go to Solution.
2022-01-26 01:50 AM
Welcome, @Cvan .7, to the community!
RX and TX of USART1 can each run via an alternative pin, e.g. TX via PB6 or PA9, which can also be selected accordingly in STM32CubeMX or STM32CubeIDE (Ctrl+Click for at least 0.5 seconds).
However, the definition of these pins in your user program only has an effect on the boot loader if you assign the pins used in the boot loader in such a way that the boot process could be disturbed.
So to answer your question: yes, programming via UART is possible, even if this UART is used later in the user program.
Does it answer your question?
Regards
/Peter
2022-01-26 01:50 AM
Welcome, @Cvan .7, to the community!
RX and TX of USART1 can each run via an alternative pin, e.g. TX via PB6 or PA9, which can also be selected accordingly in STM32CubeMX or STM32CubeIDE (Ctrl+Click for at least 0.5 seconds).
However, the definition of these pins in your user program only has an effect on the boot loader if you assign the pins used in the boot loader in such a way that the boot process could be disturbed.
So to answer your question: yes, programming via UART is possible, even if this UART is used later in the user program.
Does it answer your question?
Regards
/Peter