About CY8C4247LQI-BL463 code size

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Robin_Peng
Level 5
Level 5
Distributor - Macnica(GC)
100 replies posted 50 replies posted 50 questions asked

您好!

目前程序编译后,发现flash空间不够用了,我这仪器代码量128k应该是够了的,ST的64K也够用,现在程序还没写完,显示已用97.9%,现在程序存储数据就不对了,请问是不是哪些东西比较占用空间?

谢谢

pastedImage_0.png

0 Likes
1 Solution
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

一般 bootloader 系统,BLE栈等资源都比较占用 FLASH 空间。工程编译之后,工程目录下会生成一个 .map 文件,这个文件记录了 FLASH/SRAM的分配明细,你可以查看一下到底是哪些部分占用了过多的资源。

有时 debug 信息也会占用很多FLASH空间,你可以尝试一下 release 编译,看能压缩多少空间。

View solution in original post

0 Likes
2 Replies
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

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:

https://www.cypress.com/documentation/application-notes/an89610-psoc-4-and-psoc-5lp-arm-cortex-code-...

Since you have not written any program, please attach your PSOC Creator project so that we can test it at our side.

Thanks

Ganesh

0 Likes
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

一般 bootloader 系统,BLE栈等资源都比较占用 FLASH 空间。工程编译之后,工程目录下会生成一个 .map 文件,这个文件记录了 FLASH/SRAM的分配明细,你可以查看一下到底是哪些部分占用了过多的资源。

有时 debug 信息也会占用很多FLASH空间,你可以尝试一下 release 编译,看能压缩多少空间。

0 Likes