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.