LPC1347 USB Rom Drivers on Rowley

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1347 USB Rom Drivers on Rowley

570 Views
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.
Labels (1)
0 Kudos
1 Reply

556 Views
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 Kudos