Skip to main content
Visitor II
March 11, 2022
Solved

Does USART has to be RS232 to use system bootloader

  • March 11, 2022
  • 3 replies
  • 1893 views

Hi,

I'm designing a board in which the communication between STM32 and the host is UART over LVDS. So RS232 transceiver is not used in the design.

And we want to upgrade STM32 firmware remotely through the UART LVDS interface by the host.

But according to AN2066 page 38, the hardware requirement to use USART is through RS232 transceiver to the host. https://www.st.com/resource/en/application_note/cd00167594-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

I'm wondering if RS232 transceiver is necessary to use the system bootloader. Is UART over LVDS ok to use the system bootloader.

Does anybody know the answer?

Any response is appreciated. And thank you very much in advance.

With best wishes

Jasmine

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    In fact, an RS232 transceiver is only necessary if the host is connected with RS232. Of course, you can also connect the USART without a transceiver if the remote station has the correct levels.

    Regards

    /Peter

    3 replies

    Technical Moderator
    March 11, 2022

    In fact, an RS232 transceiver is only necessary if the host is connected with RS232. Of course, you can also connect the USART without a transceiver if the remote station has the correct levels.

    Regards

    /Peter

    JasmineAuthor
    Visitor II
    March 14, 2022

    Thank you very much for the answer.

    Super User
    March 11, 2022

    The signal at the MCU needs to be 0 logic low and VDD logic high (or equivalent). However you get the signal there is up to you.

    LVDS will need a transceiver to convert.

    Technical Moderator
    March 11, 2022

    And also to check if the signal should be inverted or not ;)

    Graduate II
    March 11, 2022

    AN2606

    Generally I think you'd want the pin pulled high, what you want to avoid is glitching/transitioning signals on the PINS the loader is waiting on, so important NOT to connect things like GPS/GNSS receivers to other UART Rx pins the loader might use, as the receivers will start squawking immediately at power up and block your connectivity.

    Expectation at the pins CMOS 2.7-3.3V type levels, per you device powering scheme

    Watching for 0x7F data pattern a 8E1 to auto-baud the data rate, and then responds with an 0x79 data pattern.

    JasmineAuthor
    Visitor II
    March 14, 2022

    Is it necessary to pull high, what about pulled low?