|
From: Raghav P. <rag...@gm...> - 2009-06-12 20:03:50
|
Hi, I am trying to communicate with a FX2 USB device that I have. I am able to submit control transfers just fine. However, when I try to do a bulk transfer, I get a segmentation fault. I'm not sure what is happening. Any help would be appreciated. The code segment that is segfaulting is below: #define FLEX_2_EP 0x02 //m_hDeviceHandle is a pointer libusb_device_handle int *nBytes; int result; char c = 'R'; unsigned char endpoint = FLEX_2_EP; result = libusb_bulk_transfer(m_hDeviceHandle, endpoint, (unsigned char*) &c, sizeof(c), nBytes, 0); //segfault occurs here -- Raghav Puranmalka <rag...@gm...> Bachelor of Science in Bioengineering School of Engineering and Applied Science University of Pennsylvania |