Closed zavorra closed 7 months ago
Ok, it is working. The actual problem was the
platform = espressif32@^6.0.0
line in platformio.ini
Turning it into
platform = espressif32
allowed platformio to install espressif32 v. 6.4, which is based on arduino core 2.0.11
You may want to fix this in upcoming stable version
Changed the issue name, because after successfully build and upload the firmware, and being able to configure wifi and some actions I noticed that USB_MIDI is not working. First of all, journalctl -f reports this when the esp32 is connected:
Dec 13 15:05:58 Ulmo kernel: usb 1-1: new full-speed USB device number 16 using xhci_hcd
Dec 13 15:05:58 Ulmo kernel: usb 1-1: New USB device found, idVendor=303a, idProduct=1001, bcdDevice= 1.01
Dec 13 15:05:58 Ulmo kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 13 15:05:58 Ulmo kernel: usb 1-1: Product: USB JTAG/serial debug unit
Dec 13 15:05:58 Ulmo kernel: usb 1-1: Manufacturer: Espressif
Dec 13 15:05:58 Ulmo kernel: usb 1-1: SerialNumber: EC:DA:3B:9D:10:08
Dec 13 15:05:58 Ulmo kernel: cdc_acm 1-1:1.0: ttyACM1: USB ACM device
Dec 13 15:05:58 Ulmo mtp-probe[433241]: checking bus 1, device 16: "/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1"
Dec 13 15:05:58 Ulmo mtp-probe[433241]: bus: 1, device: 16 was not an MTP device
Dec 13 15:05:58 Ulmo mtp-probe[433242]: checking bus 1, device 16: "/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-1"
Dec 13 15:05:58 Ulmo mtp-probe[433242]: bus: 1, device: 16 was not an MTP device
It seems it is not recognized as a midi-capable device
Then I configured a simple action to send a program change on button press, and on the serial monitor and on the ESP32 display I can see that the action has been taken, but no event is received on the PC (double checked sniffing USB with wireshark and usbmon)
To further investigate, how am I supposed to flash the firmware file coming with the repo (firmware/lilygo-t-display-s3/lilygo-t-display-s3-3.1.13-firmware.bin)? I cannot upload from whe web gui because is > than 2M and manually flashing with "/home/giorgio/.platformio/penv/bin/python" "/home/giorgio/.platformio/packages/tool-esptoolpy/esptool.py" --chip esp32s3 --port "/dev/ttyACM1" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0000 /home/giorgio/workspace/PedalinoMini/.pio/build/lilygo-t-display-s3/bootloader.bin 0x8000 /home/giorgio/workspace/PedalinoMini/.pio/build/lilygo-t-display-s3/partitions.bin 0xe000 /home/giorgio/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 firmware/lilygo-t-display-s3/lilygo-t-display-s3-3.1.13-firmware.bin
leads to a blak screen on the device (had to reflash from platformio while holting boot button)
Thank you in advance
EDIT: i managed to flash the provided firmware but it behaves exactly the same: no usb_midi
EDIT2: I tried to connect to my phone: still no USB, BTLE ok.
From platformio.ini
remove
-D USE_TINYUSB
-D CFG_TUD_ENABLED
-D CFG_TUD_MIDI
-D CFG_TUSB_CONFIG_FILE="${sysenv.HOME}/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/arduino_tinyusb/include/tusb_config.h"
and add
-D ARDUINO_USB_CDC_ON_BOOT=1
-D ARDUINO_USB_MODE=0
It is working great, thanks
Hi alf45tar,
It seems that I am not able to build you (impressive) project, cloned from the sponsor repo, neither on vscode nor on pio command line
I am trying to build for lilygo-t-display-s3, and i get this:
If I try to force version 2.0.8 on platformio.ini with
framework = arduino@2.0.8
I get this error:Error: This board doesn't support arduino@^2.0.8 framework!
On the other hand, if I force an older version of TinyUSB (older than 2.0.0, it seems) with
I am able to build and upload both firmware and file system
Is this fine/expected/ok for you?
Thank you in advance
Zavorra