Open jgenssler-GiN opened 5 days ago
Hi @jgenssler-GiN! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
@jgenssler-GiN I have observed main stack overflow on some platforms, please check if "CONFIG_MAIN_STACK_SIZE=2048" could fix your issue.
west build -p -b mimxrt1170_evk/mimxrt1176/cm7 zephyr/samples/subsys/usb/mass/ -DCONF_FILE="usbd_next_prj.conf" -DCONFIG_APP_MSC_STORAGE_SDCARD=y -DCONFIG_MAIN_STACK_SIZE=2048
@jfischer-no Unfortunately, that doesn't fix the issue. I'm still getting the same error.
@jfischer-no Unfortunately, that doesn't fix the issue. I'm still getting the same error.
okay, btw it works for me on mimxrt1050_evk/mimxrt1052, maybe some platform issue, FYI @MarkWangChinese
The USB next device stack is not enabled on MIMXRT1170-EVK, the clock and device tree (usb phy) is not enabled. I create the pr https://github.com/zephyrproject-rtos/zephyr/pull/75375, but I cannot find any RT1170-EVK to verify it. Thanks @hakehuang to help me to test it.
The USB MSC sample with "next" USB device stack config triggers a bus fault when running on i.MX RT1170 Evaluation Kit (MIMXRT1170-EVK). Not using the new USB device stack config doesn't show that error.
Steps to reproduce the behavior:
west build -p -b mimxrt1170_evk/mimxrt1176/cm7 zephyr/samples/subsys/usb/mass/ -DCONF_FILE="usbd_next_prj.conf" -DCONFIG_APP_MSC_STORAGE_SDCARD=y
west flash
Zephyr should have booted properly. USB Mass Storage device should show SD card contents when connected to PC.
That is a showstopper as old USB support works unreliably for USB MSC and gives I/O errors sometimes.
When debugged, the fault is triggered when the register in this line in
usb_device_ehci.c
is written.This is the backtrace:
main
(08496ff
)Going back to
49be50c
(April 1st) doesn't produce a successful build:The behavior has been verified on a second MIMXRT1170-EVK dev board.
Not using
usbd_next_prj.conf
works fine. The firmware is built and shows Mass Storage device when flashed and connected to PC. Serial output reads: