微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > CC2541的oad升级中内存占用情况的具体计算方式

CC2541的oad升级中内存占用情况的具体计算方式

时间:10-02 整理:3721RD 点击:

oad升级中内存占用情况的具体应该怎么算,具体数据情况如下例:

我们想知道oad升级中内存占用情况的具体计算方式:

When you have compiled your project you can have a look at the bottom in the ".map" file (Output Folder).

For example, the heart rate example project:

108 019 bytes of CODE memory
     26 bytes of DATA memory (+ 73 absolute )
  6 089 bytes of XDATA memory
    192 bytes of IDATA memory
      8 bits of BIT memory
    702 bytes of CONST memory

This information is useful, in that it tells the total amount of code space (CODE memory) and RAM (XDATA memory) being used by the project. The sum of the CODE memory plus CONST memory must not exceed the maximum flash size of the device (either 128KB or 256KB, depending on the version of the CC2540/41). The size of the XDATA memory must not exceed 7936 bytes, as the CC2540/41 contains 8kB of SRAM (256 bytes are reserved).

For more specific information, the map file contains a section title “MODULE SUMMARY”, which can be found approximately 200-300 lines before the end of the file (the exact location will vary from build-to-build). Within this section, the exact amount of flash and memory being used for every module in the project can be seen. 

谢谢大神!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top