Hi all,
I tried to use the sample CCL USB sample program “C55 Low Power Chip Support Library v2.50.00\c55xx_csl\ccs_v4.0_examples\usb\CSL_USB_CdcExample”. The release build of this project works fine i.e. the device got recognized as a virtual com port and communication between the host PC and EVM is established.
But the debug build of the project is not working. I am getting the windows prompt ‘USB Device not recognized’.
Analysis done: I checked out the difference between release build and debug build.
Optimization level of CSL_USB_CdcExample\Release is 2 and optimization of cslVC5505\Release (library for CSL_USB_CdcExample) is 3.
Optimization is off in case of debug build.
So tried the debug build with optimization levels as defined for release build and it worked fine. Issue is regarding optimization, and the code works fine only if optimization is ON.
CCS version 4.1.0.02002, CGS version - TI v4.3.2, DSP/BIOS - 5.41.00.06
1)Could anyone please explain how to solve this issue. I need to work the CCL USB sample program for both release build and debug build. ?
2)Is there any way to turn off optimization of a function alone ?
Thanks in advance