LPC1347 USB Rom Drivers on Rowley

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC1347 USB Rom Drivers on Rowley

792 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rkcooncap on Thu Nov 01 10:02:02 MST 2012
I want to run the LPC1347 USB Rom drivers with the Rowley compiler but it always crashes to Hard Fault.
I am running example code from LPCWare suggested by NXP. I am running LPCXpresso board.

I can run the exact same code on Code-Red compiler and it works correctly. I run it on Rowley, it always crashes when I call the pUsbApi->hw->WriteEP function.

Thanks for your help.
标签 (1)
0 项奖励
回复
1 回复

778 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rkcooncap on Fri Nov 02 09:28:35 MST 2012
I fixed this problem. It was a simple matter of needing to increase the stack size going from C to C++.
The Rowley compiler fooled me becaue I thought I had alreading increased the stack, but it didn't actually get set in the project properties.

I am asking Rowley about it.

The moderators can delete this issue if they want, since it is trivial and not really about USB.
0 项奖励
回复