Несколько дней назад я обновил компьютер Pi. модуль (как выпуск Debian, так и обновление rpi), и с тех пор последовательное соединение с микроконтроллером (он же MCU) больше не работает. Я переустановил новую версию системы, используя последний образ осьминога, но это не устранило проблему.
На CM4 последовательный порт определяется правильно:
р>
Код: Выделить всё
pi@octopi:~ $ ls -l /dev/serial/by-id/*
lrwxrwxrwx 1 root root 13 May 18 12:23 /dev/serial/by-id/usb-Klipper_stm32g0b1xx_4A001B000C504B5735313920-if00 -> ../../ttyACM0
Код: Выделить всё
pi@octopi:~ $ minicom -o -b 250000 -D /dev/ttyACM0

Как могу ли я это исправить?
Версия ядра: 6.1, но версия 6.6 тоже не работает
Код: Выделить всё
Linux version 6.1.21-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP Mon Apr 3 17:22:30 BST 2023
Код: Выделить всё
[ 7.232515] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
[ 7.234675] usbcore: registered new interface driver cdc_acm
[ 7.234693] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Код: Выделить всё
Bus 001 Device 003: ID 1d50:614e OpenMoko, Inc. stm32g0b1xx
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x614e
bcdDevice 1.00
iManufacturer 1 Klipper
iProduct 2 stm32g0b1xx
iSerial 3 4A001B000C504B5735313920
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x003e
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
CDC Header:
bcdCDC 1.10
CDC ACM:
bmCapabilities 0x06
sends break
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 255
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Подробнее здесь: https://stackoverflow.com/questions/785 ... cm4-module
Мобильная версия