Tuesday, April 26, 2011

Apr.25 Status: LMS upgrade to FORTE 4 export

Goal: LMS FBs under Forte ide and rte with ver.4 FB exporter / most current versions.
  • Need a good 4diac-ide with current ver.4 FB exporter
  • Converting the LMS FBs that worked under ver.3 FB exporter to current versions
    • LMS HW interface code (avr, etc) 
      • change from c to c++ for LMS HW interface code
        • convert #define s 
        • sensor classes
    • forte code standards
4diac-ide: Need to get good version with version 4 exporter
Open Question: There were hand changes to LMS code in hg repository.
Is there a working 4diac-ide whose FB exporter will include these changes?


FB (hand) changes:
  • type names 
  • QI /QO now QI( ) and QO( )
  • others unknown???

Since recently laptops and netbooks work and stop working fairly often (so they don't get lost)
here is the (detailed) current list of open code items:

1.
Warning ..\src\modules\lms\lms_ecos  has no CMakeLists.txt
Impact: No make all created by CMake configure and generate
Work-around: Created a do nothing ..\src\modules\lms\lms_ecos\CMakeLists.txt file
HG? wait for now. Discuss because will need a CMakelists.txt in this directory


2.
Error: cannot find LMS FBs because they are not there yet.
Impact: make all fails quickly
Work-around: Commented out LMS FBs in ..\src\modules\lms\lms_ecos\CMakeLists.txt
specifically:
# forte_add_sourcefile_hcpp(LED LT M_PWR OFF SOUND TOUCH)
HG? wait for now since they will be added


3.
Error: cc1plus: error: unrecognized command line option "-fno-threadsafe-statics"
Impact: make all fails quickly
Work-around: delete -fno-threadsafe-statics from forte_add_definition( with the compile/link options
HG?  Ask (why is it there) but think option needs to be deleted or a specific arm-elf is needed.
     Its in the Feb version that worked - so why is it a problem now?


4.
Warning:
[0m[ 57%] [32mBuilding CXX object src/CMakeFiles/forte.dir/arch/ecos/ecostiha.cpp.o
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/arch/ecos/ecostiha.cpp:47: warning: unused parameter 'pa_nPriority'
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/arch/ecos/ecostiha.h:47: warning: unused parameter 'alarm'
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/arch/ecos/ecostiha.h:47: warning: unused parameter 'data'
Impact: Hope none - POSIX also gets this
HG? - n/a


5.
Warning:
[0m[ 59%] [32mBuilding CXX object src/CMakeFiles/forte.dir/modules/lms/lmsmain.cpp.o
In file included from C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/modules/lms/lmsmain.cpp:23:
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/modules/lms/../../arch/ecos/ecoscppinit.cpp:33: warning: missing initializer for member `__tm::__tm_isdst'
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/modules/lms/../../arch/ecos/ecoscppinit.cpp:33: warning: missing initializer for member `_reent::_atexit'
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/modules/lms/../../arch/ecos/ecoscppinit.cpp:33: warning: missing initializer for member `_reent::_atexit0'
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/modules/lms/../../arch/ecos/ecoscppinit.cpp:33: warning: missing initializer for member `_reent::_sig_func'
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/modules/lms/../../arch/ecos/ecoscppinit.cpp:33: warning: missing initializer for member `_reent::__sglue'
C:/Users/Carolyn/Desktop/DistCntl/forteLMS_04a/src/modules/lms/../../arch/ecos/ecoscppinit.cpp:33: warning: missing initializer for member `_reent::__sf'
Impact: Need to evaluate after including current lmsmain code
HG? not now




Current workspace:
LT C:\Users\Carolyn\Desktop\DistCntl\forteLMS_04a\aforteLMS_04aWS

No comments:

Post a Comment