01-22-2012 08:51 PM
Try putting a delay (a sequence structure with a wait in it) between your VISA Write and your VISA Read, it might help the problem.
01-23-2012 04:00 AM
Hello,
Thank for suggestion but it does not working. The delay was the first stuff that I have tried. 🙂
07-11-2012 07:11 AM
Hello Bart,
Have you found a solution for your problem? I have the same problem, I can write to the uC but I can't read from the uC.
Have a nice day
Ronald
07-11-2012 08:35 AM
Found the problem.
The descriptor file (USBdsc.c) of MikroC Pro was not correct.... A few changes and it works....
Regards.
Ronald
07-11-2012 12:14 PM
Hello Rtessel,
Nop, I do not have any answer but if it works for you, could you please give me your solution?
Thanks.
Bart
07-12-2012 01:13 AM
Hello Bart,
The generated descripter file "USBdsc.c" by mikroC Pro for PIC v.5.6.0 I changed a part of the "configuration 1 descriptor":
it was like this:
// Endpoint Descriptor
0x07,
0x05,
USB_HID_EP | 0x80,
USB_TRANSFER_TYPE,
0x40,0x00,
EP_IN_INTERVAL,
// Endpoint Descriptor
0x07,
0x05,
USB_HID_EP,
USB_TRANSFER_TYPE,
0x40,0x00,
EP_OUT_INTERVAL
Changed into:
// Endpoint Descriptor
0x07,
0x05,
USB_HID_EP,
2,
0x40,0x00,
EP_IN_INTERVAL,
// Endpoint Descriptor
0x07,
0x05,
USB_HID_EP | 0x80,
2,
0x40,0x00,
EP_OUT_INTERVAL
Regards,
Ronald
07-13-2012 12:14 AM
08-17-2017 09:12 AM
Dear all,
is this solution still valid? I am having the same problem - I am able to send data to microcontroller through VISA write, but when I try to read I get the error (Hex 0xBFFF003A) .
is the problem in the firmware of the microcontroller? I am not the one who wrote the firmware so I cannot modify it and I am not experienced in coding....