문제

I have no experience of embedded USB stacks so my question is, can I run it without an OS?

Of course it must be possible to run without OS, but will things be MUCH easier if I have one?

I want to use it to save data to a attached USB Mass Storage Device.

도움이 되었습니까?

해결책

If your USB device is on-chip, your chip vendor will almost certainly have example code for USB that may include mass storage. You won't need an OS, but interrupt handling will be necessary and a file system too.

Your USB controller will need host or OTG capability - if it is only device capable, then you cannot connect to another USB device, only a host.

The benefit of an OS - or at least a simple RTOS kernel - is that you can schedule file system activity concurrently with other processing tasks. The OS in that case would not necessarily make things easier, but it may make your system more responsive to critical tasks and events.

다른 팁

I have used usb stacks in the past with PIC18F2550 (8 bits) and LPC1343 (32 bits ARM-Cortex M3) microcontrollers without any problems.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top