Sunday, September 4, 2011

Sept. 4 LMS FB clean-up tests


Forte has grown as it has stabilized, not leaving much room in 256K for lms FBs 
LMS FBs C++ /  4diac 0.4 are cleaned up; Now using Composite FBs (see previous post)

Testing one after the other 3 base versions : 
  • 0904cyg; With current forte with LMS NXT modification compiled into ecos package 
    • BASE is TOO LARGE now. Only L_LED fits
  • 0904:   With current forte (1.0)    
    • The base forte has grown!
    • 727z:      With 0727 forte
      • all LMS HW functioned prior to using composite FBs
    Tests: black works, grey not yet tested, orange fixing
     note: have to change apps to use most current FBs wtith sensor type.
    • all compiles and link
      • 727z, 0904, 0904cyg
      • Boot Blinky:
        • 727z, 09040904cyg
      • 4 LED app: (deploy works)
        • 727z, 09040904cyg
        arm-elf-size forte.elf  size Info
        1. with LMS NXT modification compiled into ecos package 
        Linked fine,but its too large now, think it should be same size since it should have just changed locations, but
        with all LMS FBs  size is 42d9c > 4000  = 256K (max) 
        Only small enough with just LED FB : 3fd34
        Both Boot Blinky and deploy of an application work.
        [Could this be the large eCos version that caused similar space problems in Feb.?]

        2. With current forte (1.0) = 0904 forte
        when I changed to the most recent forte and it has grown!!!
        3f8e8 !!!!  Max is 40000x =256K
        3a214 is smallest with only the old Boot Blinky code and no AVR initialization
        changing the queue parameters makes no difference to the size 

        What caused it to grow so much? Anything else that can be left out?

        3. With 0727 forte
        0727 forte 3f69c with all LMS FBs in previous post.

        Minor side notes:
        1. Did some optimization and found the local variables sometimes make it smaller, but in the case of L_LED it was smaller using local variables.

        2. Finishing up the lms code I tried to move all the port related code in the FB L_S_PORT, but had problems moving the static constant arrays that were initialized and private methods into the exported code. Not a priority, but if you understand this cryptic description and have hint I will try again... otherwise I will leave the code in a separate class.  

        No comments:

        Post a Comment