【简介】
S32K3 系列的芯片功能安全的相关的驱动是不包含在RTD驱动库中的,NXP是独立释放的SPD (safety peripheral driver )软件包。SPD 的软件吧可以从NXP 官网如下路径下载:https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-STDSW-D下载安装后我们就可以在S32DS 的config tool 环境下配置SPD的驱动了。安装完成后就可以在S32DS 的config tool 中看到SPD的驱动配置项目了。

SPD的驱动中将SPD的外设驱动使用的区域进行了管理这些区域的配置在RTD的驱动中是不存在这些需要用户自行添加,以下是
Bist_MemMap.h 中定义的部分section.
#ifdef BIST_START_SEC_CONFIG_DATA_8 /** * @file Bist_MemMap.h * @violates @ref Bist_MemMap_h_REF_1 */ #undef BIST_START_SEC_CONFIG_DATA_8 /** * @file Bist_MemMap.h * @violates @ref Bist_MemMap_h_REF_1 */ #undef MEMMAP_ERROR #pragma ghs section rodata=".s32_saf_const_cfg" #endif #ifdef BIST_STOP_SEC_CONFIG_DATA_8 /** * @file Bist_MemMap.h * @violates @ref Bist_MemMap_h_REF_1 */ #undef BIST_STOP_SEC_CONFIG_DATA_8 /** * @file Bist_MemMap.h * @violates @ref Bist_MemMap_h_REF_1 */ #undef MEMMAP_ERROR #pragma ghs section #endif #ifdef BIST_START_SEC_CONFIG_DATA_16 /** * @file Bist_MemMap.h * @violates @ref Bist_MemMap_h_REF_1 */ #undef BIST_START_SEC_CONFIG_DATA_16 /** * @file Bist_MemMap.h * @violates @ref Bist_MemMap_h_REF_1 */ #undef MEMMAP_ERROR #pragma ghs section rodata=".s32_saf_const_cfg" #endif
以下是对对应的section 的定义说明。

使用SPD 驱动前我们需要修改link 文件把依赖的section 添加到对应的link file 中,以下是link file 的修改说明。

以下是link 文件的修改



我要赚赏金
