cdc + msd woes
Posted: Thu Jun 22, 2017 11:52 pm
I've been trying to get the msd code on Chibios-Contrib (https://github.com/ChibiOS/ChibiOS-Contrib) to work in a composite device. I've previously created a solid cdc + bulk composite device, so I didn't expect huge problems, but that was optimistic. Here's where I am
1) msd alone. Works (mostly), but doesn't always remount on OS X . More reliable on Linux. I did have to comment a couple of usb otg statements in hal_usb_msd.c to get this to compile stm32l432.
2) cdc alone. Works great
3) msd + cdc. the drive doesn't mount at all. Equally confusing is that screen on OS X drops (resets ?) the tty after 30-60 seconds. If I use a chibios shell with exit disabled, that thread doesn't seem to notice. I can reconnect screen as if nothing happened. My first thought was something with the EP0 setup packets, but I've tried tightening up that code to no avail.
I'm not really sure where to go next. Any suggestions ? Anybody have a successful CDC + MSC project ?
Geoffrey
1) msd alone. Works (mostly), but doesn't always remount on OS X . More reliable on Linux. I did have to comment a couple of usb otg statements in hal_usb_msd.c to get this to compile stm32l432.
2) cdc alone. Works great
3) msd + cdc. the drive doesn't mount at all. Equally confusing is that screen on OS X drops (resets ?) the tty after 30-60 seconds. If I use a chibios shell with exit disabled, that thread doesn't seem to notice. I can reconnect screen as if nothing happened. My first thought was something with the EP0 setup packets, but I've tried tightening up that code to no avail.
I'm not really sure where to go next. Any suggestions ? Anybody have a successful CDC + MSC project ?
Geoffrey