Skip to main content
hello
Associate III
June 23, 2012
Question

How to reduce the project size.

  • June 23, 2012
  • 3 replies
  • 1255 views
Posted on June 23, 2012 at 20:56

hi,

i have the project from IAR Embedded workbench when i try to compile it size code exceed,, i am using only code size limited.

this project have lot of function like LCD, Temp sensor, USART, ect..

now i am just trying to use only USART and CAN function..

so how i can remove those unwanted function from that project.

Thanks.....
    This topic has been closed for replies.

    3 replies

    Andrew Neil
    Super User
    June 23, 2012
    Posted on June 23, 2012 at 23:47

    Edit the files to remove the unused/unwanted functions?

    (or disable them with #if)

    If complete files are unused, remove them from the project?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    hello
    helloAuthor
    Associate III
    June 23, 2012
    Posted on June 24, 2012 at 00:30

    thanks for your reply..

    i remove some file which i dont want to use then i got like

    Error[Li005]: no definition for ''Stepper_Motor_Test'' [referenced from C:\Documents and Settings\RAJ\Desktop\ST\STM32F10x\IAR-STM32F107VC-SK\Test_Demo\project\EWARMv5\STM32F107VCT6\Obj\menu.o] 

    i got some of the error like this what i can do for such error.
    Tesla DeLorean
    Guru
    June 23, 2012
    Posted on June 24, 2012 at 01:48

    Remove calls to functions and files you have removed.

    Alternatively start a new project and just copy in the functionality you want/need. The firmware library contains template projects which are empty, copy these to new directories.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..