You are here

Can I reduce the size of code. | Cypress Semiconductor

Can I reduce the size of code.

Summary: 3 Replies, Latest post by sodafarl on 18 Jun 2012 07:40 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Poul-Erik's picture
14 posts

I have problems getting rume for my code. The total size of my own program is approx 18K, and it can't incress the size without getting into space trouble.

My current fx3.ld : 

   Descriptor area Base: 0x40000000 Size: 12KB
   Code area       Base: 0x40003000 Size: 180KB
   Data area       Base: 0x40030000 Size: 32KB
   LIBC heap       Base: 0x40038000 Size: 32KB
   Driver heap     Base: 0x40040000 Size: 32KB  (Update cyfxtx.c to change this.)
   Buffer area     Base: 0x40048000 Size: 224KB (Update cyfxtx.c to change this.)

In the map file I can see that some unused modules are linked into my project:

ex.;  (cyu3i2s.o), (cyu3usbhost.o), (cyu3usbotg.o) ...

Can I make dummy for this modules?

Can I reduce the size of my LIBC heap?



aasi's picture
Cypress Employee
1166 posts

The library source isn't open yet. So tech support (MyAccount -> MyCases) would be the right place to get answers for this query. They would be able to look at the modules and see what exactly is getting added.



rskv's picture
Cypress Employee
1134 posts

we do not recommend you to do that. There might be some linking problems.


sai krishna.

sodafarl's picture
133 posts

Is your build configuration set for Debug or Release. Release reduces the compiled code size.


Log in to post new comments.