1.新建项目,创建工程名称
2.创建该工程下的项目组
3.设置项目组环境的名字
4.选择需要测试的源代码文件
5.选择被测文件,点击build
6.出现报错,点击报错窗口的按钮
进入报错详细页,查看详细信息
报错内容如下
Unstubbed Entities Log
--------------------------------------------------------------------------------
*** This is not an error log ***
The existence of entities in this log does not signify that an error has
occurred. The purpose of this log is to provide a reason to you when a
symbol has not been stubbed by VectorCAST. When a link error occurs, the
'Reason Not Stubbed' column provides an explanation. In certain cases you
may be required to provide a definition for certain entities in user code.
Please consult the User's Guide for more information.
Directory: C:/NXP/S32DS_ARM_V2.2/S32DS/SOFTWARE/AMMCLIB_V1.1.20/S32K14X_AMMCLIB_V1.1.20/INCLUDE
Symbol Name Type Reason Not Stubbed
-----------------------------------------------------------------------------------------------------------------
GDFLIB_FilterMAInit_FLT function Entities from non-Search directories are expected to be defined in an external library. If this entity is missing from the harness, specify the appropriate library in the linker options. If you want this entity to be stubbed instead, either specify the directory as a Search directory or add this item to Additional Stubs. However, standard library items should usually not be stubbed.
GDFLIB_FilterMA_FLT function Entities from non-Search directories are expected to be defined in an external library. If this entity is missing from the harness, specify the appropriate library in the linker options. If you want this entity to be stubbed instead, either specify the directory as a Search directory or add this item to Additional Stubs. However, standard library items should usually not be stubbed.
Directory: c:/nxp/s32ds_arm_v2.2/s32ds/build_tools/gcc_v6.3/gcc-6.3-arm32-eabi/arm-none-eabi/include
Symbol Name Type Reason Not Stubbed
-----------------------------------------------------------------------------------------------------------------
memcpy function Entities from non-Search directories are expected to be defined in an external library. If this entity is missing from the harness, specify the appropriate library in the linker options. If you want this entity to be stubbed instead, either specify the directory as a Search directory or add this item to Additional Stubs. However, standard library items should usually not be stubbed.
memset function Entities from non-Search directories are expected to be defined in an external library. If this entity is missing from the harness, specify the appropriate library in the linker options. If you want this entity to be stubbed instead, either specify the directory as a Search directory or add this item to Additional Stubs. However, standard library items should usually not be stubbed.
7.出现这种情况的报错一般就是编译器库函数封装不严格,尝试添加stub,首先添加GDFLIB_FilterMAInit_FLT和GDFLIB_FilterMA,暂时不考虑添加memcpy和memset(因为这两个函数来源于库函数,排查优先级较低)。添加成功后点击更新按钮
项目创建成功,问题解决。