I would like to create composite device with two MSC devices using Middleware 7.30 on STM3F4 chip. I have configured everything (already did several projects, so I am familiar with run-time configuration manager) but when attached, I can only see first MSC device (#0). In debugger, I can see both MSC tasks started, though - so it seems that device descriptors are not created correctly (only for single MSC device - not composite one). So, I am not sure if succh possibility exists in the first place? I know I can create composite device with different devices (eg. MSC and CDC - used it in the past), but this one is somewhat specific.
Hi Dejan,
I have just tried that with latest MW, and it works correctly. Most likely the problem is that you already had a device with same PID and VID installed on your Windows machine (most likely original example with single MSC). You should uninstall that USB device from Windows and then reconnect the device.
BTW, more naturally this is done by using mass storage device with multiple Logical Units (LUN) which is supported in latest MW release.
Best regards, Milorad
Hi Milorad, yep - I forgot to modify PID and of course, only one drive was recognized as Win used old driver to access device! Thanks for your assistance!
- Dejan
You've said: >BTW, more naturally this is done by using mass storage device with multiple Logical Units (LUN) >which is supported in latest MW release. I can't find anything about it in the documentation - can you point me in the right direction, please?
on this page www.keil.com/.../group__usbd__msc_functions.html you can see the template at the bottom of the page USBD_User_MSC_LUN.c This template contains new functions for handling multi LUN devices.
Hi Milorad, thanks again. Just one more question - are there any plans for implementing USB MTP class device in the foreseeable future?
kind regards
Dejan
there are no plans at the moment for MTP, but if your main objective is firmware download we plan to implement DFU probably which is used for that.