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.

怎么在IAR的map文件里面没有stack的信息呢?

Other Parts Discussed in Thread: CC3200


请问一下在IAR的 CC3200的程序的map文件为什么没有stack的信息,只有heap的信息

  • 我没用这个IAR,你找个官方的例程,编译一下,看看生成的MAP有没有。

  • 谢谢回复。

    我打开了官方SDK里面的例程,他的map文件也是没有关于stack的信息

  • 直接去IAR的Link选项中找到CC3200.icf文件,在该文件中定义了CC3200使用的堆栈的大小,可以在IAR的工程设置选项中更改这个堆栈的大小。

    //
    // Indicate that the noinit values should be left alone. This includes the
    // stack, which if initialized will destroy the return address from the
    // initialization code, causing the processor to branch to zero and fault.
    //
    do not initialize { section .noinit };

    define block CSTACK with alignment = 8, size = 0x800 { section .stack };
    do not initialize { section .stack};
    place at end of SRAM { block CSTACK };