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.

f28377d flash programming

Hi community,

I have a question about the flash programming in f28377d.  I have generated a project and successfully run in RAM. Then I tried to run it in FLASH.

Normally  I should  see the "build configuration--> set active --> FLASH/RAM" and generate the project depending on the FLASH choice then download it to the board. (I tried with the example projects and it worked)

But in my project  when I right click to project I see  "build configuration --> set active --> DEBUG/RELEASE"

Why can't I see the FLASH or RAM choices? What should I do to run this project in FLASH.

 

Thank you

Fatih

 

  • FLASH and RAM are configurations, which were created by the developer of the example projects. For a new project two configurations are created by default (Debug / Release).

    To change your F28377D-project to run from FLASH, there is another option. If you inspect the code in file "F2837x_SysCtrl.c" (function InitSysCtrl()), you will find a conditional Compiler - statement "#ifdef _FLASH". You can define "_FLASH" as a predefined symbol (properties => C2000 Compiler => Advanced Options => Predefined Symbols => Pre-Define NAME).  If _FLASH is defined, function "InitSysCtrl" will also call memcpy and InitFlash(). All what is left to do for you is to replace the linker command file  "2837x_RAM_lnk_cpu1.cmd" by "2837x_FLASH_lnk_cpu1.cmd".

     

  • Hi Frank,

    Thank you for your reply but I have another question now may be you could answer it too,

    When I want to program the FLASH of the board the steps I follow is below,

     

    1)right click to the project --> build configuration--> set active --> FLASH

    2)build the project

    3)load the .out file

    4)press play button

     

    Afterthat, when I power off and on the device the code is gone(not running anything). Because that I put the code in FLASH, the code should stay inside the board after power off and on operation. Am I making something wrong because it doesn't working and I don't get any error? (By the way I am working with last edition of CCS 6)

    Any help would be appreciated.

    Thank you

  • Make sure that:

    (a) controlcard SW1 is in Position 11 (Mode 3 - "Get Mode") .

    (b) File "Codestartbranch.asm" is part of the project.

    (c) the correct linker command file is uesd for linking (2837x_FLASH_lnk_cpu1.cmd)

    After - reopwering the board the code is executed from FLASH.

    Regards

  • HI brother, I am new in 28377D. Before that I am very familier with 28335

    I have same f28377d flash programming. but after I download even if an example blinky. my code is stop. ( to sam EStop0 for no reason. But I download to Ram is ok. and PWM example same Freeze after download to flash
    Is there any thing I should care to download in flash mode. ????? ( like pin boot , or addition code ? (initflash() )