-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
High
-
MCAL
-
MCAL-31670
-
MCUSW_J7_11.00.00
-
MCUSW_J7_11.01.00
-
Description:
When we configure only main domain SPI peripherals. We don't use CSIB0 or CSIB1 or CSIB2. Our external device is configured to CSIB3. Since there is no external device configuration for CSIB0 or CSIB1 or CSIB2, in file Spi_PBcfg.c, extDevCfg at index 0 will correspond to CSIB3(with default external device configuration, this issue will not happen since index 0/1/2 will correspond to CSIB0/CSIB1/CSIB2 respectively)
jobObj->extDevCfg =
&drvObj->extDevCfg[jobObj->jobCfg_PC.externalDeviceCfgId];
In Spi_Copyconfig API we have above line. This causes wrong selection of .extDevCfg element.
The external device identifier(externalDeviceCfgId) for the job configuration has been generated incorrectly.
Index of the external device config should be associated with job and not on the HW unit.
Root cause:
Driver config structure member "externalDeviceCfgId" is fetching the hwunit ID from SpiHwUnitAssignment
Workaround:
externalDeviceCfgId value shall be fetched from SpiExternalDeviceId from SpiDeviceAssignment