MCAL and Drivers together

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCAL and Drivers together

Jump to solution
1,179 Views
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 Kudos
Reply
1 Solution
1,163 Views
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

 

 

View solution in original post

0 Kudos
Reply
1 Reply
1,164 Views
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 Kudos
Reply