Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

TMS320F28075: TMS320F28075 USB serial device example

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Hello,

Using CCS 9.3, I imported a USB example for TMS320F28075 from C2000Ware Version 2.00.00.03. The project name is usb_ex1_dev_serial and the original location is "D:\ti\c2000\C2000Ware_2_00_00_03\driverlib\f2807x\examples\cpu1\usb"

I observed the following issues:

1) The default configuration for this project CPU1_RAM could not be loaded to device, it warns about writing to an illegal address (flash location probably) and the main program does not appear for debug.

2) I switched to CPU1_FLASH configuration and programmed the device, in this case program halts at USBGPIOEnable function when trying to configure GPIO120 that does not exist on any TMS320F28075 packages.

The project seems to be originally written for a BGA package of TMS320F28375x.

My question is where can I find documentation on connecting VBUS and ID pins of USB connection to TMS320F28075 in device mode?

With regards,

MHG

  • Hi MHG,

    Mir Hossein Ghoreishi said:
    1) The default configuration for this project CPU1_RAM could not be loaded to device, it warns about writing to an illegal address (flash location probably) and the main program does not appear for debug.

    Can you provide a screenshot of the error you receive? Can you verify your target configuration file used is correct and matches your device?

    Mir Hossein Ghoreishi said:
    2) I switched to CPU1_FLASH configuration and programmed the device, in this case program halts at USBGPIOEnable function when trying to configure GPIO120 that does not exist on any TMS320F28075 packages.

    You can delete the lines of code below. You're right, they are not present on this device and shouldn't be in the SW examples or documentation. I'll file for this to get fixed. These signals are only meant for Host mode.

        GPIO_setMasterCore(120, GPIO_CORE_CPU1);
        GPIO_setPinConfig(GPIO_120_USB0PFLT);
    
        GPIO_setMasterCore(121, GPIO_CORE_CPU1);
        GPIO_setPinConfig(GPIO_121_USB0EPEN);

    Mir Hossein Ghoreishi said:
    My question is where can I find documentation on connecting VBUS and ID pins of USB connection to TMS320F28075 in device mode?

    You can find more information for VBUS connection in the device TRM USB chapter. A regular GPIO is used for the ID signal.

    Best,

    Kevin

  • Hello Kevin,

    Kevin Allen18 said:

    Can you provide a screenshot of the error you receive? Can you verify your target configuration file used is correct and matches your device?

    Looking at the 2807x_RAM_lnk_CPU1_USB.cmd that included in CPU1_RAM configuration, the following entry is invalid for TMS320F28075:

    RAMGS6to11_combined : origin = 0x012000, length = 0x006000

    TMS320F28075 has RAMGS6 and RAMGS7 and the length should be 0x002000

    The map file shows that linker fitted 0x411d bytes in this space which is incorrect:

    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
    PAGE 0:
      BEGIN                 00000000   00000002  00000002  00000000  RWIX
      RAMM0                 00000122   000002de  0000015a  00000184  RWIX
      RAMLS0                00008000   00000800  00000000  00000800  RWIX
      RAMLS1                00008800   00000800  00000000  00000800  RWIX
      RAMLS2                00009000   00000800  00000000  00000800  RWIX
      RAMLS3                00009800   00000800  00000000  00000800  RWIX
      RAMLS4                0000a000   00000800  00000000  00000800  RWIX
      RAMD0                 0000b000   00000800  00000000  00000800  RWIX
      RESET                 003fffc0   00000002  00000000  00000002  RWIX
    
    PAGE 1:
      BOOT_RSVD             00000002   00000120  00000000  00000120  RWIX
      RAMM1                 00000400   00000400  00000400  00000000  RWIX
      RAMLS5                0000a800   00000800  00000000  00000800  RWIX
      RAMD1                 0000b800   00000800  00000000  00000800  RWIX
      RAMGS0                0000c000   00001000  00000000  00001000  RWIX
      RAMGS1                0000d000   00001000  00000000  00001000  RWIX
      RAMGS2                0000e000   00001000  00000000  00001000  RWIX
      RAMGS3                0000f000   00001000  00000000  00001000  RWIX
      RAMGS4                00010000   00001000  000007d6  0000082a  RWIX
      RAMGS5                00011000   00001000  000008c0  00000740  RWIX
      RAMGS6to11_combined   00012000   00006000  0000411d  00001ee3  RWIX
      RAMGS12               00018000   00001000  00000000  00001000  RWIX
      RAMGS13               00019000   00001000  00000000  00001000  RWIX
      CPU2TOCPU1RAM         0003f800   00000400  00000000  00000400  RWIX
      CPU1TOCPU2RAM         0003fc00   00000400  00000000  00000400  RWIX
      CANA_MSG_RAM          00049000   00000800  00000000  00000800  RWIX
      CANB_MSG_RAM          0004b000   00000800  00000000  00000800  RWIX
    
    

    Thank you for resolving issue #2.

    With regards,

    MHG