TI中文支持网
TI专业的中文技术问题搜集分享网站

CCS下载到28335开发板,程序直接运行,run按钮灰色,expression空白,请教大家是什么原因?

下载程序到RAM测试,下进去后,界面如下,程序直接运行,且变量值空白。求教这是哪里编错了?

谢谢各位老师。

Green Deng:你好,你的仿真器配置,目标板配置都正确吗?建议可以先用官方例程运行一下看是否有相同问题。

下载程序到RAM测试,下进去后,界面如下,程序直接运行,且变量值空白。求教这是哪里编错了?

谢谢各位老师。

user5615553:

回复 Green Deng:

你好,我用例程试的话是正常的。

只是将例程cmd文件中程序存放空间
由原来的 /*RAML3: origin = 0x00B000, length = 0x001000 */
修改为RAML3: origin = 0x00B000, length = 0x004000

长度改变后,这也没有影响到PAGE0的其他段啊。
再试例程就会出现上面的情况。而且偶尔就能正常运行。

以下是cmd文件配置
.text: > RAML3,PAGE = 0

PAGE 0 :/* BEGIN is used for the "boot to SARAM" bootloader mode*/
BEGIN: origin = 0x000000, length = 0x000002/* Boot to M0 will go here*/RAMM0: origin = 0x000050, length = 0x0003B0RAML0: origin = 0x008000, length = 0x001000RAML1L2: origin = 0x009000, length = 0x002000RAML3: origin = 0x00B000, length = 0x004000/*RAML3: origin = 0x00B000, length = 0x001000 */XRAM: origin = 0x100000, length = 0x010000ZONE7A: origin = 0x200000, length = 0x00FC00/* XINTF zone 7 – program space */CSM_RSVD: origin = 0x33FF80, length = 0x000076/* Part of FLASHA.Program with all 0x0000 when CSM is in use. */CSM_PWL: origin = 0x33FFF8, length = 0x000008/* Part of FLASHA.CSM password locations in FLASHA*/ADC_CAL: origin = 0x380080, length = 0x000009RESET: origin = 0x3FFFC0, length = 0x000002IQTABLES: origin = 0x3FE000, length = 0x000b50IQTABLES2: origin = 0x3FEB50, length = 0x00008cFPUTABLES: origin = 0x3FEBDC, length = 0x0006A0BOOTROM: origin = 0x3FF27C, length = 0x000D44

下载程序到RAM测试,下进去后,界面如下,程序直接运行,且变量值空白。求教这是哪里编错了?

谢谢各位老师。

user5615553:

回复 user5615553:

发现问题所在
Memory blocks on F28335 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.
L0/L1/L2 and L3 memory blocks are mirrored – that isthey can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.
Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.

所以 将例程cmd文件中程序存放空间
由原来的 /* RAML3 : origin = 0x00B000, length = 0x001000 */
修改为 RAML3 : origin = 0x00B000, length = 0x004000

会与PAGE1中的空间重叠
PAGE 1 :/* BOOT_RSVD is used by the boot ROM for stack.*//* This section is only reserved to keep the BOOT ROM from*//* corrupting this area during the debug process*/
BOOT_RSVD: origin = 0x000002, length = 0x00004E/* Part of M0, BOOT rom will use this for stack */RAMM1: origin = 0x000400, length = 0x000400/* on-chip RAM block M1 */RAML4: origin = 0x00C000, length = 0x001000RAML5: origin = 0x00D000, length = 0x001000RAML6: origin = 0x00E000, length = 0x001000RAML7: origin = 0x00F000, length = 0x001000DLOGSPACE: origin = 0x100000, length = 0x010000ZONE7B: origin = 0x20FC00, length = 0x000400/* XINTF zone 7 – data space */

//**************************************************************************************************************//

现在的问题是:
程序空间不够,该怎样增加空间长度?

.text : > RAML3, PAGE = 0

赞(0)
未经允许不得转载:TI中文支持网 » CCS下载到28335开发板,程序直接运行,run按钮灰色,expression空白,请教大家是什么原因?
分享到: 更多 (0)