- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
您好!
目前程序编译后,发现flash空间不够用了,我这仪器代码量128k应该是够了的,ST的64K也够用,现在程序还没写完,显示已用97.9%,现在程序存储数据就不对了,请问是不是哪些东西比较占用空间?
谢谢
Solved! Go to Solution.
- Tags:
- code size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
一般 bootloader 系统,BLE栈等资源都比较占用 FLASH 空间。工程编译之后,工程目录下会生成一个 .map 文件,这个文件记录了 FLASH/SRAM的分配明细,你可以查看一下到底是哪些部分占用了过多的资源。
有时 debug 信息也会占用很多FLASH空间,你可以尝试一下 release 编译,看能压缩多少空间。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I hope that I understood the question.
Are you using middleware libraries like BLE/CapSense/USB in your application? Using more than one of these components will take more space.
Also, the size of files you have added to the project may also fill flash space.
Please refer the following application note on code optimization:
Since you have not written any program, please attach your PSOC Creator project so that we can test it at our side.
Thanks
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
一般 bootloader 系统,BLE栈等资源都比较占用 FLASH 空间。工程编译之后,工程目录下会生成一个 .map 文件,这个文件记录了 FLASH/SRAM的分配明细,你可以查看一下到底是哪些部分占用了过多的资源。
有时 debug 信息也会占用很多FLASH空间,你可以尝试一下 release 编译,看能压缩多少空间。