2019-07-03 01:56 AM
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?
2019-07-03 06:20 AM
From the Modem Manager docum [1] you can configure this via udev rules.
2019-07-03 06:27 AM
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 )
2019-07-03 06:29 AM
What i'm saying is that MM seems not to be responsible of that.
2019-07-03 06:52 AM
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
2019-07-03 09:35 AM
Thanks for your answer.
I completely stopped tlp.service on my ubuntu and the problem is still there :\
2019-09-25 10:40 PM
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