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.

CCS/TMS320F28377S: loading code into flash

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE,

Tool/software: Code Composer Studio

Team, my customer has a question:

I tried to program my code into flash drive using CCS software. I did load the code into flash drive by using the Run->Load the out file. It runs as I expected. But when I recycled the power of the board. It didn't run the code, seems the code not loaded in the flash. So is there something special setting for loading the code to flash?   Thank you!

Viktorija

  • Hi Viktorija,

    The project must be configured to load/run from flash. Note that many of the C2000Ware example projects have different build configurations for RAM or FLASH. You can choose the one for FLASH to see an example of a configuration for FLASH. The default configuration is set to RAM but you can change the build configuration:

    Thanks

    ki

  • Yes. I already tried to Load/Run using Flash, but my problem still stays. When recycle power, the codes seems not boot up from the flash. 

    Thanks!

    Lili

  • Hi Lili,
    Is this for an example project from TI? If so, which project?

    Thanks
    ki
  • Yes. It's a example cpu_timers_cpu01

    And i modify just this function in the codes

    __interrupt void cpu_timer0_isr(void)
    {
    CpuTimer0.InterruptCount++;
    if (CpuTimer0.InterruptCount % 2 == 0)
    GPIO_SetupPinMux(27, GPIO_MUX_CPU1, 0);
    else
    GPIO_SetupPinMux(27, GPIO_MUX_CPU1, 1);

    //
    // Acknowledge this interrupt to receive more interrupts from group 1
    //
    PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
    }

    And I found there has a post mentioned "After code is loaded, to run this standalone , set the default BOOT MODE pins (GPIO72/GPIO84) in "Get Mode" and then power-up the device". I just don't understand how do i set BOOT MODE pins (GPIO72/GPIO84) in "Get Mode", do I set in the initial of the code starting, or another place, seems in the post, it sets somewhere after the code loaded into the flash?

    Thank you!

    Lili
  • Are you using the F28377S LaunchPad? If so, please see section 5.3 of:
    www.ti.com/.../sprui25c.pdf

    Thanks
    ki
  • I am not using the F28377S LaunchPad, I use the TMS320F28377S own custom board. So is there anything we need to do on the board?

    Thanks
  • Do I need configure GPIO72/GPIO84 on hardware?

    Thanks

    Lili
  • I will move this thread to the C2000 forum. The device experts there can provide the best suggestions.

    Thanks
    ki
  • Same as: e2e.ti.com/.../2832553
    it has been resolved.