after:

LATCH_VARIANT = Magna in m_project_cfg.mak of PG_..

1. first error:

SED   tmp__.dep
/bin/sh: /output/PG_gwm_chb125_pot/compile//depend/tmp__.dep: No such file or directory
make[4]: *** [M_brose/make/m_depend.mak:42: /output/PG_gwm_chb125_pot/compile//depend/tmp__.dep] Error 1

Solving:

PG_gwm_chb125_pot\make\prj_default\m_project_cfg.mak

#MAKE_QAC   += private/M_pot_ar_latch/make/$(LATCH_VARIANT)

How big is the effect of LATCH_VARIANT?

1.  m_pot_ar_cfg\make\appl\M_module.mak:

MODULE_HEADER_PATH  +=  -I $(W_POT_AR_CFG_PATH)/Mod_LatchControl/inc/$(LATCH_VARIANT)
MODULE_HEADER_PATH  +=  -I $(W_POT_AR_CFG_PATH)/Mod_SensorLatch/inc/$(LATCH_VARIANT)

2. SensorLatch_Magna_ExpMod.h:

#ifndef SENSOR_LATCH_VARIANT_EXP_MOD_H_
#define SENSOR_LATCH_VARIANT_EXP_MOD_H_

2. Second Error

In file included from M_pot_ar_cfg/prj_sci_cfg/inc/Sci.h:52:0,
                 from M_pot_ar_cfg/Mod_BusControl/inc/Sci_BusControl.h:95,
                 from M_pot_ar_cfg/Mod_BusControl/src/BusControl.c:51:
M_pot_ar_cfg/prj_sci_cfg/inc/Sci_If_incl.h:78:10: fatal error: Sci_LatchControl_If.h: No such file or directory
 #include "Sci_LatchControl_If.h"

 Solving:

in Mod_pot_ar_cfg, Sci_If_incl.h /*#include "Sci_LatchControl_If.h"*/

3. 3rd Error

In file included from M_pot_ar_cfg/prj_sci_cfg/inc/Sci.h:52:0,
                 from M_pot_ar_eol/src/Cmp_Eol.c:36:
M_pot_ar_cfg/prj_sci_cfg/inc/Sci_If_incl.h:77:10: fatal error: Sci_SensorLatch_If.h: No such file or directory
 #include "Sci_SensorLatch_If.h"

Solving:

as Sci_SensorLatch_If.h in M_pot_ar_latch is private and abandomed,

add necessary files into M_pot_ar_cfg\mod_sensorlatch\inc\magna

4. 4st Error

make[4]: *** No rule to make target 'LatchControl_Magna.c', needed by 'LatchControl_Magna.d'.  Stop.
make[4]: *** Waiting for unfinished jobs....

Update:

in Sci_If_incl.h,

#include "Sci_LatchControl_If_Gen.h"

new Error

In file included from M_pot_ar_cfg/prj_sci_cfg/inc/Sci.h:52:0,
                 from M_pot_ar_eol/src/Cmp_Eol.c:36:
M_pot_ar_cfg/prj_sci_cfg/inc/Sci_If_incl.h:107:10: fatal error: Sci_LatchControl_If_Gen.h: No such file or directory
 #include "Sci_LatchControl_If_Gen.h"

Solving:

in M_pot_ar_cfg, add Mod_LatchControl

5. 5st Error

In file included from M_pot_ar_cfg/Mod_LatchControl/src/Magna/LatchControl_Magna.c:41:0:
M_pot_ar_cfg/Mod_LatchControl/inc/Magna/LatchControl_Services.h:23:10: fatal error: LatchControl_cfg.h: No such file or directory
 #include "LatchControl_cfg.h"

Solving:

add LatchControl_cfg.h

and LatchControl_fct_cfg.h

6. 6st Error

make[4]: *** No rule to make target 'SensorLatch_Magna_cfg.c', needed by 'SensorLatch_Magna_cfg.d'.  Stop.
make[4]: *** Waiting for unfinished jobs....

Solving:

move SensorLatch_Magna_cfg.c

and LatchControl_cfg.c

7. 7st Error

M_pot_ar_cfg/prj_sci_cfg/src/Sci_Bsw_Scheduler.c:49:10: fatal error: LatchControl_Exp.h: No such file or directory
 #include "LatchControl_Exp.h"

Solving:

in Sci_Bsw_Scheduler.c,

#include "LatchControl_Exp_Gen.h"

8st Error

M_pot_ar_cfg/prj_sci_cfg/src/Sci_Latch.c:41:10: fatal error: Sci_LatchControl.h: No such file or directory
 #include "Sci_LatchControl.h"

Solution:

Sci_Latch.c,

Sci_LatchControl_Gen.h

9st Error

"M_pot_ar_cfg/prj_appl_cfg/inc/Diagnosis_DTC.cfg", line 171: error #20: identifier "LCT_ERROR_ID_TIMEOUT_CONTRACT" is undefined
    DTC_DIAGNOSTIC_CFG( ID_LATCH_CTRL1_TIMEOUT_CONTRACT     , LCT_ERROR_ID_TIMEOUT_CONTRACT              , 9C0267     , FALSE, FDC_MODE_no_cnt , FDC_MODE_no_cnt)
    ^

"M_pot_ar_cfg/prj_appl_cfg/inc/Diagnosis_DTC.cfg", line 172: error #20: identifier "LCT_ERROR_ID_TIMEOUT_REWIND" is undefined
    DTC_DIAGNOSTIC_CFG( ID_LATCH_CTRL1_TIMEOUT_REWIND       , LCT_ERROR_ID_TIMEOUT_REWIND                , 9C0367_02  , FALSE, FDC_MODE_no_cnt , FDC_MODE_no_cnt)
    ^

"M_pot_ar_cfg/prj_appl_cfg/inc/Diagnosis_DTC.cfg", line 173: error #20: identifier "LCT_ERROR_ID_TIMEOUT_HOMEPOS" is undefined
    DTC_DIAGNOSTIC_CFG( ID_LATCH_CTRL1_TIMEOUT_HOMEPOS      , LCT_ERROR_ID_TIMEOUT_HOMEPOS               , 9C0367_03  , FALSE, FDC_MODE_no_cnt , FDC_MODE_no_cnt)
    ^

make[4]: *** [M_brose/make/m_build_ghs_ppc.mak:250: Diagnosis_DTC_cfg.o] Error 1
make[4]: *** Waiting for unfinished jobs....

Solution:

in Diagnosis_DTC.cfg line171,

DTC_DIAGNOSTIC_CFG( ID_LATCH_CTRL1_TIMEOUT_CONTRACT     , 0                                          , No_Fct     , FALSE, FDC_MODE_no_cnt , FDC_MODE_no_cnt)
  DTC_DIAGNOSTIC_CFG( ID_LATCH_CTRL1_TIMEOUT_REWIND       , 0                                          , No_Fct     , FALSE, FDC_MODE_no_cnt , FDC_MODE_no_cnt)
  DTC_DIAGNOSTIC_CFG( ID_LATCH_CTRL1_TIMEOUT_HOMEPOS      , 0                                          , No_Fct     , FALSE, FDC_MODE_no_cnt , FDC_MODE_no_cnt)

9st Error:

"M_pot_ar_cfg/Mod_LatchControl/src/Magna/LatchControl_Magna.c", line 250: error #136: struct "<unnamed>" has no field "u8_ReleaseSuccessTimesForRecover"
      lu32_ReleaseSuccessTimeRequired = aps_latchdata->ps_Parameter->u8_ReleaseSuccessTimesForRecover;

PARAMETER_SET_CFG(uint16              ,u16_Motor1TargetDutyCycle1                       ,750u                            ,0u          ,65535u      ,LatchControl                    ,"[%]              ,[0,1]            , The target duty cycle for the first setp which can enhance force to overcome big load when reseting.")
PARAMETER_SET_CFG(uint16              ,u16_Motor1TargetDutyCycle2                       ,750u                            ,0u          ,65535u      ,LatchControl                    ,"[%]              ,[0,1]            , The target duty cycle for the first setp which can enhance force to overcome big load when rewinding.")
PARAMETER_SET_CFG(uint16              ,u16_Motor1TargetDutyCycle3                       ,500u                            ,0u          ,65535u      ,LatchControl                    ,"[%]              ,[0,1]            , The target duty cycle for normal reseting.")
PARAMETER_SET_CFG(uint16              ,u16_Motor1TargetDutyCycle4                       ,500u                            ,0u          ,65535u      ,LatchControl                    ,"[%]              ,[0,1]            , The target duty cycle for normal rewinding.")
PARAMETER_SET_CFG(uint8               ,u8_ReleaseSuccessTimesForRecover                 ,3u                              ,0u          ,65535u      ,LatchControl                    ,"[1]              ,[0,1]            , Times of successful release from mainrest continuously, enable cinch condition after critical error")

"M_pot_ar_cfg/Mod_LatchControl/src/Magna/LatchControl_Magna.c", line 517: error #136: struct "<unnamed>" has no field "u16_ReleaseTimeout"
                  ls_CheckResult.e_Result = Lct_ExecuteLatchOperationOneTimeout(aps_latchdata, E_LATCH_CONTROL_RELEASE, aps_latchdata->ps_Parameter->u16_ReleaseTimeout);
                                                                                                                                                     ^

PARAMETER_SET_CFG(uint16              ,u16_ReleaseTimeout                               ,2000u                           ,0u          ,65535u      ,LatchControl                    ,"[ms]             ,[1]              , Overall timeout for PCU release operation")
PARAMETER_SET_CFG(uint16              ,u16_HomePosShortTime1                            ,600u                            ,0u          ,65535u      ,LatchControl                    ,"[ms]             ,[1]              ,  Timeout for home position switch short circuit when reseting")
PARAMETER_SET_CFG(uint16              ,u16_HomePosShortTime2                            ,1450u                           ,0u          ,65535u      ,LatchControl                    ,"[ms]             ,[1]              ,  Timeout for home position switch short circuit when rewinding")
PARAMETER_SET_CFG(uint16              ,u16_HomePosOpenTime1                             ,750u                            ,0u          ,65535u      ,LatchControl                    ,"[ms]             ,[1]              ,  Timeout for home position switch open circuit when reseting")
PARAMETER_SET_CFG(uint16              ,u16_HomePosOpenTime2                             ,1600u                           ,0u          ,65535u      ,LatchControl                    ,"[ms]             ,[1]              ,  Timeout for home position switch open circuit when rewinding")

PARAMETER_SET_CFG(uint16              ,u16_ResetWaitTime                                ,50u                             ,0u          ,65535u      ,LatchControl                    ,"[ms]             ,[1]              , Delay between release and reset")
PARAMETER_SET_CFG(uint16              ,u16_EnhanceForceWorkTime                         ,100u                            ,0u          ,65535u      ,LatchControl                    ,"[ms]             ,[1]              , Time for the first setp which can enhance force to overcome big load when reseting and rewinding")

10st Error:

[elxr] (error) unresolved symbols: 6
 Cmp_Latch_VersionCheckParaLibrary  from M_pot_ar_cfg_default.lib(Parameter_cfg.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1CinchDoneTime1  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 SCI_Call_Bsw_SetPwmMotorGroupB  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1ReleaseDoneTime1  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1ReleaseDoneTime2  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1RelaeseDoneCurrent2  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)

Solution:

Sci_Bsw.c -- add definition of SCI_Call_Bsw_SetPwmMotorGroupB

Error:

[elxr] (error) unresolved symbols: 6
 Cmp_Latch_VersionCheckParaLibrary  from M_pot_ar_cfg_default.lib(Parameter_cfg.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1CinchDoneTime1  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1ReleaseDoneTime1  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1ReleaseDoneTime2  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1RelaeseDoneCurrent2  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 BswIf_SetLatchPwmSweepMode  from M_pot_ar_cfg_default.lib(Sci_Bsw.o)

solution:

bswif.c &

bswif.h update

Error:

"M_pot_bsw_cfg/source/bswif.c", line 161: error #20: identifier "PWM_MOTOR_B" is undefined
      {BSWIF_PWM_MOTOR_B,                    PWM_MOTOR_B             },
                                             ^

make[4]: *** [M_brose/make/m_build_ghs_ppc.mak:250: bswif.o] Error 1

solution:

pwm.h update

Error:

[elxr] (error) unresolved symbols: 5
 Cmp_Latch_VersionCheckParaLibrary  from M_pot_ar_cfg_default.lib(Parameter_cfg.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1CinchDoneTime1  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1ReleaseDoneTime1  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1ReleaseDoneTime2  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)
 Sci_DRead_ParaMotorGroupB_u16_Motor1RelaeseDoneCurrent2  from M_pot_ar_cfg_default.lib(LatchControl_Magna.o)

Solution:

in MotorGroupB_Para.cfg:

PARAMETER_SET_CFG(uint16              ,u16_Motor1RelaeseDoneCurrent1                    ,5000u                           ,0u          ,65535u      ,MotorGroupB                     ,"[mA]             ,[1]              , If Pawl switch and Ratchet switch are detected as active, and PCU motor current is bigger than this value for Motor1ReleaseDoneTime1, latch is released successfully.")
PARAMETER_SET_CFG(uint16              ,u16_Motor1RelaeseDoneCurrent2                    ,5000u                           ,0u          ,65535u      ,MotorGroupB                     ,"[mA]             ,[1]              , If Pawl switch is active and Ratchet switch is inactive, and PCU motor current is bigger than this value for Motor1ReleaseDoneTime2, latch is released successfully.")

and etc.

Error:

[elxr] (error) unresolved symbols: 1
 Cmp_Latch_VersionCheckParaLibrary  from M_pot_ar_cfg_default.lib(Parameter_cfg.o)

Try:

1. LatchControl_Para.cfg updated.

2. MainControl_LatchFsm.h

Uncertain: MainControl_LatchFsm.c

Error:

"M_pot_ar_cfg/Mod_MainControl/src/MainControl.c", line 295: error #20: identifier "mb_PcuTriggerReInitIfHome" is undefined
              mb_PcuTriggerReInitIfHome = TRUE;
              ^

Solution:

update MainControl.c

Error:

[elxr] (error) unresolved symbols: 2
 mb_LatchRewindRequest  from M_pot_ar_cfg_default.lib(MainControl.o)
 Cmp_Latch_VersionCheckParaLibrary  from M_pot_ar_cfg_default.lib(Parameter_cfg.o)

Solution:

MainControl_LatchFsm.c update

Error:

"M_pot_ar_cfg/Mod_MainControl/src/MainControl_LatchFsm.c", line 341: error #20: identifier "M_CONFIG_TIMER_ID_MCtrlLatchStateTransDelayTime" is undefined
      LOAD_STATE_TRANSITION_DELAY(20);                        /* To prevent directly go to idle state before the state transition*/
      ^

update MainControl.h MainControl_MainFsm.h

[elxr] (error) unresolved symbols: 1
 Cmp_Latch_VersionCheckParaLibrary  from M_pot_ar_cfg_default.lib(Parameter_cfg.o)

Try:

Parameter_cfg.c update

/*#include "Cmp_Latch.h"*/

Result: 

make[1]: Leaving directory '/cygdrive/r/synergy/readonly/SW_gwm_chb125_pot-kongdel/PG_gwm_chb125_pot'

14:26:15 Build Finished (took 15s.226ms)

LATCH_VARIANT = Magna compile的更多相关文章

  1. git getting started

    2019/4/25-- after committing to blessed. modify dependency file to download file so as to get latest ...

  2. Angular源码分析之$compile

    @(Angular) $compile,在Angular中即"编译"服务,它涉及到Angular应用的"编译"和"链接"两个阶段,根据从DO ...

  3. Compile FreeCAD on Windows

    Compile FreeCAD on Windows eryar@163.com 1.Introduction FreeCAD是一个参数化的三维造型软件,主要用于任意大小的实际模型的设计.参数化的建模 ...

  4. maven 加入json-lib.jar 报错 Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile

    <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</art ...

  5. $compile

    <html ng-app="compile"> <head> <script src="http://apps.bdimg.com/libs ...

  6. 关于The C compiler "arm-none-eabi-gcc" is not able to compile a simple test program. 的错误自省...

    在 GCC ARM Embedded https://launchpad.net/gcc-arm-embedded/ 上面下载了个arm-none-eabi-gcc 用cmake 编译时 #指定C交叉 ...

  7. My first makefile to compile multiple C files

    I have three files to compile: main.c, func.c,  func.h The steps: 1   main.c   to   main.o 2   func. ...

  8. angular中的compile和link函数

    angular中的compile和link函数 前言 这篇文章,我们将通过一个实例来了解 Angular 的 directives (指令)是如何处理的.Angular 是如何在 HTML 中找到这些 ...

  9. Angular使用$compile为从Ajax加载的HTML绑定ng-click事件

    这是一个Angular使用$compile为从Ajax加载的HTML绑定ng-click事件的实现方式,由于近期忙碌,就先放代码.代码如下: <table data-ng-table=" ...

随机推荐

  1. 【Postgres】空间数据库创建

    1.数据库创建问题-Navicat-ERROR: source database "template1" is being accessed by other users 2.解决 ...

  2. Dynamic seq2seq in tensorflow

    v1.0中 tensorflow渐渐废弃了老的非dynamic的seq2seq接口,已经放到 tf.contrib.legacy_seq2seq目录下面. tf.contrib.seq2seq下面的实 ...

  3. pandas功能使用rename, reindex, set_index 详解

    pandas rename 功能 在使用 pandas 的过程中经常会用到修改列名称的问题,会用到 rename 或者 reindex 等功能,每次都需要去查文档 当然经常也可以使用 df.colum ...

  4. GBDT 详解分析 转+整理

    GBDT DT 回归树 Regression Decision Tree 梯度迭代 GBDT工作过程实例 需要解释的三个问题 - 既然图1和图2 最终效果相同,为何还需要GBDT呢? - Gradie ...

  5. cf 938E

    哇自闭了. 一样个毛啊. 和之前见过的几道感觉很类似啊. 首先一个数如果有贡献那么在他后面一定有一个大于它的数,并且前面的全比他小,然后我就跑偏了... 于是我们先排个序,显然无影响,我们可以考虑从 ...

  6. windows 下安装 mongodb 时间太久,卡在那里不动

    1.mongodb官网下载:http://www.mongodb.org/downloads 2.双击程序安装,会出现如下,卡着不动,时间太久,也取消不了 3.是因为安装时默认勾选 compass 图 ...

  7. 验证IP地址的有效性

    实力说明 IP地址是网络上每台计算机的标识,在浏览器中输入的网址也是要经过DNS服务器转换为IP地址才能找到服务器. 关键技术 正则表达式

  8. 小Q系列故事——屌丝的逆袭

    小Q系列故事——屌丝的逆袭 Problem Description 毕业于普通本科的小Q一直自称是资深屌丝,不仅学校不知名,甚至他自己在这个普通学校也是默默无闻——直到临近毕业的时候,班里5朵金花中的 ...

  9. Spring-Boot构建多模块项目

    Spring-Boot构建多模块项目 功能模块单独项目开发,可以将一个庞大的项目分解成多个小项目,便于细分开发 Maven多模块项目不能独立存在,必须有一个介质来包含. 1.创建一个Maven 项目, ...

  10. js设计模式(五)---观察者模式

    概述: 观察者模式也叫 “ 发布-订阅 " 模式 , 发布者发布信息是不需要考虑订阅者是谁?添加订阅者的时候也不需要通知发布者. 应用: 最经典的就是: DOM事件 开发过程中我们常用自定义 ...