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.

将程序下载到5509A里,运行时出现如下错误:The CIO command cmd:(0) in the CIO buffer at address (0x11cf8) was not recognized. Please check the device and program memory maps.

The CIO command cmd:(0) in the CIO buffer at address (0x11cf8) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(0) in the CIO buffer at address (0x11cf8) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(0) in the CIO buffer at address (0x11cf8) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(0) in the CIO buffer at address (0x11cf8) was not recognized. Please check the device and program memory maps.

  • 根据错误提示,请检查一下你cmd文件中的memory配置。

  • -heap 0x1000
    -stack 0x1000
    -c
    -lrts55.lib
    MEMORY
    {
    IRAM: o = 000000c0h l = 00040000h
    }

    SECTIONS
    {
    .text > IRAM fill = 0
    .stack > IRAM fill = 0
    .bss > IRAM fill = 0
    .cinit > IRAM fill = 0
    .const > IRAM fill = 0
    .data > IRAM fill = 0
    .far > IRAM fill = 0
    .switch > IRAM fill = 0
    .sysmem > IRAM fill = 0
    .tables > IRAM fill = 0
    .cio > IRAM fill = 0
    }

    这是我的CMD文件,可是编译通过不就是代表可以运行吗

  • memory map设置没什么问题。

    你代码里有用printf语句吗?

    是运行到哪句出现这个错?

  • printf语句是有的,是printf语句导致的吗?

  • 还有我编译的的时候有如下警告:

    warning: creating output section ".pinit" without a SECTIONS specification
    warning: creating output section "vectors" without a SECTIONS specification
    warning: creating ".sysstack" section with default size of 0x3e8; use the

  • king she 说:

    printf语句是有的,是printf语句导致的吗?



    CIO问题可能跟printf有关,可以看一下下面的说明。
     http://processors.wiki.ti.com/index.php/Tips_for_using_printf

    是运行到printf语句报的错吗?

  • king she 说:

    还有我编译的的时候有如下警告:

    warning: creating output section ".pinit" without a SECTIONS specification
    warning: creating output section "vectors" without a SECTIONS specification
    warning: creating ".sysstack" section with default size of 0x3e8; use the

    这些warning提示没有在SECTIONS中分配.pinit, vectors段。.sysstack段大小使用的是默认值0x3e8。

  • 我在运行一下读文件的程序时会报错:

    FILE *fp1,*fp2;  

    fp1=fopen("..\\x500.txt","r");
    for(i=0;i<500;i++)
    {
    if(fscanf(fp1,"%lf",&dutmp1)!=EOF)
    {
    x[i]=dutmp1;
    }
    else
    {
    goto CLOSEFILE_x;
    }
    }
    fp2=fopen("..\\y500.txt","r");
    for(i=0;i<500;i++)
    {
    if(fscanf(fp2,"%lf",&dutmp2)!=EOF)
    {
    y[i]=dutmp2;
    }
    else
    {
    goto CLOSEFILE_y;
    }
    }
    CLOSEFILE_x: fclose(fp1);
    CLOSEFILE_y: fclose(fp2);

    错误:The CIO command cmd:(0) in the CIO buffer at address (0x110f8) was not recognized. Please check the device and program memory maps.

  • 试试加大heap, stack size. 

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