Facing issue while LVGL task and SPI task is running , the Data is lost if the LVGL task is running . if LVGL task is commented the SPI doesn't have a dataLoss . The SPI is running at 2 MHZ , We are using LPSPI_SlaveTransferNonBlocking() .
the SPI peripheral is configured as Transfer.
Hi,
It is a reasonable avice to increase your SPI task's priority above LVGL's, or optimize LVGL's performance (e.g., reduce refresh rate, simplify UI), and ensure no critical sections in LVGL are disabling interrupts for too long.
Hi,
Please refer to the offical lvgl examples to see if there are some performance issues based on the same hardware.
Also, you can find how to improve performance if you use NXP GUI Guider tools for developement.
by reducing Clock Speed it works better ,but 2 mhz is needed for our use case , any other suggestions, i tried reducing refresh rate and there is not much of difference
Hello!
Your SPI data loss when LVGL is running, but not when LVGL is commented out, strongly indicates resource contention or CPU starvation. The LVGL task is likely consuming too many CPU cycles, preventing your SPI task or its interrupt service routine (ISR) from processing LPSPI_SlaveTransferNonBlocking() completions promptly. Increase your SPI task's priority above LVGL's, optimize LVGL's performance (e.g., reduce refresh rate, simplify UI), and ensure no critical sections in LVGL are disabling interrupts for too long. Temporarily reducing SPI clock speed can also help confirm if it's a throughput bottleneck.