Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does USBX MSC support Nor FLASH? #10

Open
arilink-tech opened this issue Sep 9, 2021 · 5 comments
Open

Does USBX MSC support Nor FLASH? #10

arilink-tech opened this issue Sep 9, 2021 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@arilink-tech
Copy link

SD MSC has been successfully run on USBX and can read and write normally. Can Nor FLASH also achieve the same function?

@ALABSTM ALABSTM added the question Further information is requested label Sep 28, 2021
@ALABSTM
Copy link
Contributor

ALABSTM commented Sep 28, 2021

Hi @arilink,

Good to read from you again. You question has been forwarded to our development teams. We will get back to you as soon as we have their answer.

With regards,

@CHAMSTM
Copy link

CHAMSTM commented Sep 28, 2021

Hi @arilink ,

Actually, USB MSC interface is agnostic of the low layer medium used.

So you can use SD or NOR or any type of memory (as long as it supports direct read/write operations) by replacing the calls to SD driver callbacks by calls to the new memory callbacks.

But it is important to pay attention to potential specific features of a memory (ie. dual bank, addressing scheme, ...) that may cause issues: USB MSC will simply expose the memory to the Host and let him manage it directly through read/write. So Host expects to have direct access to the address locations and will not perform additional operations (ie. setup bank, add offsets, manage sectors..).

Of course memories like NAND could not be interfaced to USB MSC directly, since they require specific management layer.
For the NOR I think there should be no major issues since BSP/HAL drivers would take in charge init and read/write operations.

We don't have such implementation today and it is not planned, but I think it is possible to implement with some reasonable effort.

I hope this helps.

Kind Regards,

@arilink-tech
Copy link
Author

ok i will try it
thankyou very much

@arilink-tech
Copy link
Author

@CHAMSTM
AzureRTOS and its components are very good. I have been working hard to apply it to actual projects. Our projects mainly use ThreadX and USBX. The example you gave is to use H7 step by step down to F4. I put it on F1 after testing on H7. However, I encountered a lot of problems in this process. I tested HID IN+CDC on H7 at the same time. The transmission rate of HID can reach 1000 times per second, but the same program cannot work normally on F1. Can you help? I submitted a new ISSUE eclipse-threadx/usbx#39

@Bharath-Zion
Copy link

Hi @arilink-tech
I'm working on STM32U0 series MCU and SPI NOR Flash "W25Q32JV".
I'm not able to implement the MSC using USBX. Can you help me to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants