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.

TMS320F28069M: How to run USB examples from "FLASH" instead of "RAM"?

Part Number: TMS320F28069M
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

Hi, 

I am working on TMS320F28069M launchpad, So now I am trying to interface USB to it.

But, Example project configured using "RAM" command file.

And I want to run using "FLASH" command file.

How to do that please guide me.

Thank you.

  • Hi Nishant,

    Please see the application report below about running an application from internal Flash on the F2806x.

    https://www.ti.com/lit/spra958

    Please note that you can find reference linker command files for standalone flash config in the C2000Ware directory below, such as the "F28069M.cmd" file.

    C:\ti\c2000\C2000Ware_3_03_00_00\device_support\f2806x\common\cmd

    Best,

    Kevin

  • Hi Sir,

    I have uploaded "USB_HOST_MSC" project successfully to TMS320F28069U Control card.

    But, whenever I am trying to upload same example to TMS320F28069M LAUNCHPAD, it gives error i.e,(Break at address "0x3ff4fa" with no debug information available, or outside of program code)[EXAMPLE PROJECT BOOTS FROM F280X_RAM.CMD FILE].

    So that's mean USB doesn't support to TMS320F28069M MCU?

    BOOT GPIO Configuration Hardware Differences:

    1-GET MODE(on Control Card).

    2-EMULATION BOOT(on TMS320F28069M LAUNCHXL).

    So,

    Such different BOOT Configuration may lead to error (Break at address "0x3ff4fa" with no debug information available, or outside of program code)?

    while loading example (controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5\usb_host_msc) ?

    Thank you

  • Hi Nishant,

    Nishant Gajipara said:
    But, whenever I am trying to upload same example to TMS320F28069M LAUNCHPAD, it gives error i.e,(Break at address "0x3ff4fa" with no debug information available, or outside of program code)

    You're receiving this error because the 'usb_host_msc' SW example is configured for external crystal oscillator and the F2806x LaunchPad does not have an external crystal (Q1) populated by default. You should re-configure the SysCtrlInit() function for internal oscillator when using the LaunchPad.

    See an example configuration below from a different example:

    //
    // IntOsc1Sel - This function switches to Internal Oscillator 1 and turns off 
    // all other clock sources to minimize power consumption
    //
    void
    IntOsc1Sel(void)
    {
        EALLOW;
        SysCtrlRegs.CLKCTL.bit.INTOSC1OFF = 0;
        SysCtrlRegs.CLKCTL.bit.OSCCLKSRCSEL=0;  // Clk Src = INTOSC1
        SysCtrlRegs.CLKCTL.bit.XCLKINOFF=1;     // Turn off XCLKIN
        SysCtrlRegs.CLKCTL.bit.XTALOSCOFF=1;    // Turn off XTALOSC
        SysCtrlRegs.CLKCTL.bit.INTOSC2OFF=1;    // Turn off INTOSC2
        EDIS;
    }

    Best,

    Kevin

  • Hi Sir,

    Thanks for the solution.

    I will implement it and let you know.

    While running through Experimenters Kit, I have shorted J9 connector for serial communication.

    But, terminal window doesn't show any keyboard entry.

    But, SCIRXBUFF reflects data from keyboard whenever any key have been stroked.

    So,

    What could be the problem ?

    USB Pendrive is detected and State of device is ready.

    But, after that  status of USB device is  "FR_NOT_READY".

    And one more thing,

    Terminal takes only. "ENTER "  key strokes of keyboard, after which "Bad Command" is shown in terminal window.

    Thank you

  • Hi Nishant,

    What terminal emulator program are you currently using? And are you able to see the start-up message in your terminal OK? Please double check that your serial terminal config matches the below:

    //! The first UART, which is connected to the FTDI virtual serial port on the
    //! evaluation board, is configured for 115,200 bits per second, and 8-N-1
    //! mode.  When the program is started a message will be printed to the
    //! terminal.  Type ``help'' for command help.

    Based on what you've described it might be good to try a couple different terminal emulator programs. I've heard of users experiencing better results with certain emulator programs. I'd suggest trying both PuTTY and TeraTerm, which are free / open-source terminal emulators.

    Best,

    Kevin