Skip to content

TUSB MSC demo runtime assertion #585

@xmos-jmccarthy

Description

@xmos-jmccarthy

System information

  • OS: Linux and Windows (not tested on macOS)
  • Explorer
  • SDK 349cd58

Describe the current behavior
The TUSB msc demos will encounter a runtime assertion if you attempt to disconnect the removable drive.

xrun: Program received signal ET_LOAD_STORE, Memory access exception.
xud_data_get_start (ep=874200, buffer=0x909cc "\002\001") at /home/jmccarthy/xmos/xcore_sdk/modules/rtos/modules/drivers/usb/src/xud_xfer_data.h:25
25 asm ("stw %0, %1[0]"::"r"(ep),"r"(chan_array_ptr));
Current language: auto; currently minimal
make[3]: *** [CMakeFiles/run_example_freertos_usb_tusb_demo_msc_dual_lun.dir/build.make:71: CMakeFiles/run_example_freertos_usb_tusb_demo_msc_dual_lun] Error 125

Describe the expected behavior
No runtime assertion

Standalone code to reproduce the issue
make run_example_freertos_usb_tusb_demo_msc_dual_lun
Disconnect one of the drives that shows up.

Other info or logs
It also appears that building the msc demo in FULL speed no longer functions.
First found by @jcarrier-xmos

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions