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.

HWI make my task stuck at task_sleep()

Other Parts Discussed in Thread: SYSBIOS

Hi all,

I try to create a USB bulk communication with 5 task running.

I'm using SYSBIOS 6 and Starterware 1.10.02.02.

My problem is that when I start my HWI for the USB (I'm using usb_dev_bulk), the task run one time and after they blocked at task_sleep().  I verify the ROV and it indicate the all the task are block on task_sleep(). 

I think that the HWI is overloading the system but i don't know how to resolve this problem. The HWI look to work because when i connect and disconnect, I send a message on the console that indicate me the status of the USB. So the HWI of the USB look to work but is blocking all other task.

If I remove the HWI the task running perfectly. 

pls help me

Vince

  • After I search on the TI forum, I think that when i create the UBS0 interrupt with this:

    puts("Configuring USB...");

    // Setup the DSP INTC
    IntDSPINTCInit();
    IntGlobalEnable();

    IntRegister(4, USB0DeviceIntHandler);
    IntEventMap(4, SYS_INT_USB0_INT);
    IntEnable(4);

    //Delay timer setup
    DelayTimerSetup();

    // Initialize the transmit and receive buffers.
    USBBufferInit((tUSBBuffer *)&g_sTxBuffer);
    USBBufferInit((tUSBBuffer *)&g_sRxBuffer);

    // Pass our device information to the USB library and place the device on the bus.
    USBDBulkInit(0, (tUSBDBulkDevice *)&g_sBulkDevice);

    puts("Waiting for host...");

    I think that those line disable the interrupt who is control the timer 0 (HWI14), who is use for the task_sleep. How I can solve this problem? Can I just enable the HWI14, but how I can do this?

  • No one can help me with this???

    I'm still on this problem, i'm pretty sure that its the Hwi 14 (ti_sysbios_knl_Clock_doTick__I) that is stopped when i create my USB interrupt (usb_dev_bulk.c). I try to update my BIOS software and the starterware package but i got the same problem. I try to enable the Hwi 14 ( Hwi_enableInterrupt(14); ) after i create the USB interrupt but with no succes.

    When I made ​​the comparison between my software without the USB interrupt (when all the task run correctly) and the software with the USB interrupt (task doesn't work but the USB interrupt work) i can see in the ROV HWI that the only difference is that the irp is not zero when the task work correctly...

    The picture show when i activate the USB interrupt:

    Is there anyone can help me because it starts to be urgently

    Thanks

  • Hello team,

    Is there an update available for this customer's inquiry?

  • Im still waiting for some help...