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)