I'm seeing an issue where adding LPSPI1 as (SPI Master) to my S32K344 project results in the MISO input not properly configured for input.
The generated code in the pin config shows inputBuffer as PORT_INPUT_BUFFER_NOT_AVAILABLE, which means the IMCR does not get set to the correct value during Siul2_Ip_PortInit()
{
.base = IP_SIUL2,
.pinPortIdx = 29u,
.mux = PORT_MUX_AS_GPIO,
.safeMode = PORT_SAFE_MODE_NOT_AVAILABLE,
.inputFilter = PORT_INPUT_FILTER_NOT_AVAILABLE,
.pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,
.pullKeep = PORT_PULL_KEEP_NOT_AVAILABLE,
.invert = PORT_INVERT_NOT_AVAILABLE,
.inputBuffer = PORT_INPUT_BUFFER_NOT_AVAILABLE,
.outputBuffer = PORT_OUTPUT_BUFFER_NOT_AVAILABLE,
.adcInterleaves = { MUX_MODE_NOT_AVAILABLE, MUX_MODE_NOT_AVAILABLE },
.inputMuxReg = {
239u
},
.inputMux = {
PORT_INPUT_MUX_ALT4,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT,
PORT_INPUT_MUX_NO_INIT
},
.initValue = 2u
},
There are no warnings or errors generated, but I only see any input of 0x00 on the LPSPI Rx FIFO.
If I manually change .inputBuffer = PORT_INPUT_ENABLED then I am able to see input data on the Rx FIFO.
Is there some conflict I'm unaware of that is preventing .inputBuffer from getting set to the correct value?
I've tried to remove the LPSPI pin configuration and re-add it, but it does not change these values.