Hi @durga_choudhury
Thank you for sharing the images along with the additional information.
As you may know, the SpiHWUnit parameter is related to the number of SpiPhyUnits. The order in which the SpiPhyUnits are added determines the CSIB index used. For example, SpiPhyUnit_0 corresponds to CSIB0.
The reason why the SpiHWUnit dropdown shows a list of five options is that this reused the configuration from the MCAL SPI driver. In the MCAL implementation, you can configure both the LPSPI hardware and the SPI interface emulated through FlexIO. In contrast, the IP-level configuration separates these into two different drivers: Lpspi and Flexio_Spi. You can confirm this by comparing the SpiPhyUnitMapping dropdown in both SPI and Lpspi drivers.
Lastly, regarding the two errors shown
- Error occurs when, for example, you create two SpiPhyUnits and assign them to specific SpiExternalDevices, but later delete one of the SpiPhyUnits without removing the corresponding SpiExternalDevice. ConfigTools then reports an error because a required referenced configuration no longer exists.
- As you mentioned, the S32K148 device contains only three LPSPI instances. If you select CSIB3 or CSIB4 in the SpiHWUnit parameter within the IP driver, the tool will fail because these entries correspond to configurations intended for the FlexIO‑emulated SPI, which is not integrated in this driver, as explained earlier.