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编译,我的Flash还剩多少?

 82 334 bytes of CODE  memory
  2 448 bytes of DATA  memory (+ 140 absolute )
 19 774 bytes of CONST memory
IAR编译,我的Flash还剩多少? 用掉的Flash是CODE+CONST还是只有CODE?芯片是5328;感觉没有多定义CONST怎么空间从15k到了19k了呢?

谢谢!

  • 只有code在flash中,const是在内存中的

  • song CHEN1,

    Const也是存在Flash中的。故用掉的Flash是:用掉的Flash是CODE+CONST。

    在IAR中,你可以如下图所示,选中generate linker listing, static overlay map. 然后Rebuild后,可以在output中找到.map文件,然后查看const数据存储的位置。

    BR,

    Lina