Murata-MEMS / murata-sensor-driver

0 stars 0 forks source link

sch1633 init failed #1

Open liwang54321 opened 1 week ago

liwang54321 commented 1 week ago

Hi @mikkopyn : I ported your driver, but the driver init reported an error, show status check error, what is the cause of this error? Thank you, the imu model is sch1633

root@acu:/home/jd# modprobe sch16xx
[   43.551693] sch16xx spi0.0: sch16xx_read_single: request: 0f0800000092 resp: 079600001749
[   43.871468] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   43.871519] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   43.871569] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600f8b0dd
[   43.871944] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   43.871992] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   43.872364] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   43.872411] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   43.872767] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   43.872813] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   43.872860] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   43.883472] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   43.883537] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   43.883618] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600fcb4b4
[   43.883686] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   43.884067] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   43.884136] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   43.884532] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   43.884601] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   43.884992] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   43.885050] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   43.885449] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   43.885451] iio iio:device0: Status register 0x14 = 0xff00
[   43.885853] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   43.885920] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600fdb45d
[   43.885921] iio iio:device0: Status register 0x16 = 0xfdb4
[   43.886300] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   43.886302] iio iio:device0: Status register 0x17 = 0xffd8
[   43.886369] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   43.886370] iio iio:device0: Status register 0x18 = 0xffbf
[   43.886433] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   43.886435] iio iio:device0: Status register 0x19 = 0xffbf
[   43.886828] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   43.886830] iio iio:device0: Status register 0x1a = 0xffbf
[   43.886892] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   43.886894] iio iio:device0: Status register 0x1b = 0xff78
[   43.886956] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   43.886957] iio iio:device0: Status register 0x1c = 0xff78
[   43.887016] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   43.887017] iio iio:device0: Status register 0x1d = 0xff78
[   43.887018] iio iio:device0: Fault in status registers, start attept 1.
[   44.191470] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   44.191848] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   44.191897] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600f8b0dd
[   44.191944] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   44.191996] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   44.192357] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   44.192407] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   44.192770] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   44.192817] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   44.192864] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   44.203473] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   44.203541] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   44.203609] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600fcb4b4
[   44.203995] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   44.204062] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   44.204441] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   44.204508] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   44.204877] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   44.204943] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   44.205318] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   44.205380] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   44.205381] iio iio:device0: Status register 0x14 = 0xff00
[   44.205760] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   44.205822] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600fdb45d
[   44.205824] iio iio:device0: Status register 0x16 = 0xfdb4
[   44.206203] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   44.206205] iio iio:device0: Status register 0x17 = 0xffd8
[   44.206261] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   44.206263] iio iio:device0: Status register 0x18 = 0xffbf
[   44.206655] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   44.206657] iio iio:device0: Status register 0x19 = 0xffbf
[   44.207040] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   44.207042] iio iio:device0: Status register 0x1a = 0xffbf
[   44.207421] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   44.207423] iio iio:device0: Status register 0x1b = 0xff78
[   44.207815] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   44.207817] iio iio:device0: Status register 0x1c = 0xff78
[   44.208193] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   44.208194] iio iio:device0: Status register 0x1d = 0xff78
[   44.208196] iio iio:device0: Fault in status registers, start attept 2.
[   44.511469] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   44.511523] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   44.511898] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600f8b0dd
[   44.511947] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   44.512322] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   44.512369] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   44.512417] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   44.512466] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   44.512831] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   44.512881] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   44.523459] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   44.523527] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   44.523921] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600fcb4b4
[   44.523987] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   44.524369] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   44.524433] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   44.524497] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   44.524561] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   44.524619] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   44.524683] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   44.525128] sch16xx spi0.0: sch16xx_read_single: request: 05080000001c resp: 029600ff00d5
[   44.525129] iio iio:device0: Status register 0x14 = 0xff00
[   44.525533] sch16xx spi0.0: sch16xx_read_single: request: 0548000000eb resp: 02b600ffff7b
[   44.525596] sch16xx spi0.0: sch16xx_read_single: request: 0588000000dd resp: 02d600fdb45d
[   44.525598] iio iio:device0: Status register 0x16 = 0xfdb4
[   44.525988] sch16xx spi0.0: sch16xx_read_single: request: 05c80000002a resp: 02f600ffd832
[   44.525990] iio iio:device0: Status register 0x17 = 0xffd8
[   44.526058] sch16xx spi0.0: sch16xx_read_single: request: 0608000000c4 resp: 031600ffbf1d
[   44.526060] iio iio:device0: Status register 0x18 = 0xffbf
[   44.526119] sch16xx spi0.0: sch16xx_read_single: request: 064800000033 resp: 033600ffbff1
[   44.526121] iio iio:device0: Status register 0x19 = 0xffbf
[   44.526179] sch16xx spi0.0: sch16xx_read_single: request: 068800000005 resp: 035600ffbfea
[   44.526181] iio iio:device0: Status register 0x1a = 0xffbf
[   44.526239] sch16xx spi0.0: sch16xx_read_single: request: 06c8000000f2 resp: 037600ff78ce
[   44.526240] iio iio:device0: Status register 0x1b = 0xff78
[   44.526303] sch16xx spi0.0: sch16xx_read_single: request: 070800000069 resp: 039600ff7814
[   44.526305] iio iio:device0: Status register 0x1c = 0xff78
[   44.526369] sch16xx spi0.0: sch16xx_read_single: request: 07480000009e resp: 03b600ff78f8
[   44.526371] iio iio:device0: Status register 0x1d = 0xff78
[   44.526372] iio iio:device0: Fault in status registers, start attept 3.
[   44.526373] iio iio:device0: Failed to start the sensor.
[   44.526374] sch16xx spi0.0: Error in sch16xx_probe. -5
[   44.526616] sch16xx: probe of spi0.0 failed with error -5
mikkopyn commented 1 week ago

Hello @liwang54321 Status registers show failures, so the sensor driver refuses to start. Are all the power supplies (two V3P3 supply pins and VDDIO) at proper voltage? Can you share on what platform are you running the driver? What's the exact product type (SCH1633-???)?

liwang54321 commented 1 week ago

Hi @mikkopyn The product_code of the sch1633 used is "SCH1633-B13", The voltage of V3P3 pin is 3.3V, the voltage of VDDIO pin is 1.8V. I am using this imu on nvidia orin platform

mikkopyn commented 1 week ago

Hi @liwang54321 , unfortunately cannot pinpoint the problem exactly from the status frames. It seems plausible it could be a HW problem or a faulty sensor. Are you using a Murata supplied daughter/carrier PCB for the sensor, or do you have your own design? Does the circuit conform to the application example in the data sheet?