Skip to main content
Visitor II
July 3, 2019
Question

STLinkv2-1 under Linux and ttyACM

  • July 3, 2019
  • 6 replies
  • 1612 views

Hi,

Everyone who uses ST Link under ubuntu knows the waiting time to use the ttyACM to display traces.

This time is due to the ModemManager trying to send commands for a few tens of seconds.

When I try to disable this service or add the STLink to the BLACKLIST, the STLink continuously resets the STM32 for some reason.

An idea of ​​what could cause this behavior?

    This topic has been closed for replies.

    6 replies

    Super User
    July 3, 2019

    From the Modem Manager docum [1] you can configure this via udev rules.

    [1] https://www.freedesktop.org/software/ModemManager/api/latest/ref-overview-modem-detection.html#id-1.2.3.2

    Visitor II
    July 3, 2019

    Yes that's what i've done, and it actually worked.

    But when modemManager don't deal with our STLink, STLink reset continuously the STM32. (As if it is receiving USB commands for reset constantly )

    Visitor II
    July 3, 2019

    What i'm saying is that MM seems not to be responsible of that.

    Super User
    July 3, 2019

    Maybe the USB host tries to autosuspend the st-link. Is your machine a laptop? See here :

    https://askubuntu.com/questions/185274/how-can-i-disable-usb-autosuspend-for-a-specific-device

    -- pa

    Visitor II
    July 3, 2019

    Thanks for your answer.

    I completely stopped tlp.service on my ubuntu and the problem is still there :\

    Graduate
    September 26, 2019

    For me, the only solution that worked was to remove the modemmanager package. Here's more description on that: https://electronics.stackexchange.com/questions/288187/is-it-possible-to-get-st-links-virtual-com-port-working-without-launching-any-p