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.

28335,CCS3.3,点击Load program报错

Other Parts Discussed in Thread: CCSTUDIO

Trouble Writing Memory Block at 0x9000 on Page 0 of Length 0x15f8: Cannot access memory address 0xA000

你好,上面是报错情况,我对28335_RAM_lnk.cmd文件做了如下修改:

RAML1 : origin = 0x009000, length = 0x002000                 /*length = 0x001000*/
/* RAML2 : origin = 0x00A000, length = 0x001000*/

如果对28335_RAM_lnk.cmd不做修改的话,会出现下面的情况:

[Linking...] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -@"Debug.lkf"
<Linking>
>> error: can't allocate .text, size 000015f8 (page 0) in RAML1 (avail:
00001000)
>> error: errors in input - ./Debug/PMSM_SVPWM.out not built

该如何修改程序才能解决这个问题呢?

谢谢!

  • 你这样修改没有问题,编译器没有报错,是在下载程序时报的错。你再试试将text段放在其它两个合并在一起的RAM中,比如L4L5中。

  • Hank Zhao

    你好,谢谢你的回复!

    我按照同样的方法将.text修改到合并的RAML2,RAML3中,但是在下载程序时仍然报错: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 0xa000 on Page 0 of Length 0x800: Cannot access memory address 0xA000

  • 我的意思是让你避开L2,将数据放在其他RAM区域看能否加载成功。

  • 你好,Hank Zhao

    我也试过RAML4和RAML5,一样会报错:Trouble Setting Breakpoint with the Action "Terminate Program Execution" at 0xd113: Cannot access memory address 0xD113

  • 检查一下芯片的供电电压是否正常,在setup时板子的配置有没有问题?下载一些小一点的例程会出现这种情况吗?

x 出现错误。请重试或与管理员联系。