Comments (9)
This is likely specific to the
stm32h747i_disco
board and not the driver?
stm32h747i_disco/stm32h747xx/m7 has external ulpi phy, the issue is likely in the driver
zephyr/drivers/usb/udc/udc_stm32.c
Lines 855 to 856 in d0474ce
zephyr/drivers/usb/udc/udc_stm32.c
Lines 1020 to 1044 in d0474ce
from zephyr.
CC: @erwango
from zephyr.
Please re-test with #75129
from zephyr.
I'm afraid the result is the same
This builds successfully, and works correctly:
west build --pristine -b stm32h747i_disco/stm32h747xx/m7 samples/subsys/usb/cdc_acm
This is not recognised by the computer, and displays no log when the USB host is connected or disconnected, and the device doesn't appear with MacOS system report / lsusb
west build --pristine -b stm32h747i_disco/stm32h747xx/m7 samples/subsys/usb/cdc_acm -DCONF_FILE=usbd_next_prj.conf
from zephyr.
@loicpoulain Would you mind having a look ?
from zephyr.
Please let me know if you need the development kit :-)
from zephyr.
I have tried to reproduce this error this on the stm32h735g_disco
board using 768b8bb, but it seems to work fine?
west build -b stm32h735g_disco/stm32h735xx samples/subsys/usb/cdc_acm -- -DCONF_FILE="usbd_next_prj.conf"
west flash
Console log:
*** Booting Zephyr OS build v3.7.0-rc2-45-g768b8bbca30a ***
[00:00:00.010,000] <inf> cdc_acm_echo: USB device support enabled
[00:00:00.010,000] <inf> cdc_acm_echo: Wait for DTR
[00:00:00.016,000] <inf> cdc_acm_echo: USBD message: Device suspended
[00:00:00.185,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:07.196,000] <inf> cdc_acm_echo: USBD message: CDC ACM line coding
[00:00:07.196,000] <inf> cdc_acm_echo: Baudrate 9600
Linux dmesg logs:
[53097.516088] usb 2-3.1: new full-speed USB device number 23 using xhci_hcd
[53097.620789] usb 2-3.1: New USB device found, idVendor=2fe3, idProduct=0001, bcdDevice= 3.07
[53097.620801] usb 2-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[53097.620803] usb 2-3.1: Product: USBD CDC ACM sample
[53097.620805] usb 2-3.1: Manufacturer: Zephyr Project
[53097.620807] usb 2-3.1: SerialNumber: 383233313139511900120037
[53097.623414] cdc_acm 2-3.1:1.0: ttyACM1: USB ACM device
This is likely specific to the stm32h747i_disco
board and not the driver?
from zephyr.
I suspect something around the IRQ: when one global irq is configured in the usbotg_hs node (of the stm32h745.dtsi)
interrupts = <77 0>;
interrupt-names = "otghs";
or when the list of interrupts is reversed:
interrupts = <77 0>, <76 0>, <75 0>, <74 0>;
interrupt-names = "otghs", "wkup", "ep1_in", "ep1_out";
The plug in the usb_otg_hs connector is detected :
*** Booting Zephyr OS build v3.7.0-rc2-455-g67544a6d2df3 ***
[00:00:00.010,000] <inf> cdc_acm_echo: USB device support enabled
[00:00:00.010,000] <inf> cdc_acm_echo: Wait for DTR
[00:00:00.016,000] <inf> cdc_acm_echo: USBD message: Device suspended
[00:00:01.726,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:01.807,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:01.907,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:01.986,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:02.077,000] <wrn> udc: Spurious suspend/resume event
[00:00:02.077,000] <inf> cdc_acm_echo: USBD message: Device suspended
[00:00:02.402,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:02.423,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:02.711,000] <inf> cdc_acm_echo: USBD message: Bus reset
[00:00:02.802,000] <wrn> udc: Spurious suspend/resume event
[00:00:02.802,000] <inf> cdc_acm_echo: USBD message: Device suspended
from zephyr.
Thank you guys !
from zephyr.
Related Issues (20)
- RTC RV3028 clock output disabled by enabling alarm/update callback
- NXP's IMX RT1010 triggers assert on SPI Loopback test when EDMA enabled HOT 3
- bluetooth: audio: race hazard in bt_bap_unicast_client_discover() HOT 5
- spi: stm32 spi slave spi_read should return immediately after a spi transaction. HOT 1
- Reinit Systick when using S2RAM
- Automatically include references to a sample's relevant APIs
- intel_adsp: test_colors fails on tests/subsys/logging/log_output/logging.output.*
- Bluetooth: Controller: ISO: Providing incorrect broadcast code asserts instead of returning MIC failure
- [Backport v3.7-branch] Failed to backport #77008
- ESP32C3: Inconsistent flash erase times in ESP32-C3-MINI-1 (ESP32-C3FN4) modules [zephyr-v3.6.99] HOT 4
- [Backport v3.7-branch] Failed to backport #77054
- multi_heap: support for realloc HOT 1
- SCSI Read Capacity reports wrong capacity when used with USB Mass storage device HOT 1
- Devices using USB Mass storage function sometimes crash upon USB insertion, or during files manipulation from a host computer HOT 1
- RTC RV3028 driver does not disable minutes alarm correctly
- TFM: Nordic pinctrl consumers broken
- Sample USB-C Sink Not Working in Zephyr v3.7.0 on weact_stm32g431_core HOT 6
- Unaligned 32-bit reads following casts on dns_socket_dispatcher::local_addr (Cortex-M0) HOT 4
- off-by-one error on month counting in rtc rv8263 driver HOT 2
- drivers: spi: stm32: Broken device power management on SPI bus HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zephyr.