Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FX3 code size

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



FX3 code size
Moderator:
RSKV

Post Reply
Follow this topic



FX3 code size

dreitz posted on 17 Apr 2012 3:03 PM PST
Top Contributor
74 Forum Posts

How can I tell how large my program is?  I'm afraid that my EEPROM may be too small.




Re: FX3 code size

Chris R. posted on 18 Apr 2012 11:09 PM PST
Top Contributor
135 Forum Posts

The code size is printed out at the end of the build process in the eclipse console window.



Re: FX3 code size

dreitz posted on 18 Apr 2012 05:39 AM PST
Top Contributor
74 Forum Posts

The size of the ELF file is listed at the bottom of the Eclipse window.  I need the IMG in order to size the EEPROM.

If the size at the bottom of the Eclipse window after a build, then the EEPROM on the FX3 development board is not big enough to hold any of the Cypress sample code I've built.  All the sample code should fit, right?



Re: FX3 code size

RobK posted on 19 Apr 2012 07:57 AM PST
Top Contributor
56 Forum Posts

Hi,

the size which is printed by utility arm-none-eabi-size is only the section sizes of the .elf-file, means text-, data- and bss-section. This is the same size the .img-file (which contains only  these sections) has plus some header- and length-information bytes which are special to the .img-format!

 

Regards,

Robert






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.