The code that I got from Keil website works for me, with the given hex file. But when I compile and generate a hex file on my pc and use it, it isn't working and the USB HID is not detected. I tried with Keil uVision4 and 5 and they didn't work. Can anyone help me solve this issue?
With MDK-5 a support of the LPC2148 requires the installation of the ARM7/9/CortexR-Legacy Pack: www2.keil.com/.../legacy Have you got this Legacy-Pack installed on your PC?
Other than that - what example project are you using?
Yep...I have installed the legacy pack.but after compilation the code of USB HID in my PC and using the hex file created, USB HID is not recognized by my PC.but while using the hex file given with example code, the USB HID is recognized. I cannot find what the problem is.
I am using the example code given in the below link.
http://www.keil.com/download/docs/306.asp
...thats a pretty old project - but before stepping into it - with the installation of the Legacy Pack there are example projects existing for this LPC2148 at C:\Keil\ARM\Boards\Embedded Artists\LPC2148_USB_QSB - do these help?
BTW - what is the Operating System you are using?
Thanks for your reply. i am using windows xp. but the link that you referenced has only codes related to uart. Is there any other file related to USB HID available ?
1. Install MDK Version 5 - Legacy support for ARM7, ARM9 & Cortex-R devices 2. Open c:\Keil\ARM\Boards\Keil\MCB2140\RL\USB\Device\HID\ 3. Build the project, download it to the chip and disconnect the USB cable and reconnect the USB cable
There is also version using RTX in c:\Keil\ARM\Boards\Keil\MCB2140\RL\USB\Device\RTX\HID\
We've summarized this solution at: http://www.keil.com/support/docs/3749.htm
Thank you for your suggestions. It worked well.Thanks a lot.
Thanks for your help. It worked fine.