cc2541 map信息的含义是什么?
112 726 bytes of CODE memory
35 bytes of DATA memory (+ 73 absolute )
6 272 bytes of XDATA memory
194 bytes of IDATA memory
8 bits of BIT memory
487 bytes of CONST memory
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.