Any suggestions for porting the USB Stack (Specifically HID Device) to KL25 Using Atollic?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Any suggestions for porting the USB Stack (Specifically HID Device) to KL25 Using Atollic?

ソリューションへジャンプ
1,316件の閲覧回数
chuckh
Contributor III

We use Atollic IDE for our other projects so we would like to continue using it.  However, it seems like the Freescale USB Stack and Examples are meant for use with Codewarrior (and are missing many files that are required to successfully compile on another IDE).  Has anyone successfully done an HID device with atollic with a KL25 or does anyone have any suggestions for porting the freescale USB stack into Atollic successfully?

Thanks.

タグ(6)
0 件の賞賛
返信
1 解決策
940件の閲覧回数
chuckh
Contributor III

Issue solved!  It was a combination of needing a LITTLE_ENDIAN define as well as correctly configuring the PLLs.

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
941件の閲覧回数
chuckh
Contributor III

Issue solved!  It was a combination of needing a LITTLE_ENDIAN define as well as correctly configuring the PLLs.

0 件の賞賛
返信
940件の閲覧回数
bennahill
Contributor I

I just want to thank you, Chuck, for putting an end to a week of ripping my hair out with the same problem when trying to build an audio receiver with just CMake and GCC/G++. Everything was configured the same as one of the example projects using the ARM compiler but the descriptors weren't being sent. I compared nearly all peripheral registers between working code and my own and could find no discrepancy. I was missing the LITTLE_ENDIAN define...

0 件の賞賛
返信
940件の閲覧回数
_dekiru_
Contributor I

The BM stack and examples have been written in the way that they can support multiple platforms and multiple compilers.

At the moment, for ARM architecture, it has supported IAR, KEIL, CW and GCC already.

There are only limited places where the codes are different for compilers including: pragma define for memory alignment, interrupt handler and some inline assembly code.

You can search for __IAR_SYSTEMS_ICC__ to see how they handle IAR, then apply similar thing to Atollic.

Regards

0 件の賞賛
返信
940件の閲覧回数
chuckh
Contributor III

It's compiling now but not enumerating. The interrupts are firing but a usb sniff shows that the descriptors are not being sent.

0 件の賞賛
返信
940件の閲覧回数
chuckh
Contributor III

I've now learned that the enumeration breaks when there is a PIDERR.  Why does this happen with a device?

0 件の賞賛
返信