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
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Do exactly as suggested: contact the author:

   

At top of this page select "Design Support -> Create a Support Case" and describe your problem.

   


Bob

0 Likes
Anonymous
Not applicable

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

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

When renaming a component, you must search though all files (including customizer files) and change the name to a new ones. Also in symbol->properties check and update API prefix to a new name. In your case it was likely an older name that was used in a customizer namespace.

   

Read this:

   

http://www.cypress.com/forum/psoc-community-components/how-import-components-c-customizer-visual-stu...