Other Parts Discussed in Thread: C2000WARE
What do I need to do in order to report a suspected bug in a product?
I have using the USB library in C2000Ware_4_02_00_00 and have found a bug in USBBufferInfoGet() in usbbuffer.c.
void USBBufferInfoGet(const tUSBBuffer *psBuffer, tUSBRingBufObject *psRingBuf) { // // Check parameter validity. // ASSERT(psBuffer && psRingBuf); // // Copy the current ring buffer settings to the clients storage. // psRingBuf->pui8Buf = psBuffer->sPrivateData.sRingBuf.pui8Buf; psRingBuf->ui32ReadIndex = psBuffer->sPrivateData.sRingBuf.ui32ReadIndex; psRingBuf->ui32Size = psBuffer->sPrivateData.sRingBuf.ui32ReadIndex; psRingBuf->ui32WriteIndex = psBuffer->sPrivateData.sRingBuf.ui32WriteIndex; }
It is assigning the psRingBuf->ui32Size the value of the ReadIndex instead of the size of the ring buffer.