# HG changeset patch # User paul # Date 2015-07-02 05:36:22 # Node ID 7bf0cf7f80b981852cf0470580d1e8e7c6d75d9a # Parent 7bcf4447108152a272957760b588469eda76cf06 debug fonction bp1 de tch diff --git a/.hgsubstate b/.hgsubstate --- a/.hgsubstate +++ b/.hgsubstate @@ -1,2 +1,2 @@ -aa66459dff7b46d030e3263cfd9291b1d550c428 LFR_basic-parameters +3081d1f9bb20b2b64a192585337a292a9804e0c5 LFR_basic-parameters bb9afa759d57093f7646d3be18f4a9923a4cbf84 header/lfr_common_headers diff --git a/FSW-qt/fsw-qt.pro b/FSW-qt/fsw-qt.pro --- a/FSW-qt/fsw-qt.pro +++ b/FSW-qt/fsw-qt.pro @@ -2,7 +2,7 @@ TEMPLATE = app # CONFIG += console v8 sim # CONFIG options = verbose *** boot_messages *** debug_messages *** cpu_usage_report *** stack_report *** vhdl_dev *** debug_tch # lpp_dpu_destid -CONFIG += console verbose lpp_dpu_destid +CONFIG += console verbose lpp_dpu_destid debug_tch CONFIG -= qt include(./sparc.pri) @@ -12,11 +12,12 @@ SWVERSION=-1-0 DEFINES += SW_VERSION_N1=3 # major DEFINES += SW_VERSION_N2=0 # minor DEFINES += SW_VERSION_N3=0 # patch -DEFINES += SW_VERSION_N4=7 # internal +DEFINES += SW_VERSION_N4=8 # internal # -#QMAKE_CFLAGS_RELEASE += -fprofile-arcs -ftest-coverage +QMAKE_CFLAGS_RELEASE += -fprofile-arcs -ftest-coverage #LIBS += -lgcov /opt/GCOV/01A/lib/overload.o -lc +LIBS += -lgcov /opt/GCOV/HOWTO_gcov_for_lfr_test/01A/lib/overload.o -lc # # diff --git a/src/fsw_init.c b/src/fsw_init.c --- a/src/fsw_init.c +++ b/src/fsw_init.c @@ -62,6 +62,41 @@ #include "fsw_config.c" #include "GscMemoryLPP.hpp" +void test_bp1() +{ + float test_matrix[25] = { + 4.00109575e+06, + -2.19891187e+03, + 1.73193325e+06, + 1.88106079e+03, + -1.00001638e+06, + 6.23724854e+02, + 2.00016860e+07, + -3.46422920e+07, + -1.44333826e+03, + 7.54424812e+05, + -4.36785375e+05, + 2.34538879e+02, + 8.65882200e+06, + -3.31611108e+03, + 2.71719702e+03, + 1.50027590e+07, + 2.53229094e+05, + -4.99895450e+06, + 2.90329712e+03, + -2.17048022e+03, + -8.66275100e+06, + 1.00002952e+08, + -2.94739111e+03, + 1.73206224e+08, + 3.00003392e+08 + }; + + uint8_t lfr_bp1[11]; + + BP1_set(test_matrix, k_coeff_intercalib_f0_norm, 1, lfr_bp1); +} + void initCache() { unsigned int cacheControlRegister; @@ -248,6 +283,8 @@ rtems_task Init( rtems_task_argument ign BOOT_PRINTF("delete INIT\n") + test_bp1(); + status = rtems_task_delete(RTEMS_SELF); }