This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C123GH6ZRB: Missing definition of "USB_BUFFER_WORKSPACE_SIZE" in "TivaWare_C_Series-2.1.4.178\usblib\usblib.h"

Part Number: TM4C123GH6ZRB

Tool/software: Code Composer Studio

Hi Experts,

I worked on the project of TM4C123GH6ZRB with CCS 6.0.1 and TivaWare_C_Series-2.0.1.11577 on my Windows 7 laptop PC and every thing are fine.

Right now I have installed CCS 9.3 and TivaWare_C_Series-2.1.4.178 on my new Windows 10 laptop. After configured the CCS 9.3, imported and compiled my old project, there is error listed below:

>> Compilation failure
"../usb_bulk_structs.c", line 165: error #20: identifier "USB_BUFFER_WORKSPACE_SIZE" is undefined
1 error detected in the compilation of "../usb_bulk_structs.c".
gmake: *** [usb_bulk_structs.obj] Error 1
gmake: Target `all' not remade because of errors.

The "USB_BUFFER_WORKSPACE_SIZE" in "usb_bulk_structs.c" was defined in "TivaWare_C_Series-2.0.1.11577\usblib\usblib.h", but it could be found in new "TivaWare_C_Series-2.1.4.178\usblib\usblib.h".

Could you tell me where I could find new "usb_bulk_structs.h" and "usb_bulk_structs.c" which will work with TivaWare_C_Series-2.1.4.178, and what are the improvements on USB bulk communication with these new changes?

Thanks lot in advance!

Ned

 

  • Hello Ned,

    From the 2.1.1 release notes:

    5.8.2 Workspace Void Pointer Used by USB Buffer Modified to Use Private Structure
    The workspace void pointer element (pvWorksapce) of the USB buffer structure tUSBBuffer has been
    converted to a private structure in the file usbbuffer.c. Due to this modification all the application specific
    files that declare receive and transmit buffers, of type tUSBBuffer, are also changed.
    

    As for the new files, just go to any usb_dev_bulk example offered. The EK-TM4C123GXL or DK-TM4C123G folders are probably best for you. The examples are under examples/boards/<dev kit folder>

  • Hi Ralph,

    Thanks lot for your guidance. After using new "usb_bulk_structs.h" and "usb_bulk_structs.c" in examples\boards\dk-tm4c129x, the project can be compiled successfully and USB communication is work fine totally. Thanks again!!!

    Best Regards,

    Ned