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.

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

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

谢谢各位老师。

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

    只是将例程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 = 0x0003B0
    RAML0 : origin = 0x008000, length = 0x001000
    RAML1L2 : origin = 0x009000, length = 0x002000
    RAML3 : origin = 0x00B000, length = 0x004000 /* RAML3 : origin = 0x00B000, length = 0x001000 */
    XRAM : origin = 0x100000, length = 0x010000
    ZONE7A : 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 = 0x000009
    RESET : origin = 0x3FFFC0, length = 0x000002
    IQTABLES : origin = 0x3FE000, length = 0x000b50
    IQTABLES2 : origin = 0x3FEB50, length = 0x00008c
    FPUTABLES : origin = 0x3FEBDC, length = 0x0006A0
    BOOTROM : origin = 0x3FF27C, length = 0x000D44
  • 发现问题所在
    Memory blocks on F28335 are uniform (ie same
    physical memory) in both PAGE 0 and PAGE 1.
    That is the same memory region should not be
    defined for both PAGE 0 and PAGE 1.
    Doing so will result in corruption of program
    and/or data.

    L0/L1/L2 and L3 memory blocks are mirrored - that is
    they can be accessed in high memory or low memory.
    For simplicity only one instance is used in this
    linker file.

    Contiguous SARAM memory blocks can be combined
    if 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 = 0x001000
    RAML5 : origin = 0x00D000, length = 0x001000
    RAML6 : origin = 0x00E000, length = 0x001000
    RAML7 : origin = 0x00F000, length = 0x001000
    DLOGSPACE : origin = 0x100000, length = 0x010000
    ZONE7B : origin = 0x20FC00, length = 0x000400 /* XINTF zone 7 - data space */

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

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

    .text : > RAML3, PAGE = 0
  • 可以直接尝试一下这样编写:
    .text : > >RAML3|RAML4, PAGE = 0
    这样就可以将.text文件放在两个定义段中。