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.

AM5728: am5728 idk (USB Rtos program shows error when enabling USB3.0 in program )

Part Number: AM5728
Other Parts Discussed in Thread: TUSB9260, SYSBIOS,

Tool/software:

Hi,

iam trying to run usb rtos program so i can use tusb9260 to store data into sata,but when i enable 

USB3SS_EN  

in my code by defining 

#define USB3SS_EN

the code seems to show error while building 

making ../src/sysbios/sysbios.aa15fg ...
gmake[2]: Nothing to be done for 'all'.
Building target: "evm_USB_HOST_integration.out"
Invoking: GNU Linker
"/home/ram/ti/processor_sdk_rtos_am57xx_06_03_02_08/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc-7.3.1" -mtune=cortex-a15 -marm -Dam5728 -Dcore0 -DUSE_BIOS -DTIRTOS -DevmAM572x -DSOC_AM572x -Dgcc -Og -g -gdwarf-3 -gstrict-dwarf -Wall -mno-unaligned-access -mfloat-abi=hard -Wl,-Map,"evm_USB_HOST_integration.map" -nostartfiles -static -Wl,--gc-sections -L"/home/ram/processor_sdk_rtos_am57xx_09_02_00_00/bios_6_76_03_01/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 --specs=nano.specs -o"evm_USB_HOST_integration.out" "./dma_polled.o" "./fatfs_port_usbmsc.o" "./fs_shell_app_utils.o" "./host_msc_main.o" "./timer.o" "./usb_osal.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lrdimon -lgcc -lm -lc -Wl,--end-group
makefile:142: recipe for target 'evm_USB_HOST_integration.out' failed
./host_msc_main.o: In function `taskFxn':
/home/ram/workspace_v12/evm_USB_HOST_integration/Debug/../host_msc_main.c:383: undefined reference to `USB_getConfig'
collect2: error: ld returned 1 exit status
gmake[1]: *** [evm_USB_HOST_integration.out] Error 1
gmake: *** [all] Error 2
makefile:138: recipe for target 'all' failed

it says USB_getConfig has undefined reference,

has anyone enabled rtos for am5728  with USB3.0 host so it can support tusb9260

it will be of so much help

  • Ramachandran,

    Have you checked out the PDK examples in the SDK for guidance?

    What SDK version are you using?

    Look at he example projects: 

    josue@jz-ws:~/data/sdk_s/am57x/processor_sdk_rtos_am57xx_09_03_00_00/pdk_am57xx_1_0_21/packages/ti/drv/usb/example/bios/am57xx$ ll
    total 128
    drwxr-xr-x  2 josue josue 4096 Dec 11 08:57 ./
    drwxr-xr-x 10 josue josue 4096 Dec 11 08:57 ../
    -rw-r--r--  1 josue josue 6985 Dec 11 08:57 usb_arm_am571x_idk.cfg
    -rw-r--r--  1 josue josue 7159 Dec 11 08:57 usb_arm_am572x_evm.cfg
    -rw-r--r--  1 josue josue 6863 Dec 11 08:57 usb_arm_am572x_idk.cfg
    -rw-r--r--  1 josue josue 6862 Dec 11 08:57 usb_arm_am574x_idk.cfg
    -rw-r--r--  1 josue josue 1029 Dec 11 08:57 USB_DevBulk_evmAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1029 Dec 11 08:57 USB_DevBulk_idkAM571x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1029 Dec 11 08:57 USB_DevBulk_idkAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1029 Dec 11 08:57 USB_DevBulk_idkAM574x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1227 Dec 11 08:57 USB_DevMsc_evmAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1255 Dec 11 08:57 USB_DevMsc_evmAM572x_SMP_armExampleProject.txt
    -rw-r--r--  1 josue josue 1227 Dec 11 08:57 USB_DevMsc_idkAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1227 Dec 11 08:57 USB_DevMsc_idkAM574x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1286 Dec 11 08:57 USB_DevMsc_mmcsd_evmAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1269 Dec 11 08:57 USB_DevMsc_mmcsd_idkAM571x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1269 Dec 11 08:57 USB_DevMsc_mmcsd_idkAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1269 Dec 11 08:57 USB_DevMsc_mmcsd_idkAM574x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1156 Dec 11 08:57 USB_HostMsc_idkAM571x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1156 Dec 11 08:57 USB_HostMsc_idkAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1155 Dec 11 08:57 USB_HostMsc_idkAM574x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1252 Dec 11 08:57 USB_HostMscReg_idkAM571x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1252 Dec 11 08:57 USB_HostMscReg_idkAM572x_armExampleProject.txt
    -rw-r--r--  1 josue josue 1252 Dec 11 08:57 USB_HostMscReg_idkAM574x_armExampleProject.txt
    -rw-r--r--  1 josue josue  585 Dec 11 08:57 usb_mmcsd_arm_am571x_idk.cfg
    -rw-r--r--  1 josue josue  585 Dec 11 08:57 usb_mmcsd_arm_am572x_evm.cfg
    -rw-r--r--  1 josue josue  585 Dec 11 08:57 usb_mmcsd_arm_am572x_idk.cfg
    -rw-r--r--  1 josue josue  585 Dec 11 08:57 usb_mmcsd_arm_am574x_idk.cfg
    josue@jz-ws:~/data/sdk_s/am57x/processor_sdk_rtos_am57xx_09_03_00_00/pdk_am57xx_1_0_21/packages/ti/drv/usb/example/bios/am57xx$ cat USB_HostMsc_idkAM572x_armExampleProject.txt
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/usb/example/shell/fs_shell_app_utils.c"
    
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/usb/example/usb_host/msc/fatfs_port_usbmsc.c"
    
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/usb/example/bios/host_msc_main.c"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/usb/example/common/timer.c"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/usb/example/common/usb_osal.c"
    
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/usb/example/bios/am57xx/usb_arm_am572x_idk.cfg"
    
    -ccs.setCompilerOptions "-DTIRTOS -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -DidkAM572x -DSOC_AM572x -Dgcc -g -gstrict-dwarf -Wall -mno-unaligned-access -I${PDK_INSTALL_PATH}/ti/drv/usb -I${PDK_INSTALL_PATH} -I${PDK_INSTALL_PATH}/ti/drv/usb/example/usb_host/msc -I${PDK_INSTALL_PATH}/ti/drv/usb/src/usb_func/include -I${PDK_INSTALL_PATH}/ti/drv/usb/example/common -I${PDK_INSTALL_PATH}/ti/drv/usb/src/include  -I${PDK_INSTALL_PATH}/ti/drv/usb/example/shell "  -rtsc.enableRtsc
    
    -ccs.setLinkerOptions " -lrdimon -lgcc -lm  -nostartfiles -static -Wl,--gc-sections "
    -rtsc.setConfiguroOptions "-b ${PDK_INSTALL_PATH}/ti/build/am572x/config_am572x_a15.bld -DBOARD=idkAM572x"

    -Josue

  • Thanks for the reply josue

    iam using

    sdk version processor_sdk_rtos_am57xx_09_02_00_00

    and

    pdk version pdk_am57xx_1_0_21

    i believe the usb program given by the pdk is only usb 2.0

    to make it as usb 3.0 ,  USB3SS_EN  has to defined in the program in the main or  by adding in the  program compiler options

    which will make the  USB3SS_EN to be added in the program

    can u check in your program that USB3SS_EN is enabled in pdk example,if not try enabling it and then build it 

    beacuse for me usb2.0 default program given by pdk is not showing error ,but when i add USB3SS_EN in the program by defining to make the program as usb 3.0 is showing error

  • Ramachandran,

    It should definitely be supported since the USB LLD release notes have this note: ./packages/ti/drv/usb/docs/ReleaseNotes_USB_LLD.pdf

    "Release 1.0.0.4
    o Support USB3.0 host mode on AM57xx IDK"

    If you analyze the file /processor_sdk_rtos_am57xx_09_03_00_00/pdk_am57xx_1_0_21/packages/ti/drv/usb/example/bios/host_msc_reg_main.c

    You will see the Macro XHCI_PORT_SPEED_SS, including for the IDK boards.

    So this should be supported.

    I ran out of time to finish reproduction on my side. Did you try the example USB_HostMscReg_idkAM572x_armExampleProject?

    -Josue