Skip to main content
T B
Associate III
January 29, 2018
Solved

STM32 Virtual COM Port and BREAK

  • January 29, 2018
  • 13 replies
  • 2646 views
Posted on January 29, 2018 at 12:02

Hello!

Is it possible to send a UART break (0.3 seconds) over the Virtual COM Port.

It seems that UART break is connected with NRST.

-Thomas

    This topic has been closed for replies.
    Best answer by Andrew Neil
    Posted on January 29, 2018 at 16:08

    So, if you want the BREAK to reach the target STM32, you'll have to use a separate connection direct to the target's UART pins (and break the links to the ST-Link UART if you want to use those pins)

    13 replies

    Andrew Neil
    Super User
    January 29, 2018
    Posted on January 29, 2018 at 12:28

    Is it possible to send a UART break (0.3 seconds) over the Virtual COM Port

    In which direction?

    • PC --> STM32?
    • STM32 --> PC?
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    T B
    T BAuthor
    Associate III
    January 29, 2018
    Posted on January 29, 2018 at 13:45

    PC --> STM32 (The STM32 resets.)

    On the PC I generate the break with RealTerm or with pyserial. Both has the same effect.
    Andrew Neil
    Super User
    January 29, 2018
    Posted on January 29, 2018 at 14:12

    Now I'm confused.

    So you're saying that you are sending a break, and that it causes your STM32 to reset?

    But you don't want the STM32 to reset?

    So why not use the debugger to see what happens when you send that break ... ?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.