Hi,
I am facing an unusual issue with chipselect on ecspi2 staying active for an extended period of time even after transaction is complete.
This issue occurs on ecspi2 SPI controller talking to MCP2515 SPI device.
Here is my device tree
Any suggestions as to what might be going on?
Thank You,
Naveen
Hi Aldo,
I am using IMX8MM with BSP-Yocto-NXP-i.MX8MM-PD22.1.0.
I came across an interesting observation - If I increase the CPU load or even shut off couple of cores this issue almost disappears. But we do need to get the bottom of this. Any help will be appreciated.
Thank You,
Naveen
Hello,
This may be happening due to the module expect the TXFIFO to be filled to continue with the burst transfer.
This is configured in the ECSPIx_CONFIGREG(SS_CTL)[11-8], when set In master mode - Negate Chip Select (SS) signal between SPI bursts. Multiple SPI bursts will be transmitted. The SPI transfer will automatically stop when the TXFIFO is empty.
Please refer to the reference manual chapter 10.1.2.4.1.3 Master Mode with SS_CTL[3:0] Control.
Best regards,
Aldo.
Hello,
Could you share the exact i.MX8 that you’re using for your test?
Also, which BSP version are you working with?
Saludos,
Aldo.