NXP Team:
I am going to debug the SPI communication of S32K144, there is a little problem, SPI can send data, but there is no reply from the peripheral chip. SPI EB is as follows:
1. Port port configuration
2. Mcu clock using SOSC, bifurcated, 4 MHz
3. SPI Chanmel configuration:
4. external device configuration:
5. Phy Unit configuration:
6. SPI interrupt configuration:
Code in the S32DS project:
Other ways to verify:
1. Use STM32 to drive W25Q128 chip, can be used normally, to rule out chip problems
2. S32K144's SIN and SOUT are directly connected, and data is sent and received without any problem.
3. No other SPI peripheral chips are available for cross-validation.
I've tried various methods so far, but I'm still looking for guidance from the NXP team or other engineers.
You are right, CPHA is misconfigured. It's currently communicating on the peripheral
Hi.
Please use a logic analyzer and compare the SPI waveforms of STM32 and S32K144. Configure the MCAL based on the waveforms of the STM32 successfully communicating.
Please check if the SPI mode configuration is the same:
SpiDataShiftEdge: TRAILING(CPHA=0) LEADING(CPHA=1)
ShiftClockIdleLevel: HIGH(CPOL=1) LOW(CPOL=0)
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION " button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------