Wrong selection of external id in spi _copyconfig API

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: High
    • MCAL
    • MCAL-31670
    • MCUSW_J7_11.00.00
    • MCUSW_J7_11.01.00
    • Hide
      j7200-evm
      j721e-evm
      j721s2-evm
      j722s-evm
      j742s2-evm
      j784s4-evm
      Show
      j7200-evm j721e-evm j721s2-evm j722s-evm j742s2-evm j784s4-evm

      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

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-5899 - Wrong selection of external id in s...
                SYNCHRONIZED
                • Last Sync Date: