Can I reduce the size of code.

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

cross mob
Anonymous
Not applicable

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?

   

Poul-Erik.

0 Likes
3 Replies