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?
Solved! Go to Solution.
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
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