I tried the firmware with the first circuit i mentioned above, but it does not seem to work. If I use the sample library code provided by Mikroelektronika, its working perfectly fine. But not your firmware. The host is not even detecting the device. Please help.