Hello All, We have a MIPI CSI Camera OV5640 and Ixora and Apalis Imx8!! I’m looking into checking the state of the Imx8 MIPI CSI Registers when I run gstreamer pipeline at userspace:
Is there a standard command(s) to find out MIPI CSI status register?
I want to check MIPI status register at runtime userpace, such as: a. ECC and CRC Error Status Register b. IRQ Status Register c. ErrSot HS Status Register d. ErrSotSync HS Status Register e. ErrEsc Status Register f. ErrSyncEsc Status Register g. ErrControl Status Register
memtool is a tool for reading and writing registers in user space, similar to linux devmem.You can find discussion and usage on this topic in the community.
Thank you for your answer. I cant find some example for that ,right i dont have their physical register addrese !! Can you guide me, if i want to write CSI block Register Status in the driver ,where can i do that?? in the /kernel-source/drivers/staging/media/imx/imx8-mipi-csi2.c/imx8-mipi-csi2.c( mxc_mipi_csi2_reg_dump(csi2dev) )
You have to identify the registers that you want to read on the reference manual of your processor, after that you have to use the memtool with the next command:
To read:
./memtool [-8 | -16 | -32] <phys addr> <count>
To write: ./memtool [-8 | -16 | -32] <phys addr>=<value>
Note:
[-8,-16,-32] -> is the size of the register you can consult the size of the register in the reference manual. <phys addr> -> the address of the register that you want to write/read <count> -> the spaces that you want to read <value> -> the value to write in the register