Tool/software: Code Composer Studio
Hi there,
I've been correctly using CDC USB connection with CSL library on a DSP-BIOS project.
Everthing works fine if initialize the USB on the main function as follow:
int main(void)
{
// Init
PllSet();
// Si inizializza la porta USB
UsbOpen();
}
After UsbOpen() I'm able to see the device on my computer and correctly send/receive data.
USBOpen is basically the CSL CDC example code.
If I move the same UsbOpen() function outside the main it doesn't work anymore. After I call CDC_Open(&CDC_AppHandle, &usbConfig) the program doesn't work anymore, breakpoints , step over debug functions too.
This application simply has an idle function that I use to mange user commands throug GEL scripts (my intention was to open USB only when the user decide to open it).
Any suggestion?
Thank you
Stefano