• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » StarterWare » StarterWare forum » HWI make my task stuck at task_sleep()
Share
StarterWare
  • Forum
Options
  • Subscribe via RSS

HWI make my task stuck at task_sleep()

HWI make my task stuck at task_sleep()

This question is not answered
Vincent St-Pierre
Posted by Vincent St-Pierre
on Apr 04 2012 10:38 AM
Intellectual540 points

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

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Vincent St-Pierre
    Posted by Vincent St-Pierre
    on Apr 04 2012 11:07 AM
    Intellectual540 points

    here is my ROV:

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vincent St-Pierre
    Posted by Vincent St-Pierre
    on Apr 04 2012 16:26 PM
    Intellectual540 points

    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?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vincent St-Pierre
    Posted by Vincent St-Pierre
    on Apr 09 2012 13:20 PM
    Intellectual540 points

    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

    StarterWare CCS v5.1 BIOS OMAP L-138 interrupt usb_dev_bulk OMAP L138 Starteware SYS/BIOS 6
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michael S
    Posted by Michael S
    on Apr 16 2012 08:42 AM
    Genius9640 points

    Hello team,

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

    Regards,

    Michael S.

    ACSC Digital Apps

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vincent St-Pierre
    Posted by Vincent St-Pierre
    on Apr 17 2012 08:19 AM
    Intellectual540 points

    Im still waiting for some help...

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use