ttyACM0 disappeared

Linux Mint 20
Arduino IDE 1.8.14
STM32F103C8 , STM32F411CE
STM32 beginner, 6 months experience.

I have the above two boards. When purchased, they were identified by Arduino IDE on the ttyACM0 port. When trying to upload a sketch to the board, this port sometimes disappeared. I had to reboot the computer to resume the port. Now this port has ceased to be displayed in the Arduino IDE at all. Only ttyS0 remains.

I installed a bootloader fromSTM32duino on both boards. I upload a sketch to the stm32F103 board via Maple DFU Bootloader, to the stm32F411 board via STM32CubeProgrammer (DFU). Downloading sketches occurs as before via the USB cable, but using the ttyS0 port . If I use an Arduino Nano board, then it is detected as ttyUSB0 and works without problems.

It's not clear why ttyACM0 is not detected? Should the sketch upload go through ttyS0?

Using the command checked the usb ports. The boards are displayed as shown below:

 sudo dmesg | grep usb
[11431.172576] usb 1-6: new full-speed USB device number 14 using xhci_hcd
[11431.418062] usb 1-6: New USB device found, idVendor=1eaf, idProduct=0003, bcdDevice= 2.01
[11431.418067] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[11431.418069] usb 1-6: Product: Maple 003
[11431.418071] usb 1-6: Manufacturer: LeafLabs
[11431.418073] usb 1-6: SerialNumber: LLM 003

I managed to solve the problem by installing new bootloaders on the boards.
Used to use the bootloader from rogerclarkmelbourne / STM32duino-bootloader. This bootloader may not be bad, but it did not fit my boards. Therefore, for the stm32f103 board, I installed HID_bootloader from WeActTC / BluePill-Plus.
It is called STM32_HID_Bootloader-PB2.bin.
And I installed MicroPython firmware on the STM32F411 board.
Now both boards are detected by Linux without any problems, the connection does not disappear, even the Arduino IDE Port Monitor works with both boards.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.