Part Number: TMS570LS3137
Using the AUTOSAR_MCAL_TMS570LSx-05.30.00. The Issue is related to the Port Configuration for the SPI5. A Peripheral device is connected to MIBSPI5. The following pins are used
MIBSPI5SIMO[0](Pin99), MIBSPI5SOMI[0](Pin 98), MIBSPI5CLK(Pin100), MIBSPI5NCS[0](Pin 32). These Port Pins are set to SPI mode in the Port Configuration.
Checked the generated code of Port_Pbcfg.c for the SPI5 Port pins. If PortPinSpi5_10( MiBSPI5SOMI0) is set to Mode SPI in the Port Configuration, SPIPC0 bit 24 is set.
If PortPinSpi5_6(MiBSPI5SIMO0) is set to Mode SPI in the Port Configuration, SPIPC0 bit 16 is set.
But for all the other SPI ports like eg., SPI3 if the PortPinSpi3_8(MiBSPI3SIMO) SPIPC0 bit 10 is set and PortPinSpi3_9 ( MiBSPI3SOMI ) SPIPC0 bit 11 is set for the SPI Mode.
Why only for SPI5, bit 16 and 24 are set for SIMOFUN0 and SOMIFUN0? I tested with setting bit 10 and 11 in the Port_PBcfg.c then the SPI5 works.
Please check the generated code for the Port for the SPI5.
