Trouble generating API for USB HID component

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello,

   

 

   

I am trying to generate the API for an USB HID component.

   
    

Error in customizer for component "USBFS_v3_0" : ICyAPICustomize_v1.CustomizeAPIs : (System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List`1.get_Item(Int32 index) at USBFS_v3_0.CyUSBCodeGenerator.GenReportTable(Int32 rptIndex, String instName, String qualName) at USBFS_v3_0.CyUSBCodeGenerator.GenReportTables(CyDescriptorNode node, String instName, String qualName) at USBFS_v3_0.CyUSBCodeGenerator.GenReportTables(CyDescriptorNode node, String instName, String qualName) at USBFS_v3_0.CyUSBCodeGenerator.GenReportTables(CyDescriptorNode node, String instName, String qualName) at USBFS_v3_0.CyUSBCodeGenerator.GenReportTables(CyDescriptorNode node, String instName, String qualName) at USBFS_v3_0.CyUSBCodeGenerator.GenReportTables(CyDescriptorNode node, String instName, String qualName) at USBFS_v3_0.CyUSBCodeGenerator.GenReportTables(CyDescriptorNode node, String instName, String qualName) at USBFS_v3_0.CyUSBCodeGenerator.GenerateHIDReports() at USBFS_v3_0.CyUSBCodeGenerator.GenerateCode() at USBFS_v3_0.CyCustomizer.CustomizeAPIs(ICyInstQuery_v1 query, ICyTerminalQuery_v1 termQuery, IEnumerable`1 apis) at CyDesigner.PSoC.CyDsFit_ApiGen.RunAPICustomizer(CyInstCustomizerProvider custProvider, ICyInstQuery_v1 instQuery, ICyTerminalQuery_v1 termQuery, IEnumerable`1 apis) at CyDesigner.PSoC.CyDsFit_ApiGen.DoAPICustomization(String blockName, CyInstCustomizerProvider custProvider, CyInst apiCustomizerInst, ICyInstQuery_v1 instQueryIntf, ICyTerminalQuery_v1 termQueryIntf, List`1& allAPIs)).

   
   

What I can I do to fix this?

0 Likes
1 Solution
Anonymous
Not applicable

OK so I changed the name to USBFS from USBFS_HID and started working again.

View solution in original post

0 Likes
3 Replies