imx8mm mipi camera csis crc error, ecc error

cancel
Showing results for 
Search instead for 
Did you mean: 

imx8mm mipi camera csis crc error, ecc error

433 Views
Contributor III

Hello Guys,

I am using imx8mm with an mipi camera gc2145. Now camera is tramitting signals to imx8mm. I checked the status register of imx8mm mipi csi. Add debug code to read and print the value of Interrupt source register 0 (MIPI_CSI_INTERRUPT_SOURCE_0) in mxc_mipi_csi.c, function "mipi_csis_irq_handler()".

After insmod camera driver module, use following command to capture image:

gst-launch-1.0 v4l2src ! jpegenc quality=50 ! filesink location=sample-gc1.jpeg

then following errrors show:

# gst-launch-1.0 v4l2src ! jpegenc quality=50 ! filesink location=sample-gc1.jpeg
Setting pipeline to PAUSED ...
[ 38.846940] [debug_xq] mipi_csis_enum_mbus_code
Pipeline is live and does not nee[ 38.853296] [debug_xq] mipi_csis_enum_mbus_code
[ 38.860843] [debug_xq] mipi_csis_enum_framesizes
d PREROLL ...
Setting pipeline t[ 38.865603] [debug_xq] mipi_csis_enum_frameintervals
o PLAYING ...
New clock: GstSyst[ 38.873503] [debug_xq] mipi_csis_enum_frameintervals
emClock
[ 38.881430] [debug_xq] mipi_csis_enum_frameintervals
[ 38.887243] [debug_xq] mipi_csis_enum_framesizes
[ 38.891982] [debug_xq] mipi_csis_enum_frameintervals
[ 38.897056] [debug_xq] mipi_csis_enum_frameintervals
[ 38.902162] [debug_xq] mipi_csis_enum_frameintervals
[ 38.907255] [debug_xq] mipi_csis_enum_framesizes
[ 38.911981] [debug_xq] mipi_csis_enum_framesizes
[ 38.917024] [debug_xq] mipi_csis_set_fmt
[ 38.921061] [debug_xq]mf->code:8200, fmt->colorspace:7 fmt:ffff000000dc20f0
[ 38.928061] [debug_xq]capturemode:0x1, mf->width:1600, mf->height:1200
[ 38.934641] [debug_xq] mipi_csis_g_parm
[ 38.938596] [debug_xq] mipi_csis_s_parm
[ 38.997722] mipi_csis_s_stream: 1, state: 0x1
[ 39.002114] mipi_csis_set_params: state: 0x1
[ 39.006518] [debug_xq] __mipi_csis_set_format
[ 39.011006] [debug_xq] __mipi_csis_set_format: fmt: 0x2008, 1600 x 1200
[ 39.017704] gc2145_mipi 2-003c: s_stream: 1
[ 39.021920] [debug_xq] s_stream: 1
[ 39.025329] stream on!
[ 39.035622] [debug_xq] CRC Error: 1
[ 39.039112] [debug_xq] Frame Start: 1
[ 39.042772] [debug_xq] status: 01000002
[ 39.046626] [debug_xq] ECC Error: 1
[ 39.050112] [debug_xq] status: 00000004
[ 39.054041] [debug_xq] ECC Error: 2
[ 39.057528] [debug_xq] status: 00000004
[ 39.061384] [debug_xq] CRC Error: 2
[ 39.064871] [debug_xq] status: 00000002
[ 39.068722] [debug_xq] ECC Error: 3
[ 39.072208] [debug_xq] status: 00000004
[ 39.076059] [debug_xq] CRC Error: 3
[ 39.079545] [debug_xq] status: 00000002
[ 39.083394] [debug_xq] ECC Error: 4
[ 39.086881] [debug_xq] status: 00000004
[ 39.097006] [debug_xq] ECC Error: 5
[ 39.100496] [debug_xq] status: 00000004
[ 39.104356] [debug_xq] ECC Error: 6
[ 39.107844] [debug_xq] status: 00000004
[ 39.111701] [debug_xq] CRC Error: 4
[ 39.115188] [debug_xq] status: 00000002
[ 39.119036] [debug_xq] ECC Error: 7
[ 39.122523] [debug_xq] status: 00000004
[ 39.126430] [debug_xq] ECC Error: 8
[ 39.129922] [debug_xq] status: 00000004
[ 39.133792] [debug_xq] ECC Error: 9
[ 39.137283] [debug_xq] CRC Error: 5

.......

I have used the same gst command to capture image with ov5640 on imx8mm EVK board.

In my understanding: camera image signal is transmitted into the imx8mm, but errors happens during decode the image frame.

What will cause the CRC and ECC error?

Any help will be appreciated.

Thank you in advance.

Best Regards,

Xiao

Labels (1)
0 Kudos
4 Replies

80 Views
Contributor I

Hi Xiao:

I used the same camere with u. But I have not got the gc2145 driver code . Can you share your driver code to me ?

0 Kudos

80 Views
NXP TechSupport
NXP TechSupport

Hi Qiang

first, CRC and ECC error can be caused by poor signal, noise or low level

so one can check hardware using i.MX 8M Mini Hardware Developer’s Guide

Also one can check Explenation for HS-SETTLE parameter in MIPI CSI D-PHY registers 

https://community.nxp.com/message/1128143?commentID=1128143#comment-1128143 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

80 Views
Contributor III

Hi Igo,

Thank you for your quick reply. I will check the link first.

Best Regards,

Xiao

0 Kudos

80 Views
Contributor III

Hi Xiao,

I'm having almost exactly same problem with you. Did you find the root cause of the CRC and ECC errors on your board ?

Have a nice day,

Efe

0 Kudos