[SOLVED] Programming the Daisy Patch SM and Patch.Init() using Arduino IDE on Linux (Debian 11)

Hello! I am just getting started with the Patch Submodule and the patch.Init() but I can’t get my PC to detect the module when I connect it through USB. Am I missing an extra driver or something?

I’ve had success in building modules around the Daisy Seed using the same machine and Arduino IDE, so this seems to be a Patch SM-related issue.

I’m on Debian 11.

Summary of my system in case it helps:

H/W path                   Device           Class          Description
======================================================================
                                            system         System Product Name (SKU)
/0                                          bus            ProArt Z490-CREATOR 10G
/0/0                                        memory         64KiB BIOS
/0/3f                                       memory         64GiB System Memory
/0/3f/0                                     memory         16GiB DIMM DDR4 Synchronous 3200 MHz (0.3 ns)
/0/3f/1                                     memory         16GiB DIMM DDR4 Synchronous 3200 MHz (0.3 ns)
/0/3f/2                                     memory         16GiB DIMM DDR4 Synchronous 3200 MHz (0.3 ns)
/0/3f/3                                     memory         16GiB DIMM DDR4 Synchronous 3200 MHz (0.3 ns)
/0/4e                                       memory         640KiB L1 cache
/0/4f                                       memory         2560KiB L2 cache
/0/50                                       memory         20MiB L3 cache
/0/51                                       processor      Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz
/0/100                                      bridge         Intel Corporation
/0/100/1                                    bridge         6th-10th Gen Core Processor PCIe Controller (x16)
/0/100/1/0                                  display        GP107 [GeForce GTX 1050 Ti]
/0/100/1/0.1                                multimedia     GP107GL High Definition Audio Controller
/0/100/14                                   bus            Comet Lake USB 3.1 xHCI Host Controller
/0/100/14/0                usb1             bus            xHCI Host Controller
/0/100/14/0/2                               bus            4-Port USB 2.0 Hub
/0/100/14/0/2/1                             bus            4-Port USB 2.0 Hub
/0/100/14/0/2/1/3                           input          USB-HID Keyboard
/0/100/14/0/2/1/4                           input          2.4G Wireless Device
/0/100/14/0/2/4                             input          USB Receiver
/0/100/14/0/3                               input          Tablet Monitor
/0/100/14/0/5                               multimedia     Scarlett 2i2 USB
/0/100/14/0/6                               multimedia     C922 Pro Stream Webcam
/0/100/14/0/b                               bus            USB2.0 Hub
/0/100/14/0/c                               input          AURA LED Controller
/0/100/14/1                usb2             bus            xHCI Host Controller
/0/100/14/1/1              scsi6            storage        External USB 3.0
/0/100/14/1/1/0.0.0        /dev/sdf         volume         1863GiB nal USB 3.0
/0/100/14/1/2                               bus            4-Port USB 3.0 Hub
/0/100/14/1/2/1                             bus            4-Port USB 3.0 Hub
/0/100/14/1/2/1/1          scsi7            storage        USB3.0 Card Reader
/0/100/14/1/2/1/1/0.0.0    /dev/sdg         disk           MassStorageClass
/0/100/14/1/2/1/1/0.0.0/0  /dev/sdg         disk           
/0/100/14/1/2/1/1/0.0.1    /dev/sdh         disk           MassStorageClass
/0/100/14/1/2/1/1/0.0.1/0  /dev/sdh         disk           
/0/100/14.2                                 memory         RAM memory
/0/100/15                                   bus            Comet Lake PCH Serial IO I2C Controller #0
/0/100/15.1                                 bus            Comet Lake PCH Serial IO I2C Controller #1
/0/100/16                                   communication  Comet Lake HECI Controller
/0/100/17                  scsi0            storage        Intel Corporation
/0/100/17/0                /dev/sda         disk           250GB WDC  WDS250G2B0A
/0/100/17/0/1              /dev/sda1        volume         15MiB reserved partition
/0/100/17/0/2              /dev/sda2        volume         232GiB Windows NTFS volume
/0/100/17/1                /dev/sdb         disk           2TB WDC WD20EZRZ-00Z
/0/100/17/1/1              /dev/sdb1        volume         1863GiB OS X ZFS partition or Solaris /usr partition
/0/100/17/1/9              /dev/sdb9        volume         8191KiB reserved partition
/0/100/17/2                /dev/sdc         disk           2TB WDC WD20EZRZ-00Z
/0/100/17/2/1              /dev/sdc1        volume         1863GiB OS X ZFS partition or Solaris /usr partition
/0/100/17/2/9              /dev/sdc9        volume         8191KiB reserved partition
/0/100/17/3                /dev/sdd         disk           2TB WDC WD20EZAZ-00L
/0/100/17/3/1              /dev/sdd1        volume         1863GiB OS X ZFS partition or Solaris /usr partition
/0/100/17/3/9              /dev/sdd9        volume         8191KiB reserved partition
/0/100/17/0.0.0            /dev/sde         disk           2TB WDC WD20EZAZ-00L
/0/100/17/0.0.0/1          /dev/sde1        volume         1863GiB OS X ZFS partition or Solaris /usr partition
/0/100/17/0.0.0/9          /dev/sde9        volume         8191KiB reserved partition
/0/100/1b                                   bridge         Comet Lake PCI Express Root Port #17
/0/100/1b.4                                 bridge         Comet Lake PCI Express Root Port #21
/0/100/1b.4/0              enp3s0           network        AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]
/0/100/1c                                   bridge         Intel Corporation
/0/100/1c.4                                 bridge         Intel Corporation
/0/100/1c.4/0              enp5s0           network        Ethernet Controller I225-V
/0/100/1c.6                                 bridge         Intel Corporation
/0/100/1c.6/0              enp6s0           network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1d                                   bridge         Comet Lake PCI Express Root Port #9
/0/100/1d/0                                 storage        NVMe SSD Controller SM981/PM981/PM983
/0/100/1f                                   bridge         Intel Corporation
/0/100/1f.3                                 multimedia     Comet Lake PCH cAVS
/0/100/1f.4                                 bus            Comet Lake PCH SMBus Controller
/0/100/1f.5                                 bus            Comet Lake PCH SPI Controller
/0/1                                        system         PnP device PNP0c02
/0/2                                        system         PnP device PNP0c02
/0/3                                        communication  PnP device PNP0501
/0/4                                        system         PnP device PNP0c02
/0/5                                        generic        PnP device INT3f0d
/0/6                                        system         PnP device PNP0c02
/0/7                                        system         PnP device PNP0c02
/0/8                                        system         PnP device PNP0c02
/0/9                                        system         PnP device PNP0c02
/1                                          power          To Be Filled By O.E.M.
/2                         br-5ab861724475  network        Ethernet interface
/3                         docker0          network        Ethernet interface

(EDIT 1): I have tried it on the USB hub as well as the other ports on my PC directly, but still no success.

Did you press Boot and Reset buttons before scanning the system?

Yes I did! :grinning:


Update, I checked my syslog and this is what I get when I press the reboot and reset buttons:

Oct 30 21:15:07 benjiao-ws1 kernel: [22507.919965] usb 1-2.3: new full-speed USB device number 19 using xhci_hcd
Oct 30 21:15:07 benjiao-ws1 kernel: [22508.021899] usb 1-2.3: New USB device found, idVendor=0483, idProduct=df11, bcdDevice= 2.00
Oct 30 21:15:07 benjiao-ws1 kernel: [22508.021900] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 30 21:15:07 benjiao-ws1 kernel: [22508.021901] usb 1-2.3: Product: DFU in FS Mode
Oct 30 21:15:07 benjiao-ws1 kernel: [22508.021901] usb 1-2.3: Manufacturer: STMicroelectronics
Oct 30 21:15:07 benjiao-ws1 kernel: [22508.021902] usb 1-2.3: SerialNumber: 200364500000
Oct 30 21:15:07 benjiao-ws1 mtp-probe: checking bus 1, device 19: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.3"
Oct 30 21:15:07 benjiao-ws1 mtp-probe: bus: 1, device: 19 was not an MTP device
Oct 30 21:15:07 benjiao-ws1 mtp-probe: checking bus 1, device 19: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.3"
Oct 30 21:15:07 benjiao-ws1 mtp-probe: bus: 1, device: 19 was not an MTP device

I don’t currently have a Linux system, but that log shows the Daisy is recognized correctly.

I have not used Linux in a few years, but lsusb was a good way to examine USB devices.

1 Like

It does! I was worried the board was busted right there. Thanks man!

I think I solved my problem though. This is embarrassing.

Forgot to set the Upload method on Arduino IDE to STM32CubeProgrammer (DFU). :man_facepalming: :man_facepalming: :man_facepalming: :man_facepalming: Pasting my settings here for future reference.

Screenshot from 2022-10-30 21-57-03

1 Like