Open source USB device/host stack for ARM microcontrollers???

Status
Not open for further replies.

topham

Ars Legatus Legionis
13,756
Subscriptor
[url=http:/civis/viewtopic.php?p=26507941#p26507941:1nq8r5mc said:
Rhys[/url]":1nq8r5mc]Is anyone aware of a USB device/host stack written for ARM microcontrollers? I am not having much luck finding one. Not particular to which microcontroller it's written for. I'm fairly certain I can manage to port it to the one I want, but I don't think I have the skill to write my own from scratch.

Get a Linux distribution intended for something like the Raspberry Pi. It's ARM based.
 
I'm not sure how much luck you will have with that. As far as I know, the USB macro blocks on any given CPU are not ARM-specified, only the CPU core is, so each vendor is likely to have some significant differences in their implementation. I have had reads through the datasheets of, for example, the USB macro blocks for the MSP430 and the Stellaris, and they aren't much alike. You would likely have a fair amount of driver coding to do, even if you are lucky and the stack you find has a decent hardware abstraction layer.

I had a long look at the AVR32 USB stack at one point and ended up handing my problems over to their devs, because immersion in the code promised to be both painful and extended. USB stacks are big and complex.

(PS. I'm aware the MSP430 and AVR32 are not ARM - the comparisons are intended to be representative rather than exact.)
 

Rhys

Ars Centurion
285
Subscriptor++
philj - That may actually just be the ticket for what I'm looking for. The article (not sure how I missed that one, I read hackaday too....) mentions the code is written to be portable. The TI Tiva series chips I'm using have an open source USB HAL as part of the driverlib. If I can manage a wedge between the bit-banged high level stack and the TI USB HAL to replace the bit-banged HAL, I may just be able to make that work. I'll take a look and report back.
 
Status
Not open for further replies.