I am using StarterWare 1_00_03_03. Previously, I have had issues getting the USB examples to work with the logicPD board because of the fact that the PACKED declaration didn't work properly with the TMS compiler. I did get the USB working with the GCC compiler, but that it not my preferred method. Talking with customer support, I found out that the newest TMS compiler fixes this bug. I updated my CCS5 with TMS470 5.0.1. Now when I compile any USB project, I get a ton of compiler errors that looks like is caused by the PACKED declaration. Is there something more I need to do?
Here is my console log if that helps:
**** Build of configuration Debug for project usb_dev_mouse_armv5_am1808_evmAM1808 ****
C:\ti\ccsv5\utils\bin\gmake -k all
'Building file: C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/touch.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/tms470_5.0.1/bin/armcl" -mv5e --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_5.0.1/include" --include_path="../../../../../../../examples/evmAM1808/usb_dev_mouse" --include_path="../../../../../../../include" --include_path="../../../../../../../include/hw" --include_path="../../../../../../../include/armv5" --include_path="../../../../../../../include/armv5/am1808" --include_path="../../../../../../../grlib/include" --include_path="../../../../../../../usblib/include" --include_path="../../../../../../../nandlib/include" --define=am1808 --diag_warning=225 --preproc_with_compile --preproc_dependency="touch.pp" "C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/touch.c"
'Finished building: C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/touch.c'
' '
'Building file: C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/usb_dev_mouse.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/tms470_5.0.1/bin/armcl" -mv5e --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_5.0.1/include" --include_path="../../../../../../../examples/evmAM1808/usb_dev_mouse" --include_path="../../../../../../../include" --include_path="../../../../../../../include/hw" --include_path="../../../../../../../include/armv5" --include_path="../../../../../../../include/armv5/am1808" --include_path="../../../../../../../grlib/include" --include_path="../../../../../../../usblib/include" --include_path="../../../../../../../nandlib/include" --define=am1808 --diag_warning=225 --preproc_with_compile --preproc_dependency="usb_dev_mouse.pp" "C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/usb_dev_mouse.c"
"../../../../../../../usblib/include/usblib.h", line 197: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 197: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 318: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 318: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 318: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 407: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 407: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 407: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 519: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 519: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 519: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 578: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 578: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 578: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 651: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 651: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 651: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 701: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 701: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 701: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 772: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 772: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 772: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 802: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 802: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 802: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 906: error: identifier "tUSBRequest" is undefined
"../../../../../../../usblib/include/usblib.h", line 1251: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usblib.h", line 1253: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usblib.h", line 1253: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usblib.h", line 1258: error: identifier "tConfigDescriptor" is undefined
>> Compilation failure
"../../../../../../../usblib/include/usblib.h", line 1260: error: identifier "tInterfaceDescriptor" is undefined
'Building file: C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/usb_mouse_structs.c'
"../../../../../../../usblib/include/usblib.h", line 1260: error: identifier "tConfigDescriptor" is undefined
"../../../../../../../usblib/include/usblib.h", line 1263: error: identifier "tEndpointDescriptor" is undefined
'Invoking: ARM Compiler'
"../../../../../../../usblib/include/usblib.h", line 1264: error: identifier "tInterfaceDescriptor" is undefined
"C:/ti/ccsv5/tools/compiler/tms470_5.0.1/bin/armcl" -mv5e --code_state=32 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_5.0.1/include" --include_path="../../../../../../../examples/evmAM1808/usb_dev_mouse" --include_path="../../../../../../../include" --include_path="../../../../../../../include/hw" --include_path="../../../../../../../include/armv5" --include_path="../../../../../../../include/armv5/am1808" --include_path="../../../../../../../grlib/include" --include_path="../../../../../../../usblib/include" --include_path="../../../../../../../nandlib/include" --define=am1808 --diag_warning=225 --preproc_with_compile --preproc_dependency="usb_mouse_structs.pp" "C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/usb_mouse_structs.c"
"../../../../../../../usblib/include/usbhid.h", line 541: error: expected a type specifier
"../../../../../../../usblib/include/usbhid.h", line 541: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usbhid.h", line 541: error: expected a ";"
"../../../../../../../usblib/include/usbhid.h", line 588: error: identifier "tHIDClassDescriptorInfo" is undefined
"../../../../../../../usblib/include/usbhid.h", line 590: error: expected a type specifier
"../../../../../../../usblib/include/usbhid.h", line 590: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usbhid.h", line 590: error: expected a ";"
"../../../../../../../usblib/include/usbdevice.h", line 95: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usbdevice.h", line 102: error: identifier "tInterfaceDescriptor" is undefined
"../../../../../../../usblib/include/usbdevice.h", line 106: error: identifier "tEndpointDescriptor" is undefined
"../../../../../../../usblib/include/usbdhid.h", line 610: error: identifier "tConfigDescriptor" is undefined
"../../../../../../../usblib/include/usbdhid.h", line 785: error: identifier "tHIDDescriptor" is undefined
47 errors detected in the compilation of "C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/usb_dev_mouse.c".
gmake: *** [usb_dev_mouse.obj] Error 1
"../../../../../../../usblib/include/usblib.h", line 197: error: expected a type specifier
>> Compilation failure
"../../../../../../../usblib/include/usblib.h", line 197: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 318: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 318: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 318: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 407: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 407: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 407: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 519: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 519: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 519: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 578: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 578: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 578: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 651: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 651: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 651: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 701: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 701: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 701: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 772: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 772: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 772: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 802: error: expected a type specifier
"../../../../../../../usblib/include/usblib.h", line 802: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usblib.h", line 802: error: expected a ";"
"../../../../../../../usblib/include/usblib.h", line 906: error: identifier "tUSBRequest" is undefined
"../../../../../../../usblib/include/usblib.h", line 1251: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usblib.h", line 1253: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usblib.h", line 1253: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usblib.h", line 1258: error: identifier "tConfigDescriptor" is undefined
"../../../../../../../usblib/include/usblib.h", line 1260: error: identifier "tInterfaceDescriptor" is undefined
"../../../../../../../usblib/include/usblib.h", line 1260: error: identifier "tConfigDescriptor" is undefined
"../../../../../../../usblib/include/usblib.h", line 1263: error: identifier "tEndpointDescriptor" is undefined
"../../../../../../../usblib/include/usblib.h", line 1264: error: identifier "tInterfaceDescriptor" is undefined
"../../../../../../../usblib/include/usbhid.h", line 541: error: expected a type specifier
"../../../../../../../usblib/include/usbhid.h", line 541: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usbhid.h", line 541: error: expected a ";"
"../../../../../../../usblib/include/usbhid.h", line 588: error: identifier "tHIDClassDescriptorInfo" is undefined
"../../../../../../../usblib/include/usbhid.h", line 590: error: expected a type specifier
"../../../../../../../usblib/include/usbhid.h", line 590: error: "__attribute__" has already been declared in the current scope
"../../../../../../../usblib/include/usbhid.h", line 590: error: expected a ";"
"../../../../../../../usblib/include/usbdevice.h", line 95: error: identifier "tDescriptorHeader" is undefined
"../../../../../../../usblib/include/usbdevice.h", line 102: error: identifier "tInterfaceDescriptor" is undefined
"../../../../../../../usblib/include/usbdevice.h", line 106: error: identifier "tEndpointDescriptor" is undefined
"../../../../../../../usblib/include/usbdhid.h", line 610: error: identifier "tConfigDescriptor" is undefined
"../../../../../../../usblib/include/usbdhid.h", line 785: error: identifier "tHIDDescriptor" is undefined
47 errors detected in the compilation of "C:/ti/AM1808_StarterWare_1_00_03_03/examples/evmAM1808/usb_dev_mouse/usb_mouse_structs.c".
gmake: *** [usb_mouse_structs.obj] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****