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.

RTOS/MSP432E401Y: USBHCDInit() hangs

Part Number: MSP432E401Y


Tool/software: TI-RTOS

Hello:

The attached MSP432 tirtos_builds_MSP_EXP432E401Y_release_gcc.tar.gzUSBHost_Test_MSP_EXP432E401Y_tirtos_gcc.tar.gzcode compiles (i.e. project links to static library, defines proper symbols, etc).but the USBHCDInit() regardless of whether or not it is located within the Task or within the main() function. If I comment out the call ( and the following USBHCDMAin() ) call, then my status LED will start blinking. Any ideas what is missing from this code?

Thank you,

Michael Cress

  • Michael,
    Is this based upon example or something that you have developed?

    Regards,
    Chris
  • Hello Michael,
    I notice that your application mixes both the no-rtos and rtos examples provided in the SDK. If RTOS is not required, then the no-rtos version is easier to use and understand. If you require RTOS then import one of the USB Host RTOS examples and remove or add your code following the format that is in the example. The RTOS examples have clocks already implemented in their board files as well as GPIO pin configurations. You will then not need to include the pinout.c, .h file or call the clock function in your application. This is just one of the differences between no-rtos and rtos examples.

    Regards,
    Arthi
  • The above was based on the NO_RTOS examples in the IDE's tirex. I initally didn't notice any TIRTOS examples but after seeing Arthi's response below, I took another look. It looks like the issue is that the Board.h and Board_usb.h (and similarly the MSP432...h and M?SP432..._usb.h) files are not the same. After copying over those files, I am able to move beyond the USB init() but now my Task.sleep() no longer works.
  • I solved the Task_sleep() issue. I had too small of a stack size allocated for one of my tasks. I think both tasks are working now although I still have to test that the USB callbacks are happening. Thank you for your help.

**Attention** This is a public forum