FRDM-IMX93 not recognizing RPI-CAM-MIPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-IMX93 not recognizing RPI-CAM-MIPI

194 Views
jventura
Contributor I

Hi, i´m trying to make RPI-CAM-MIPI work with the FRDM-IMX93 board.

I followed the user manual for the board:

https://docs.nxp.com/bundle/UM12181/page/topics/camera_module_rpi_cam_mipi.html

I connected the camera as instructed.

I got the ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin from ONSEMI github (https://github.com/ONSemiconductor/ap1302_binaries/tree/main/NXP_i.MX93), renamed it and put it in the board:

root@imx93-11x11-lpddr4x-frdm:~# ls /lib/firmware/imx/camera/
ap1302.fw

I rebooted the camera, but the log wasn´t the same as in the manual:

root@imx93-11x11-lpddr4x-frdm:~# dmesg | grep ap1302
[ 0.341004] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.371040] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 0.411142] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.433309] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.464010] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 0.476107] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.495817] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 2.093316] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 2.104580] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000

and the camera doesn´t seem to appear:

root@imx93-11x11-lpddr4x-frdm:~# media-ctl -p
Failed to enumerate /dev/media0 (-2)
root@imx93-11x11-lpddr4x-frdm:~# v4l2-ctl --list-devices
mxc-isi-cap (platform:4ae40000.isi):
/dev/video0
/dev/video1

root@imx93-11x11-lpddr4x-frdm:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- UU -- -- UU -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx93-11x11-lpddr4x-frdm:~#

I've rechecked everything. I'm stuck. Any ideas what i should try?

0 Kudos
Reply
7 Replies

134 Views
jventura
Contributor I

I´ve attached the photos, but i also checked continuity with a multimeter and it´s ok, the pins on the FRDM are reaching the CAM ones...

0 Kudos
Reply

138 Views
jventura
Contributor I

RPICAMConection.png

Here it is

0 Kudos
Reply

138 Views
jventura
Contributor I

RPICAMConectionBack.png

From the other side 

0 Kudos
Reply

125 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @jventura 

Your connection is wrong, the blue side should be the same as the camera side.

Zhiming_Liu_0-1781136494125.png

 



Best Regards,
Zhiming

0 Kudos
Reply

116 Views
jventura
Contributor I

thanks @Zhiming_Liu 

I checked it so many times, and every time i missed.

 

Anyways, it got better but it seems I still have a problem with the .fw:

root@imx93-11x11-lpddr4x-frdm:~# dmesg | grep ap1302
[ 0.340881] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.370918] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 0.411017] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.433185] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.463890] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 0.475987] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 0.495704] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 2.098808] /soc@0/bus@42800000/csi@4ae00000: Fixed dependency cycle(s) with /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c
[ 2.110107] /soc@0/bus@42000000/i2c@42530000/ap1302_mipi@3c: Fixed dependency cycle(s) with /soc@0/bus@42800000/csi@4ae00000
[ 10.757527] ap1302 2-003c: Direct firmware load for ap1302_ar0144_single_fw.bin failed with error -2
[ 10.757549] ap1302 2-003c: Falling back to sysfs fallback for: ap1302_ar0144_single_fw.bin
[ 10.770396] ap1302 2-003c: Failed to request firmware: -2
[ 10.818467] ap1302 2-003c: probe with driver ap1302 failed with error -2
root@imx93-11x11-lpddr4x-frdm:~# media-ctl -p
Failed to enumerate /dev/media0 (-2)
root@imx93-11x11-lpddr4x-frdm:~#
root@imx93-11x11-lpddr4x-frdm:~# ls /lib/firmware/imx/camera/
ap1302.fw



Is the ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin from ONSEMI github (https://github.com/ONSemiconductor/ap1302_binaries/tree/main/NXP_i.MX93) the correct one?

 

0 Kudos
Reply

66 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @jventura 

ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin is correct one.  Please try below suggestion from reference manual

 

A firmware named ap1302_ar0144_single_fw.bin is needed. Put it under the /lib/firmware folder.

Best Regards,
Zhiming

0 Kudos
Reply

160 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @jventura 

Can you share the photo to show the connection between RPI-CAM-MIPI and FRDM93?

Best Regards,
Zhiming

0 Kudos
Reply