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.

on-chip flash programmer not working ccs v5.2.1

Other Parts Discussed in Thread: CONTROLSUITE

I just started working on C2000 LaunchPad, I write a simple code and build it, I run debugger and in debugger perspective I can run the application but when I go to tool->on-chip flash what I see is like the screen shot . the clock setting is disable and there is no ProgramLoad button. I cant load my code in flash can someone help me plz

  • Hi Arash,

    Your final motive is to load the code to flash, right? Currently the code might be running through RAM.

    For this purpose you can refer the flash sample code available here:

    C:\ti\controlSUITE\device_support\f2802x\v129\DSP2802x_examples_ccsv4\flash_f28027

    Regards,

    Gautam

  • Yes I'd like to run my code on flash. But the linker command file that I am using is F28027_ram_lnk.cmd. Is that because of this my code run on Ram instead of Flash? If so how to switch to Flash?

  • Arash Tahghighi said:
    Yes I'd like to run my code on flash. But the linker command file that I am using is F28027_ram_lnk.cmd. Is that because of this my code run on Ram instead of Flash? If so how to switch to Flash?

    Yes, exactly! Refer this doc for step by step instruction:

    6431.Running from Internal Flash.pdf

    Simultaneously, refer the above example in controlSuite.

    Regards,

    Gautam

  • Thanks Gautam for your reply,

    I changed Linker Command file in CCS General  to "F2802x_Headers_nonBIOS.cmd" but when I try to build the project some error message appears as follows:

    #10099-D Program will not fit into available memory, placement with

    Where does this error come from? 

  • Arash Tahghighi said:

    I changed Linker Command file in CCS General  to "F2802x_Headers_nonBIOS.cmd" but when I try to build the project some error message appears as follows:

    #10099-D Program will not fit into available memory, placement with

    Where does this error come from? 

    Arash, before concluding anything I would like you to try out one exercise:

    Try porting your code to the sample project "flash_f28027" present in controlsuite ie just copy paste your code and add/link the supporting files required for your project.

    C:\ti\controlSUITE\device_support\f2802x\v129\DSP2802x_examples_ccsv4\flash_f28027

    Regards,

    Gautam

  • Gautam,

    I did that and it worked, but how to have my own project worked!? 

    regard

  • Arash, the above document "Running from Internal Flash" is all you've to refer. If you're still unable to follow, here are the steps to convert a RAM code to flash:

    So, you need to add these two statements

    1. MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);  

    2. InitFlash(); after InitPieVectTable();
     

    Add DSP2802x_MemCopy.c file to the project.

    Define extern variables above main() function.


                                        extern Uint16 RamfuncsLoadStart;
                                        extern Uint16 RamfuncsLoadEnd;
                                        extern Uint16 RamfuncsRunStart;

        Replace 28027_RAM_lnk.cmd with F28027.cmd
        Compile the code.
        Configure your GPIO's to boot to flash.

    Regards,

    Gautam