Part Number: TMS570LS3137
In AUTOSAR_MCAL_TMS570LSx-05.30.00, The “Channels to Job” assignments are always generated in a fixed order, regardless of the configured order in the DaVinci Configurator Project. Currently, this only affects SPI communication with the Flash IC because this is the only external device for which multiple SpiChannels are assigned to one SpiJob.
The Generated code should follow the order of the configuration.
Required order of the channels in the Job:
static CONST(Spi_ChannelType, SPI_PBCFG) SpiChannelsToJob14_Assignment_at[] =
{
/* Number of Channels in Job */
2U,
/* Channels in Job */
Spi_SpiChannel_FLS_Data,
Spi_SpiChannel_FLS_Header
};
Generated Order:
static CONST(Spi_ChannelType, SPI_PBCFG) SpiChannelsToJob14_Assignment_at[] =
{
/* Number of Channels in Job */
2U,
/* Channels in Job */
Spi_SpiChannel_FLS_Header,
Spi_SpiChannel_FLS_Data
};