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

I can't write data through USB

Hello,
I'm trying to send data my usb device using simpleHIDWrite tool, but I'm getting this error:
access violation at address 00000, read of address 00000
Does anyone have an idea about what could be the source of this problem.

Parents
  • I think I know what a null pointer means.
    In fact after more searching on my problem I found that when I make a report with a report size = 8 and a report count = 64 or more I get this error but when the report count = 63 There is no error and all the data are transmitted, The problem is that I'm transmitting 64 byte while I'm declaring the report count to be 63.
    I'm supposing that the first byte sent is the report id so the total size of the transmitted data is 63+1=64.
    I'm wondering If I can omit the report id and use it as a data byte.

Reply
  • I think I know what a null pointer means.
    In fact after more searching on my problem I found that when I make a report with a report size = 8 and a report count = 64 or more I get this error but when the report count = 63 There is no error and all the data are transmitted, The problem is that I'm transmitting 64 byte while I'm declaring the report count to be 63.
    I'm supposing that the first byte sent is the report id so the total size of the transmitted data is 63+1=64.
    I'm wondering If I can omit the report id and use it as a data byte.

Children
No data