This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: TDA4VM-EVM_I2C1 problem

Part Number: TDA4VM
Other Parts Discussed in Thread: TCA6408

Hi, 

We try to enable DS90UB941 on the J721E-EVM board, but we can't access 941 attached to soc i2c1 bus.

SDK is 08_06_01_02-Linux-x86. 

test log is as follows: 

(1) run "i2cdetect -y -r 4". But nothing found.

(2) DS90UB941(U162) : PDB pin keep low. If we drive it high, we have a problem of TCA6408(U65) which also attaced to soc i2c1 bus. 

SoC I2C0 always good, why SoC I2C1 bad?? 

We wonder about it. What goes wrong? 

Best Regards,

Alvin

  • Hi Alvin,

    Can you please refer to API appDssConfigureUB941AndUB925 in vision_apps\utils\dss\src\app_dss_soc.c for accessing ub941? 

    Regards,

    Brijesh

  • Hi,

    We try appDssConfigureUB941AndUB925() when vision_apps_init.sh. 

    The log is shown below:

    [MCU2_0] 20.287859 s: read-941,R0x<f0> = _
    [MCU2_0] 20.288080 s: read-941,R0x<f1> = U
    [MCU2_0] 20.288261 s: read-941,R0x<f2> = B
    [MCU2_0] 20.288494 s: read-941,R0x<f3> = 9
    [MCU2_0] 20.288693 s: read-941,R0x<f4> = 4
    [MCU2_0] 20.288875 s: read-941,R0x<f5> = 1
    [MCU2_0] 20.289053 s: read-941,R0x00 = 0x00

    It should be correct except R0x00.

    Why R0x00 = 0x00?? It should be 0x16 after power on for J721E-EVM board.

     

  • Hi zhang,

    Looking at this function in vision apps, there is no read. It just writes to the slaves. Have you added the read function? Also i don't see registers 0xF0 to 0xF5 in Ub941Ub925Config array in this file. 

    Regards,

    Brijesh

  • Hi,

    Sorry to give my own feedback on this topic.

    appDssConfigureUB941AndUB925() can access I2C1,but i2cdetect can't.

    This is because different logic i2c number and rtos drive layer after kernel startup.

    We should refer to APIs like appDssConfigureUB941AndUB925().

    Thasnks very much

    Best Regards,
    Alvin