Hi @EdwinHz,
Thank you for your continued support. I have been running the freertos_lpi2c_cm7 example on my board, modified to run in a continuous loop, and it has not failed after running for over 24 hours.
I have also been running the lpi2c_polling_b2b_master_cm7 example, modified to read from the most problematic slave device on the bus, and that has also not failed after running for over 24 hours.
I am still unable to understand how, on my own project, the LPI2C peripheral can just stop transmitting halfway through a transmission via a software bug, so my next idea is that there could be a different fault with my board and that the I2C transmission stopping is merely a symptom. My project uses more features of the chip than those examples, in particular the video output and the SDRAM, so any problems with those will affect my project but not the example projects.
My problem also happens a lot more frequently on some of my boards than others, which again suggests it could be a hardware issue. (The board I'm using for my testing is one where it happens frequently)
Could the cause be SDRAM related? Is there a good SDRAM test example available? My board has the same SDRAM as the evaluation board but the pair of SDRAM chips is rotated 90 degrees compared to the evaluation board so one is about 30mm further away from the iMXRT1170 than the other, whereas on the evaluation board both the chips are the same distance away from the NXP chip. The signal integrity of my board's routing may therefore not be as good as the evaluation board.
Can insufficient or incorrect decoupling capacitors cause it?