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.

Porting a project from CCS Version: 4.1.0.02000 to CCS Version: 4.1.2.00027

To All,

I and my collegue are learning to create new project is CCS.  My collegeue created simple project to run from internal RAM CCS  Version: 4.1.0.02000. He could build the project and debug it from internal ram. He provided me this project. I imported the entire his workspace and project to my PC.  My  CCS version is newer than his. His is CCS  Version: 4.1.0.02000. Mine is  CCS Version: 4.1.2.00027. When opening the workspace I got a following warning.

"The workspace 'C;\code\EnhancedAlarm' was created with a previous version of CCS. Workspace contains temporary data that changes from version to version. To load the project CCS needs to clean out thisdata. Click ok to load this work space....."

I click ok.. The workspace open. I build the project without any errro. Started debugging the project. The project did not got loaded in internal RAM.

See various information below.

Q.1 Can you tell me why I can not load the project into internal RAM and debug it? The memory display at 0x20000000 shows symbols but no code. All data is ???

Q.2 Do you know what settings I lost when imported the project to nwer version of CCS that prevents me from loading the project into internal RAM and debug?

Q.3 How can I attach file to this posting? Can I attache zip file, GEL file, cmd file, gel file etc to the posting?  I tried to do that but, my explorer died. It will be very  helpful if you can show a way to attach zip file or files etc. for posting a problem to the forum.

Many thanks for your assistance in this.

Please see below part of GEL file, CMD file and MAP file.

Ashok Modi/

The GEL file indiocates that internal ram is enabled. See  below.

GEL_MapAddStr(0x00000000, 0, 0x00040000, "R", 0); /* Flash */

GEL_MapAddStr(0x00040000, 0, 0x00FFFFFF, "NONE", 0); /* Reserved */

GEL_MapAddStr(0x01000000, 0, 0x01FFFFFF, "R|W", 0); /* Reserved */

GEL_MapAddStr(0x02000000, 0, 0x1FFFFFFF, "NONE", 0); /* Reserved */

GEL_MapAddStr(0x20000000, 0, 0x00018000, "R|W", 0); /* SRAM */

GEL_MapAddStr(0x20018000, 0, 0x1FFE8000, "NONE", 0); /* Reserved */

THe project CMD file has follwoing setting.

--retain=g_pfnVectors

 

/* The following command line options are set as part of the CCS project. */

/* If you are building using the command line, or for some reason want to */

/* define them here, you can uncomment and modify these lines as needed. */

/* If you are using CCS for building, it is probably better to make any such */

/* modifications in your CCS project and leave this file alone. */

/* */

/* --heap_size=0 */

/* --stack_size=256 */

/* --library=rtsv7M3_T_le_eabi.lib */

 

/* The starting address of the application. Normally the interrupt vectors */

/* must be located at the beginning of the application. */

 

#define APP_BASE 0x20000000

 

/* System memory map */

 

MEMORY

{

/* Application stored in and executes from internal flash */

FLASH (RX) : origin = 0x00000000, length = 0x00040000

 

/* Application uses internal RAM for data */

SRAM (RWX) : origin = 0x20000000, length = 0x00018000

 

/* Application uses internal RAM for data */

XSRAM (RWX) : origin = 0x60000000, length = 0x00800000

 

}

 

/* Section allocation in memory */

 

SECTIONS

{

.intvecs: > SRAM

.text : > SRAM

.const : > SRAM

.cinit : > SRAM

.pinit : > SRAM

 

.vtable : > SRAM

.data : > SRAM

.bss : > SRAM

.sysmem : > SRAM

.stack : > SRAM

}

 

__STACK_TOP = __stack + 4096;

 

The Map file indicates that all sections are in internal RAM at location. 0x20000000

See below.

SEGMENT ALLOCATION MAP

 

run origin load origin length init length attrs members

---------- ----------- ---------- ----------- ----- -------

20000000 20000000 000008a2 000008a2 r-x

20000000 20000000 000008a2 000008a2 r-x .text

200008a2 200008a2 00000002 00000000 rw-

200008a2 200008a2 00000002 00000000 rw- .bss

200008a4 200008a4 0000011c 0000011c r--

200008a4 200008a4 0000011c 0000011c r-- .intvecs

200009c0 200009c0 00000100 00000000 rw-

200009c0 200009c0 00000100 00000000 rw- .stack

20000ac0 20000ac0 00000084 00000084 r--

20000ac0 20000ac0 00000084 00000084 r-- .const

20000b44 20000b44 00000014 00000014 rw-

20000b44 20000b44 00000014 00000014 rw- .data

20000b58 20000b58 00000038 00000038 r--

20000b58 20000b58 00000038 00000038 r-- .cinit

 

 

SECTION ALLOCATION MAP

 

output attributes/

section page origin length input sections

-------- ---- ---------- ---------- ----------------

.text 0 20000000 000008a2

20000000 00000120 setup_pins.obj (.text:EPIPinConfigSet)

20000120 000000dc setup_pins.obj (.text:EEPROMReadPolled)

 

 

 

 

  • Ashok,

    What target are you using? Is it the same exact target that your collegue is using? 

    Ashok Modi said:
    Q.2 Do you know what settings I lost when imported the project to nwer version of CCS that prevents me from loading the project into internal RAM and debug?

    The change from 4.1.0 to 4.1.2 is fairly trivial, I would not expect this to be impacted.

    Ashok Modi said:
    Q.3 How can I attach file to this posting? Can I attache zip file, GEL file, cmd file, gel file etc to the posting?  I tried to do that but, my explorer died. It will be very  helpful if you can show a way to attach zip file or files etc. for posting a problem to the forum.

    See the bottom of the forum readme:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/3131.aspx

    Recommended method is to zip up all the files into one zip and attach it.

  • Ki-Soo Lee,

    What target are you using? Is it the same exact target that your collegue is using? 

    I am using the same development kit LM3S9B96 that is also used by my collegue. Did not had a problem to debug when the project wasflash base.

    Thanks for your help.

  • Is 0x20000000 writable memory for your target (is the some jumper that can change the memory map)? How are you loading your code? Are you doing "Debug Active Project" or are you starting the debugger first and doing a "Load Program" explicitly? You may also want to check to make sure you are not just loading symbols.

  • Al Modi

    yes 0x20000000 should be writable. I will attach the map file the gel file and cmd file with this response. I don't beleive we have any jumper differnces. I am doing "Debug Active Project" which for some reason does not load the file. How do I make sure that I am not loading the symbol only? I see symbol loaded, but no code. Could I have lost my settings to load both symbol and code when I imported the project to a newer version. I hae other projects that are using the internal RAM for both data, stack etc. The code for this project is in the flash and they work fine. Ibelieve some thing is causing to load only symbol only, since I see only symbol loading and not the code. What options need to be set to load both code and symbol? Thanks.

    Temp.zip
  • Ashok Modi said:
    I am doing "Debug Active Project" which for some reason does not load the file. How do I make sure that I am not loading the symbol only?

    You can check the loading options for your project debug properties. See slide 35 of: http://processors.wiki.ti.com/images/0/09/CCSv4_Tips_%26_Tricks.pdf.

    You can also explicitly load the program once you are in a debug session (Target->Load Program) and see if that works.

     

  • Al Modi

    Ki-soo,

    I have checked the slide 35 and setting is coorect to load the file just not the symbol. For me the Target-->Load Program is not high lighted, so I can make that choice to re-load the program. I am sending you a zip file that contains a word document containg Debug setting fro my project as well as a zip file containg gel file, MAP file CMD file etc. I tried my Collegue developemnt board, to tule out any jumper differneces. It behave the same.  I am still not able to load the program into internal RAM. Any other suggestion you may have would be greately appereciated.

     

    Temp.zip
  • Ashok Modi said:
    I have checked the slide 35 and setting is coorect to load the file just not the symbol. For me the Target-->Load Program is not high lighted, so I can make that choice to re-load the program.

    Can you show a screenshot of CCS when your are trying to load the program? Show the entire CCS and also how the option is grayed out.

  • Al Modi

    The file "Various snaps for problem running project from internal RAM.doc" has a various snape shot. One of the snape shot shows the Grayed out Load Program button.  The snape is under the label "No option to load program is highlighted See Below" I did number of other test. I put my entire project to the share drive. My collegue was able to open the project and run it with his version of code composer (CCS 4.1.0.02000). So teh code was built correctly with my tool set, it just does not allow to load using Debug active project.  We also tried to load the "Beta.out" file from the share drive using Load Program option. That loaded ok and worked. I am really frustrated. I have uninstalled the code composer version 4.1.2.00027. I am re-installing the software that come on a CD. This should make his version same as mine and I will try to see whether I can do the same thing what he is able to do with his board and with his tool set. I tried my board with his tool set every thing work they way his board woks. Thanks.

  • I see the doc. Sorry about that. In your screenshots, the target is running when you are trying to load your program. Can you try halting the target first?