Hello All,
I have been practicing CCS by going through the tutorial provided from help menu
In the topic "Developing A Simple Program", a project \"volume1" is used for explanation. When I follow the steps ,the program builds properly and a .outfile is generated as expected.Let me also mention that in the CCS Setup I am running in F28027(Piccolo) Simulator mode.
Now the problem strikes when i triy to load the program.Loading fails and an error message is generated as follows:
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.Trouble Writing Memory Block at 0x3f8488 on Page 1 of Length 0x1a: Cannot access memory address 0x3F8488.
The above mentioned memory location ,when I checked out in Piccolo datasheet, is labelled as L0 SARAM.
Here is the linker cmd file for the project:
/****************************************************************************//* volume.cmd - Sample linker command file for F28xx devices *//* *//* Description: This file is a sample F28xx linker command file that can *//* be used for linking programs built with the TMS320C2000 *//* C Compiler. Use it as a guideline; you may want to change *//* the allocation scheme according to the size of your *//* program and the memory layout of your target system. *//****************************************************************************/-stack 400-heap 400MEMORY{ 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 .vectors : > VECTORS, PAGE = 0 .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}
Please help as to what changes need to be made.
Thanks in advance
Regards,
J D
ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". TI AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY TI. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM TI.
Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.