Cy7c63813-SXC sample

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
sugu_293411
Level 1
Level 1

I want test a USB_HID project used with Cy7c63813-SXC, i had created the project with PSoC Designer 5.2. 

   

now it can enum perfect,but can not deal with "HID CLASS INTERFACE OUT REQUEST: Set_Report" ,and return error with "USBD_STATUS_STALL_PID (0xC0000004) ",the bellow is HID_REPORT

   

USB_HID_REPORT_1_DESCR_START:                    ;
    DB     06H, 00H, FFH                         ; Usage Page
    DB     09H, 01H                              ; Usage
    DB     A1H, 01H                              ; Collection
    DB     85H, 01H                              ; Report ID
    DB     09H, 01H                              ; Usage
    DB     15H, 00H                              ; Logical Minimum
    DB     26H, FFH, 00H                         ; Logical Maximum
    DB     75H, 08H                              ; Report Size
    DB     95H, 09H                              ; Report Count
    DB     B1H, 06H                              ; Feature
    DB     85H, 02H                              ; Report ID
    DB     09H, 03H                              ; Usage
    DB     96H, 17H, 00H                         ; Report Count
    DB     B1H, 06H                              ; Feature
    DB     C0H                                   ; End Collection
USB_HID_REPORT_1_DESCR_END:             

   

how do handle USB_HID Set_Report and Get_Report  request ,is there a C Language sample?the UserModul is ASM

0 Likes
1 Solution
Anonymous
Not applicable

 Hi,

   

        Please create a tech support case at Support>Technical Support>Create my case: so that one of our Engineers can help you on this.

   

Thanks

   

Prajith

View solution in original post

0 Likes
6 Replies
sugu_293411
Level 1
Level 1

When i edit  function:Find_Report  in USB_cls_hid.asm it can pass Set_Report error,but can not handle Get_Report request in Find_Report fun ,return error :USBD_STATUS_CANCELED (0xC0010000)

   

Where add respond code for Get_Report request?

                                           

SetupPacket

0xA1 0x1 0x1 0x3 0x0 0x0 0x18 0x0

   
0 Likes
sugu_293411
Level 1
Level 1

my app is call HidD_SetFeature and HidD_GetFeature , i can monitor the usb data with USBTrace like this:

   

HidD_GetFeature:  0x21 0x9 0x2 0x3 0x0 0x0 0x18 0x0

   

 

   

HidD_GetFeature :0xA1 0x1 0x1 0x3 0x0 0x0 0x18 0x0

   

the USB UM can handle SetReport,but not GetReport?Can you give me some sample for HidD_SetFeature and HidD_GetFeature with cy7c63813 chip like  ,thanks!

0 Likes
Anonymous
Not applicable

 Hi,

   

        Please create a tech support case at Support>Technical Support>Create my case: so that one of our Engineers can help you on this.

   

Thanks

   

Prajith

0 Likes
Anonymous
Not applicable

我也遇到了同样的问题,不知道你解决没有?方便交流一下吗?QQ 55572448

0 Likes
Anonymous
Not applicable

 English translation: I also encountered the same problem, do not know if you solve no? To facilitate the exchange it? QQ 55572448.

   

 

   

Hi bugulong,

   

 

   

Please create a tech support case at www.cypress.com -> Support>Technical Support>Create my case.

   

 

   

Regards,

   

Gayathri

0 Likes
Anonymous
Not applicable

 Hi  bugulong/sungog,

   

       You have to make modifications to the library files generated by PSoC designer to support GET report and Set Report feature.

   

      I will come up with an example project on monday end of day India time.

   

Thanks & Regards,

   

-Anandh

0 Likes