Page 1 of 1

MIPI Errors explanation

Posted: 2025-06-23 19:11
by luckfox_prototyper
Hello!

I've encountered a very specific error when trying to capture image with Core1106 module. It captures the image with opencv maybe once or twice, then I'm unable to obtain a fresh image from SC3338 camera. Our software requires the camera to obtain a fresh image every 5 minutes or so (or sometimes it's triggered by hand) but it's not a stream - it's individual camera image capture. I found this errors in my /var/log/messages which I don't know what would cause them.

Code: Select all

[ 3331.987977] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16536
[ 3331.988004] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3331.988015] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3331.988032] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16538
[ 3332.016159] mipi-csi2-hw ERR1:0x1000 (err_data,vc: 0)
[ 3332.017722] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x0, lastline:0x0, cnt 16538
[ 3332.143476] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.143505] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16539
[ 3332.143960] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.147110] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.147171] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.147535] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.149476] mipi-csi2-hw ERR1:0x1000 (err_data,vc: 0)
[ 3332.155537] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.155587] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.155642] rkcif-mipi-lvds: ERROR: csi size err, intstat:0x80000, size:0x51008bc,0x0,0x0,0x0, cnt 351
[ 3332.182818] mipi-csi2-hw ERR1:0x1000 (err_data,vc: 0)
[ 3332.184373] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x0, lastline:0x0, cnt 16540
[ 3332.335075] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335110] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335128] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16541
[ 3332.335182] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335325] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335339] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16542
[ 3332.335804] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335854] rkcif-mipi-lvds: ERROR: csi size err, intstat:0x1080000, size:0x5100900,0x0,0x0,0x0, cnt 352
[ 3332.335863] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335926] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335941] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.335962] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16544
[ 3332.339438] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3332.339468] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16545
[ 3332.349485] mipi-csi2-hw ERR1:0x1000 (err_data,vc: 0)
[ 3333.225998] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16546
[ 3333.226012] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226040] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226067] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226083] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226107] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226127] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226144] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16549
[ 3333.226183] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226202] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16551
[ 3333.226209] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226232] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226256] rkcif-mipi-lvds: ERROR: csi size err, intstat:0x1000000, size:0x51008fc,0x0,0x0,0x0, cnt 353
[ 3333.226265] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x1000000, lastline:0x0, cnt 16552
[ 3333.226277] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226305] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226316] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16556
[ 3333.226329] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226354] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226371] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16559
[ 3333.226382] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226405] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226420] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16560
[ 3333.226426] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226452] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16562
[ 3333.226470] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226524] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226538] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16565
[ 3333.226552] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226569] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226581] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16567
[ 3333.226598] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226624] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226636] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16571
[ 3333.226649] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226698] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226715] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16573
[ 3333.226721] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226745] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226770] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226797] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226809] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16575
[ 3333.226824] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226842] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226891] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226917] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226935] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16576
[ 3333.226941] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.226968] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16577
[ 3333.226988] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3333.249500] mipi-csi2-hw ERR1:0x1000 (err_data,vc: 0)
[ 3337.146970] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.146998] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.147021] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16578
[ 3337.147365] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.147411] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.147731] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.147754] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.147905] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.147921] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16579
[ 3337.147952] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148122] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148211] rkcif-mipi-lvds: ERROR: csi fifo overflow, intstat:0x80000, lastline:0x0, cnt 16580
[ 3337.148225] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148294] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148367] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148687] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148760] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148783] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.148833] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.149028] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.149323] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[ 3337.149396] mipi-csi2-hw ERR1:0x1000000 (crc,vc: 0)
If anyone has encountered them before or has any idea what could cause them, please let me know 🙏

Re: MIPI Errors explanation

Posted: 2025-06-24 2:12
by Crocodile
Hello, we haven't encountered the "ERROR: csi fifo overflow" issue ourselves, so I can only help troubleshoot based on experience.

In general, an "ERROR: csi size err" usually indicates an unstable connection or an excessively high data rate. In such cases, it's important to check whether the PCB layout and ribbon cable connections are stable, and to consider adjusting the relevant clock settings.

However, since you're not seeing that particular error, you can probably rule out hardware layout or clock configuration issues for now. It's more likely a software configuration problem. I recommend first verifying whether you can successfully capture raw images using v4l2-ctl.

Re: MIPI Errors explanation

Posted: 2025-06-26 20:31
by luckfox_prototyper
Hello,

actually, we believe it is some sort of combination of hw issues. A bit of low-end camera module and not the best cable connecting the board. However, while fixing that issue we figured out we can avoid it, by closing and opening camera (cap.open(0) in opencv) everytime we need to take a photo. We need a photo every few minutes so that is actually quite a big deal when it comes to power usage. But after every few images the board completely freezes. The logs stop and I need to manually reset the board to gain access to it again. I think while closing the isp stream something majorly crashes under the hood which stops the whole board. The last entry I can see is "start stopping the isp" or something similar, which indicates that the ISP flow should stop, but doesn't 🫤

I'm now searching for a solution on how to close it properly so that we don't hit this bug.

Re: MIPI Errors explanation

Posted: 2025-12-28 23:55
by luckfox_prototyper
Hello

As an update to this topic, we're still searching for a solution to the original problem when the MIPI will drop images. The current idea is to lower the clock settings for the camera and the communication on the sensor to stabilize the system since we only do individual images (not the full stream). We are not really sure which setting to change to correctly lower the clock and stabilize the transport of the data. We are still encountering the csi overflow issue so we want to stabilize the transport as low as possible. With shielded cable the issue does seem to be less frequent but it still happens. Can you point us in a direction how to stabilize this communication between the RV1106 and the camera SC3336?

Re: MIPI Errors explanation

Posted: 2025-12-29 6:55
by Crocodile
We also have no development experience for this usage scenario. If the shielding line can improve the situation, it might be caused by the layout.
If there are no requirements for frame rate, you can try changing the driver of sc3336 to use the 25fps mode, reducing the speed of the PHY to gain stability.