Skip to main content
Explorer
November 26, 2024
Question

Programming with USB C and communication via UART

  • November 26, 2024
  • 1 reply
  • 902 views

Good morning everyone!

I have a question regarding a USB to UART IC. I’ve seen that the FT231XQ is used in ESP32s to program and communicate via UART. Is it possible to do the same with STM32s?

 

    This topic has been closed for replies.

    1 reply

    Super User
    November 26, 2024

    Yes.

    In this case, all the STM32 sees is a UART connection - it neither knows nor cares whether that came via USB, or from a Real RS232 port, or from anything else.

    So, as far as the STM32 is concerned, the FT231XQ (or whatever) is irrelevant - it's all just UART comms.

    The built-in UART Bootloader is described in Application Note AN3155USART protocol used in the STM32 bootloader:

    https://www.st.com/resource/en/application_note/an3155-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf

     

    You can also write your own custom bootloader - see, for example Application Note AN4657 STM32 in-application programming (IAP) using the USART:

    https://www.st.com/resource/en/application_note/an4657-stm32-inapplication-programming-iap-using-the-usart-stmicroelectronics.pdf

    Zero-96Author
    Explorer
    November 26, 2024

    Okay, for Uart it will be possible, but to upload programs to the MCU, will it be possible?

    Super User
    November 27, 2024

    @Zero-96 wrote:

    Okay, for Uart it will be possible, but to upload programs to the MCU, will it be possible?


    I don't understand - I just answered exactly that question!