MCAL and Drivers together

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCAL and Drivers together

跳至解决方案
1,191 次查看
psarkar
Contributor III

Can I use both Lpspi driver (non-autosar) and Spi (autosar) MCAL in the same project? For instance, can I use Lpspi driver functions for LPSPI5 and Spi MCAL functions for other LPSPI (except 5), or is it going to create conflicts in trying to configure both in one main.c?

0 项奖励
回复
1 解答
1,175 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@psarkar

Some limitations of mixing MCAL and Driver

1.It is forbidden to use the same hardware instance in HLD and LLD (E.g. if SPI1 is used in HLD context, it cannot be used also through IPL)

2.IP layer doesn’t provide Tresos configuration. It can be configured only on Design Studio (CT).

3.IP layer cannot be used in Autosar applications, as it does not satisfy ASR compliance constraints (DEM, DET, Multicore). IP layer should not be seen as a CDD.

 

for example,you can use SPI5 at the MCAL layer and SPI4 at the driver layer. This will not cause an error when configuring using S32 DS, but this is actually not in compliance with the specification. 

So it is not recommended to do this

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,176 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@psarkar

Some limitations of mixing MCAL and Driver

1.It is forbidden to use the same hardware instance in HLD and LLD (E.g. if SPI1 is used in HLD context, it cannot be used also through IPL)

2.IP layer doesn’t provide Tresos configuration. It can be configured only on Design Studio (CT).

3.IP layer cannot be used in Autosar applications, as it does not satisfy ASR compliance constraints (DEM, DET, Multicore). IP layer should not be seen as a CDD.

 

for example,you can use SPI5 at the MCAL layer and SPI4 at the driver layer. This will not cause an error when configuring using S32 DS, but this is actually not in compliance with the specification. 

So it is not recommended to do this

 

 

0 项奖励
回复