This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem in HID-extended example (communicate LPC2378 and LabVIEW)

Hi everybody
I'm working on a project with LPC2378 which in a part of it I have to communicate with LabVIEW using USB directly (without any convertor such as FT232RL)
I'm using "HID-extended" example included in RL-USB. (capable of sending 64 byte packets everytime)
Detailes are: Class = HID , Endpoint Type = Interrupt , Endpoint Number = 1 , ...
Now I'm able to send and recieve data between LPC2378 and LabVIEW.
Sending data from computer using Control Transfer and recieving data from LPC2378 using Interrupt Transfer.
My problem is in recieving section. In "GetInReport()" function (included in demo.c file) there is a unsigned char array named by "InReport"
It's a very srtange problem
When I write "InReport[0] = 10;" in LabVIEW I recieve 10 but when I write "InReport[0] = function1();" device is not able to enumerate correctly by windows or in other word windows can not recognize my board and Good Link LED goes to on state forever
therefor LabVIEW can not communicate with LPC2378

## whatever function1 is. like :
unsigned char function1(void)
{ return (10);
}

Please help me. it's urgent