漩涡遨游资料踩坑

Base/include 文件改名

漩涡遨游aa资料-3、新建IAR工程 中,如果按照文档进行,会出现数百个错误:

	Fatal Error[Pe1696]: cannot open source file "Port_MemMap.h"	W:\Davinci\Prototype\DavinciProject\Appl\GenData\include\Port_PBcfg.h	86	
	            searched: "W:\Davinci\Prototype\DavinciProject\Appl\GenData\include\"			
	            searched: "W:\Davinci\Prototype\CBD2300384_D00\ThirdParty\Mcal_S32k\Supply\SW32K3_RTD_4.4_2.0.3\eclipse\plugins\Port_TS_T40D34M20I3R0\include\"			
	            searched: "W:\Davinci\Prototype\DavinciProject\Appl\GenData\src\"			
	            searched: "W:\Davinci\Prototype\DavinciProject\Appl\"			
	            searched: "W:\Davinci\Prototype\DavinciProject\Appl\GenData\"			
	            searched: "W:\Davinci\Prototype\DavinciProject\Appl\GenData\Components\"			
	            searched: "W:\Davinci\Prototype\CBD2300384_D00\ThirdParty\Mcal_S32k\Supply\SW32K3_RTD_4.4_2.0.3\eclipse\plugins\Mcu_TS_T40D34M20I3R0\include\"			
	            searched: "W:\Davinci\Prototype\CBD2300384_D00\ThirdParty\Mcal_S32k\Supply\SW32K3_RTD_4.4_2.0.3\eclipse\plugins\Base_TS_T40D34M20I3R0\header\"			
	            searched: "W:\Davinci\Prototype\CBD2300384_D00\ThirdParty\Mcal_S32k\Supply\SW32K3_RTD_4.4_2.0.3\eclipse\plugins\Base_TS_T40D34M20I3R0\include\"			

(以 Port_MemMap.h 为例)

这时需要在 CBD2300384_D00\ThirdParty\Mcal_S32k\Supply\SW32K3_RTD_4.4_2.0.3\eclipse\plugins\Base_TS_T40D34M20I3R0\include 中将 _Port_MemMap.h 改为 Port_MemMap.h

该操作在 漩涡遨游aa资料-4、添加PortDio模块 中提及。

PlatformType / StandardType 报错

漩涡遨游aa资料-3、新建IAR工程 配置中,如果遇到任何关于 PlatforeType 和 StandardType 文件相关的报错,利用下划线屏蔽掉所有 Davinci CFG Components 中的文件,用 CBD2300384_D00\ThirdParty\Mcal_S32k\Supply\SW32K3_RTD_4.4_2.0.3\eclipse\plugins\Base_TS_T40D34M20I3R0\include 中的文件。

DBC 文件导入之后 CFG 不提示更新

查看该地址是否正确

程序卡死在 Os_Hal_ContextResume

程序卡死在:

FUNC(OS_HAL_NOINLINE viod, OS_CODE) Os_Hal_ContextSwitch
(
	P2VAR(Os_Hal_ContextType, AUTOMATIC, OS_VAR_NOINIT) Current,
	P2CONST(Os_Hal_ContextType, AUTOMATIC, OS_VAR_NOINIT) Next
)
{
	/* #10 Suspend Current. */
	Os_Hal_ContextSUspend(Current);
	
	/* #20 Resume Next. */
	Os_Hal_ContextResume(Next, &(Current->Sp));
}
  • 一个可能的原因是 Mcu 模块中 CAN Peripherals 时钟没开。
  • 另一个可能的原因是 BSW Management -> Auto Configuration:Module Initialization 中的 PduR_PreInit 没有开启。

Last modified: 2026-05-24