In AUTOSAR_MCAL_TMS570LSx-05.30.00, When the SpiEnableCs option is disabled in the configuration, it's also not reflected in the generated files. I have to manually place "SPI_NO_CHIP_SELECT" instead of the generated "SPI_SCSx" in the Spi_PBcfg.c
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In AUTOSAR_MCAL_TMS570LSx-05.30.00, When the SpiEnableCs option is disabled in the configuration, it's also not reflected in the generated files. I have to manually place "SPI_NO_CHIP_SELECT" instead of the generated "SPI_SCSx" in the Spi_PBcfg.c
Hi Vishwanath,
I will answer on behalf of Prathibha.
Yes, we are referring to configuration parameter "SpiEnableCs". We disabled the checkbox in the configuration tool (see picture below), but to no avail.
The generated Spi_PBcfg.c still contains the value of the SpiCsIdentifier:
I can see from your Spi_Dlc.c that your SPI Driver does support disabling of the Chip Select Handling (otherwise, it would violate some AUTOSAR requirements).
So, if I manually paste "SPI_NO_CHIP_SELECT" into the Spi_PBcfg.c, then the driver will not handle the Chip Select - just as expected.
The question is: Why won't the generator place the value "SPI_NO_CHIP_SELECT", when SpiEnableCs is configured to FALSE?
Hi Vishwanath,
configuration parameter SpiEnableCs is specified by AUTOSAR (see SWS Item SPI212_Conf in Specification of SPI Handler/Driver, AUTOSAR Release 4.0). According to your statement, configuration of this parameter is not supported in Texas Instruments AUTOSAR MCAL 05.30.00.
Best Regards,
Reinhard Saller