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.

Need help getting started

Hello- I have the experimenters kit with a F28027PTA chip on it.

I'm using Code Composer 3.3.81

I tried the first example in the tutorial - volume1 and get errors when I try to load the program from File>load

I am able to add files to the project.

The error I get is data verification failed at address 0x3FFFC0 Please verify target memory and memory map.

Thanks in advance for help!

 

  • Please take a look at the following thread, which provides information on how to get your application code into the Flash on the C2000 devices using CCS v3.3.

  • Thank you Brandon.

    I made the suggested changes to my volume.cmd (see below in SECTIONS) and found that file>load worked, that is the programming bar came and moved as if it were working properly.

    The disassembly file is now empty, every row has something like this: ----------- ---- --------

    So I can't do Go>Main

    Thanks in advance for help!

    -stack 400

    -heap 400
    MEMORY
    {
       PAGE 0 : PROG(R)     : origin = 0x3E8000, length = 0x10000
       PAGE 0 : BOOT(R)     : origin = 0x3FF000, length = 0xFC0  
       PAGE 0 : RESET(R)    : origin = 0x3FFFC0, length = 0x2
       PAGE 0 : VECTORS(R)  : origin = 0x3FFFC2, length = 0x3E

       PAGE 1 : M0RAM(RW)   : origin = 0x000000, length = 0x400
       PAGE 1 : M1RAM(RW)   : origin = 0x000400, length = 0x400
       PAGE 1 : L0L1RAM(RW) : origin = 0x008000, length = 0x2000
       PAGE 1 : H0RAM(RW)   : origin = 0x3F8000, length = 0x2000
    }
     
    SECTIONS
    {
       /* 22-bit program sections */
       .reset   : > RESET,   PAGE = 0, type = DSECT 
       .vectors : > VECTORS, PAGE = 0, type = DSECT 
       .pinit   : > PROG,    PAGE = 0
       .cinit   : > PROG,    PAGE = 0
       .text    : > PROG,    PAGE = 0

       /* 16-Bit data sections */
       .const   : > L0L1RAM, PAGE = 1
       .bss     : > L0L1RAM, PAGE = 1
       .stack   : > M1RAM, PAGE = 1
       .sysmem  : > M0RAM, PAGE = 1
       .cio     : > M0RAM, PAGE = 1

       /* 32-bit data sections */
       .ebss    : > H0RAM, PAGE = 1
       .econst  : > H0RAM, PAGE = 1
       .esysmem : > H0RAM, PAGE = 1
    }

  • Does it matter if I program into Flash or RAM? Which is suggested for this chip?

  • I should have been more specific.  In my head I was thinking about the need to program the flash via the flash programmer plug-in for CCS v3.3.

  • Sophi said:

    Does it matter if I program into Flash or RAM? Which is suggested for this chip?

    Eventually something will need to be in the Flash to execute from reset.  However, for development purposes, using RAM for your program is clearly easier to deal with but it is a limited (in size), precious resource.

  • Thanks.

    When programming to RAM from the File>load, I get the error mentioned in my first post.

    Any ideas?

    When programming to Flash, it doesn't work either. The disassembly file doesn't have any code in it anymore after running the Flash window.

    Any ideas here?

     

  • Sophi,

    Unfortunately it looks like the examples that come with CCS have not been updated with the memory map for newer devices.

    The address 0x3FFFC0 is in the boot ROM of the device and therefore cannot be loaded. You can add the section type type = DSECT so it won't be loaded/used.

    i.e.       .reset   : > RESET,   PAGE = 0, type = DSECT

    This is described in the assembler users guide (SPRU513)

    The same issue exists with your allocation for the VECTOR section.

    You might want to consider taking a look at the examples in the 2802x header files.  These will be setup to run on the 2802x device:

    http://focus.ti.com/docs/toolsw/folders/print/sprc832.html

    -Lori

  • Thank you Lori!

    I've already updated the cmd file with your suggestions (see my copied cmd file above)

    Using the on-chip Flash Programmer, the error I get is "No sections were found that map to flash"

    And then this message:

    Warning: This program contains initialized RAM data.
    It may run successfully under Code Composer Studio
    but not as a standalone system because of this. If
    your Flash program requires initialized data in RAM,
    you will need to write Flash code to initialize RAM memory.

    Can you direct me to where documentation is on how to do this? I am total N00B with this chip.

    When I try to program to RAM, I get the following message: I do not have any idea how to fix this

    Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target.  Check your linker configuration and/or memory map.

    Thanks in advance for help!

     

  • After looking at the suggested examples I was able to change my cmd file so that the flash programmer is able to program the chip.

    Thanks Lori and Brandon!