Question about ov10640-s32v234-sbc

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

Question about ov10640-s32v234-sbc

1,111 Views
435761040
Contributor II

I applied the OV10640 quad camera after changing the graph according to the demo of the OV10635 four cameras.
After the compilation is executed, I2C0 reads 0x30 failed message.

root@s32v234sbc:~# ./init_demo.elf
Press Ctrl+C to terminate the demo.
Framebuffer mapped at 0x7f8456b000 1606.303576] Probing I2c client @ 0x6a on I2C bus #0.
[ 1606.308785] Generic camera I2c driver added successfully.
[ 1606.313910] Probing I2c client @ 0x40 on I2C bus #0.
[ 1606.319043] Probing I2c client @ 0x30 on I2C bus #0.
[ 1606.448222] Probing I2c client @ 0x41 on I2C bus #0.
[ 1606.453693] Probing I2c client @ 0x31 on I2C bus #0.
[ 1606.462686] Probing I2c client @ 0x42 on I2C bus #0.
[ 1606.468119] Probing I2c client @ 0x32 on I2C bus #0.
[ 1606.476458] Probing I2c client @ 0x43 on I2C bus #0.
[ 1606.481839] Probing I2c client @ 0x33 on I2C bus #0.
[ 1606.490239] Probing I2c client @ 0x44 on I2C bus #0.
[ 1606.495272] Probing I2c client @ 0x34 on I2C bus #0.
[ 1606.504080] LinuxI2cRead16:read reg error:reg=300a,val=0
[ 1606.509058] /home/calmcar-maker/disk2/NXP/S32DS/s32v234_sdk/libs/isp/cam_generic/kernel/build-v234ce-gnu-linux-d/../src/cam_ioctl.c: 438/ReadRegSingle : [Error]: Failed to read from I2C address 0x3000.

Then I found cam_ioctl.c
There is no related configuration of maxim ov10640

break;

//***********************************************************************
// *** Maxim MipiCam Start/Stop ***

//***********************************************************************
// *** OV10635 Viu ***

//***********************************************************************
// *** Maxim OV10640 ***

//***********************************************************************
// *** OV10640 MipiCam ***
case IOCTL_OV10640_CONNECT:
if(OV10640_DRV_Setup((CamI2cClient_t)aIoctlParam))
{
VDB_LOG_ERROR("Failed to connect Sony camera.\n");
lRet = CAM_DRV_FAILURE;
} // if failed to read the data
break;

case IOCTL_OV10640_DISCONNECT:
if(OV10640_DRV_Close((CamI2cClient_t)aIoctlParam))
{
VDB_LOG_ERROR("Failed to disconnect Sony camera.\n");
lRet = CAM_DRV_FAILURE;
} // if failed to read the data
break;
//***********************************************************************

default:
VDB_LOG_WARNING("Unknown ioctl command.\n");
lRet = printk("Unknown ioctl command.\n");

lRet = -ENOTTY;
break;

I2C reads 0x30 error, is it related to this configuration?
If so, where should I find a reference for this configuration?

0 Kudos
2 Replies

707 Views
KushalShahNXP
NXP Employee
NXP Employee

Hi,

This is not the correct community to post S32V2 questions. 

Moreover, we have stopped supporting S32V2 community group. But we still support S32V2 question using our ticketing system.

For future questions, please create the request at www.nxp.com/support using Support Requests option. Our experts will help you.

 

Thank you for understanding.

 

Regards,

Kushal

0 Kudos

707 Views
435761040
Contributor II

Is my guess correct? Can someone help me with this?
This is my Linux version and I2C

Linux s32v234sbc 4.1.26-rt29-dirty #3 SMP PREEMPT Mon Aug 27 13:59:00 CST 2018 aarch64 aarch64 aarch64 GNU/Linux

root@s32v234sbc:~# i2cdetect -r -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- 24 -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- --
40: 40 41 -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- --
70: -- -- -- -- -- -- -- --

0 Kudos