Vcast工程创建

发布时间:2024年01月17日

Vcast工程创建

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_FLTGDFLIB_FilterMA暂时不考虑添加memcpymemset因为这两个函数来源于库函数,排查优先级较低)。添加成功后点击更新按钮

  1. memcpy指的是C和C++使用的内存拷贝函数,函数原型为void *memcpy(void *destin, void *source, unsigned n);函数的功能是从源内存地址的起始位置开始拷贝若干个字节到目标内存地址中,即从源source中拷贝n个字节到目标destin中。
  2. memset是计算机中C/C++语言初始化函数。作用是将某一块内存中的内容全部设置为指定的值, 这个函数通常为新申请的内存做初始化工作。
  3. GDFLIB_FilterMAInit_FLT常规数字滤波器库,故障定位测试初始化过滤。
  4. GDFLIB_FilterMA常规数字滤波器库,主报警信号过滤。

项目创建成功,问题解决。

文章来源:https://blog.csdn.net/weixin_59334478/article/details/135659379
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。