原创 学习CCS遇到的问题--高手请进

2010-5-8 17:58 6068 16 16 分类: 处理器与DSP

本来是想Google一下为什么的,但是却只google了一个网页,遇到的问题和我一样,请大家看一看,能否说明为什么?????说错没关系,,,,,

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 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
   .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

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

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
16
关闭 站长推荐上一条 /3 下一条