- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK so I changed the name to USBFS from USBFS_HID and started working again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do exactly as suggested: contact the author:
At top of this page select "Design Support -> Create a Support Case" and describe your problem.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK so I changed the name to USBFS from USBFS_HID and started working again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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: