Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 4 months ago.
USBHostKeyboard causing crash
Hi,
I'm implementing the USBHostKeyboard class in order to add a barcode scanner to my current project.
When testing the barcode scanner by itself in a seperate program I can use the USBHostKeyboard class just fine. However when used in conjunction with my main program it will crash at the instantiation of the USBHost class.
When the USBHostKeyboard gets constructed it makes a call to USBHost::getHostInst() which in turn will create an instance of the USBHost class. It's in the construction of the USBHost class that the program crashes.
Memory-wise I should be fine for the Arch Pro, compiling it in Keil µVision 5 gives me the following:
Program Size: Code=91924 RO-data=8824 RW-data=6116 ZI-data=16996
which results in RAM usage of: 23112/65536 (35.2%) and ROM usage of 106864/524288 (20.8%).
I'm literally out of ideas as to why it's crashing. Any help would be greatly appreciated.
Thanks in advance.