cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

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
Reply
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
Reply
3 Replies
Esteemed Contributor II

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
Reply
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
Reply
Honored Contributor II

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...