MCAL and Drivers together

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCAL and Drivers together

ソリューションへジャンプ
1,348件の閲覧回数
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,332件の閲覧回数
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,333件の閲覧回数
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 件の賞賛
返信