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.

usbhostmsc-uart program problem

Other Parts Discussed in Thread: TMS320C6748, OMAPL138

Hi!

I am programming the DSP C6748, the main idea of this program is to receive data through the UART port and to save this data in a SSD connected to the USB.

The UART program is based on the uartSample of the pspdriver 01.30.00.06 and the SSD program is based on the usbhostmsc example of the rtfs 1.10.02.32. Both programs work fine individually. Now I want both programs in one, so I am writing the usbhostmsc in the uartSample. When I compile the program there are no errors, but when I run the program there is the next error:

polling for storage media
USB Device Not available

It seems that the USB controler initializes correctly but I do not know why it does not recognize the SSD plug in the USB.

¿what kind of configuration should I consider or check to fix this problem?

Regards

Accel

  • Hi Accel,

    Thanks for writing to us.

    I have few question and suggestions for your query.

    1. How are you ensuring the USB Controller initialization happened properly?
    2. Please try merging uartSample to usbhostmsc.
    3. Please Init the uart after the usb init.

  • Hi Rajasekaran,

    Thanks for the answer.

    1. I think that the USB controller initialization is corrected because I do not have any problem during the stack initialization (as you can see below, please let me know if this initialization is properly or not):

    USB platform initialization
    USB Application Task 0 Starting
    Initializing usb host stack
    ohci_local0: OHCI version 1.0
    ohci_local0: USB revision 1.0
    ohci_local0: new device port=0 depth=0 speed=full
    uhub0 Jungo Generic Root Hub, class 9/0, rev 0.11/af.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    musbhshc0: USB revision 2.0
    musbhshc0: new device port=0 depth=0 speed=high
    uhub1 Jungo Generic Root Hub, class 9/0, rev 0.20/af.00, addr 1
    uhub1: 1 port with 1 removable, self powered
    polling for storage media
    polling for storage media
    polling for storage media
    polling for storage media
    polling for storage media
    polling for storage media
    USB Device Not available
    Run UART sample application
    Starting UART sample application

    2. I tried to merge uartSample to usbhostmsc but it did not work either. In fact, the UART did not initialized correctly. However, I will try again.

    3. In the program the usb init is before the uart init. In this topic, which function initialize the USB? rtfsPosixInit(), configureUSB or dsp_bios_entry(). The three function are before the uartSample init.

    Regards

    Accel

  • Hi Accel,

    From above log messages, I could suggest to check any pin configurations are happening in both examples. Please take care during integration.

    Thanks.

  • Hi Rajasekaran,

    I will check the pin configuration. However, I think that the error may be related to the build properties, specifically the compiler and linker of the libraries and directories.

    How could I check if I the build properties are correct?

    Regards

    Accel

  • Hi Accel,

    Please refer the below link for build properties and configuration.

    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS

  • Hi Accel,

    Could you able to solve the issue?

    If no please share the integrated project files, let me try from my end.

    Thanks.

  • Hi Rajasekaran,

    I could not solve the issue until now.

    Sure I can share my files with you.

    This is the integrated project (usbhostmsc in uartSample):

    1586.uart.rar

    When you unzip the file, there are two directories inside "uart": edma and interrupt. The interrupt project is which I used (this is the integrated project). Some things about it:

    - I integrated the libraries and variables of usbhostmsc project into uart.

    - I integrated the "waitForDriveAvail" function into uart project (this function is from usbhostmsc).

    - In the main function I wrote "rtfsPosixInit()" and "configureUSB()" both from usbhost project (In the "usbhostmsc.c" both functions are in the main).

    - I created the function "asd()", here I have copied the "dsp_bios_entry(NULL)" and used the "waitForDriveAvail()".

    - In this project I have copied every path and library in the C/C++Build properties (compiler and linker) from the usbhostmsc.

    Besides, I attached the usbhostmsc project (bios 5 - evm6748):

    2783.usbhostmsc.rar

    Please if you need something else, let me know.

    Regards

    Accel

  • Hi Accel,

    Thanks. In which board are you testing, is it a custom board or EVM?

  • Hi Rajasekaran,

    I am testing in the EVM board. The TMDSEVML138.

    http://www.ti.com/tool/tmdsevml138

    Regards

    Accel

  • Hi Rajasekaran,

    Some news about this issue. I noticed that the MEM configuration of the usbhostmsc and the integrated program (uart-usbhostmsc) were different. I changed the configuration in the integrated program but it does not work either.

    Do you have any news about this issue? 

    I am reading some documents trying to fix this problem.

    Regards

    Accel

  • Accel,

    I understand that, you are using BIOS5 and CCS4 version of projects(uart, usbhostmsc) to integrate as a single project.
    Yes, TI provided both the sample projects are working on LogicPD board(EVM6748).
    If possible share your integrated project.

  • Hi Pubesh,

    Yes, I am using BIOS5 and CCS4. Five messages above I wrote some specifications about the projects. These are the projects:

    3857.usbhostmsc.rar

    6318.uart.rar

    In both projects, I have many functions in the main file (.c) specially in the usbhostmsc. Do you think that this could be a problem? 

    Regards

    Accel

  • Hi,

    I have a question about this error message:

    #error xdc_target_types__ must be defined to name a target-specific header containing definitions of xdc_Int8, xdc_Int16............

    I read about it, but I do not know where I have to change this configuration in the CCS4. Could you tell me where I have to fix this?

    Regards

    Accel

  • Hi,

    I still do not fix the problem to merge the usbhost into uart program. Have you had the chance to see the programs?

    I have a question, is there any library of the usb program which affects to the uart program?

    Regards

    Accel

  • Accel Abarca,

    When you tested the TI examples (BIOS5 based -UART/USBHOSTMSC) separately, both were working on EVM board.
    Did you use different gel files for both the test examples?
    I think so, specific gel file used for USBHOSTMSC test.
    Kindly refer the release notes of RTFS, as mentioned the below path
    rtfs_xx_xx_xx_xx\Rtfs_xx_xx_xx_xx_release_notes.html
    Verify the gel and use for integrated examples(UART, USBHOSTMSC) on EVM board.

  • Hi Pubesh,

    Thank you for the answer.

    I checked gel files on both programs (separately) and they use the same gel file: C6748.gel  (C:\Documents and Settings\Accel\Mis documentos\workspace\TMS320C6748_GEL_BSL_Files_v2.3\gel)

    I read the release notes that you recommended me and it says that the usbhost uses the omapL138_DSP.gel. I am not sure why my program uses another gel file instead that the release notes recommend. However, the program works fine with C6748.gel file.

    I have checked a lot of different configurations, gel files, pin configuration, merge usbhostmsc in uartSample and vice versa, but until know I could not fix the error. I am a little lost, what else should I check? Have you check the files that I sent you? 

    Regards

    Accel