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] USB Test Mode Register [USB0_VBP2APB_WRAP_CONTROLLER_VBP_CORE_ADDR_MAP ?!]

Part Number: TDA4VM

Hi, TI Expert 

My customer want to do USB0 / USB1 mode test.

So I reference this thread, https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1105352/tda4vm-usb-2-0-host-test-mode/4119850#4119850

USB0 Test Mode In Linux, command as below:

devmem2 0x06010480 w 0x000000A0
devmem2 0x06010080 w 0x00000004
devmem2 0x06010484 w 0x40000000

as far as I know, it should be :

USB0_VBP2APB_WRAP_CONTROLLER_VBP_CORE_ADDR_MAP + Offset ( 0x10480 or 0x10080 or 0x10484)

(spruil1c.pdf)

But  I can not find more detial description for USB0_VBP2APB_WRAP_CONTROLLER_VBP_CORE_ADDR_MAP and USB1_VBP2APB_WRAP_CONTROLLER_VBP_CORE_ADDR_MAP and  Offset description

Could someone help me find it out?

Because I try to use "key word search", but it retuen no result.

(ex: J721E_registers1.pdf - J721E_registers5.pdf)

Many Thanks :)

Gibbs


 

  • Gibbs, I will have to contact the Linux team on this.

  • Hi, Shreyas

    Base on previous discussion, customer want to know how to let USB1 enter test mode. (eye diagram test)

    wait your answer

    Many Thanks

    Gibbs

  • Hi, Shreyas:

    thanks your replies, but ...

    We know how to let "USB0" enter test mode, and these two thread talk about "USB0"

    My question is :

    "How to let USB1 into test mode?"

    As far as I know, USB0 enter test mode, command as below

    devmem2 0x06010480 w 0x000000A0

    devmem2 0x06010080 w 0x00000004

    devmem2 0x06010484 w 0x40000000

    so USB1 enter test mode, command should be as below.

    devmem2 0x06410480 w 0x000000A0

    devmem2 0x06410080 w 0x00000004

    devmem2 0x06410484 w 0x40000000

    but it return crash information,

    ccids login: root
    Last login: Thu Oct 27 14:56:02 UTC 2022 on ttyS2
    root@ccids:~# devmem2 0x06410480 w 0x000000A0
    /dev/mem opened.
    ERROR:   Unhandled External Abort received on 0x80000001 from S-EL1
    ERROR:   exception reason=0 syndrome=0xbf000000
    Unhandled Exception from EL0
    x0             = 0x0000ffffaf9511e0
    x1             = 0x00000000004002e8
    x2             = 0x0000000006969197
    x3             = 0x0000000000000003
    x4             = 0x0000ffffaf952330
    x5             = 0x0000000000400498
    x6             = 0x0000000000000001
    x7             = 0x000000000000000a
    x8             = 0x0000000000000040
    x9             = 0xffffff80ffffffc8
    x10            = 0x0000000000000000
    x11            = 0x0000ffffd579faa0
    x12            = 0x000000000000000c
    x13            = 0x0000000000000010
    x14            = 0x0000000000000001
    x15            = 0x0000000000000000
    x16            = 0x0000000000411ff8
    x17            = 0x0000ffffaf932e38
    x18            = 0x0000000000000000
    x19            = 0x0000000000412010
    x20            = 0x0000ffffaf9528a0
    x21            = 0x0000ffffaf9530a0
    x22            = 0x0000000000000004
    x23            = 0x0000000000000003
    x24            = 0x0000ffffd579fc20
    x25            = 0x0000ffffd579fde8
    x26            = 0x0000ffffaf8e0480
    x27            = 0x0000000000412000
    x28            = 0x0000000000000000
    x29            = 0x0000ffffd579fa80
    x30            = 0x0000ffffaf932e7c
    scr_el3        = 0x000000000000073d
    sctlr_el3      = 0x0000000030cd183f
    cptr_el3       = 0x0000000000000000
    tcr_el3        = 0x0000000080803520
    daif           = 0x00000000000002c0
    mair_el3       = 0x00000000004404ff
    spsr_el3       = 0x0000000020000000
    elr_el3        = 0x0000ffffaf92d444
    ttbr0_el3      = 0x0000000070010c00
    esr_el3        = 0x00000000bf000000
    far_el3        = 0x0000000000000000
    spsr_el1       = 0x0000000020000000
    elr_el1        = 0x0000ffffaf81e3d0
    spsr_abt       = 0x0000000000000000
    spsr_und       = 0x0000000000000000
    spsr_irq       = 0x0000000000000000
    spsr_fiq       = 0x0000000000000000
    sctlr_el1      = 0x0000000034d4d91d
    actlr_el1      = 0x0000000000000000
    cpacr_el1      = 0x0000000000300000
    csselr_el1     = 0x0000000000000000
    sp_el1         = 0xffff8001200b0000
    esr_el1        = 0x0000000056000000
    ttbr0_el1      = 0x0000000881a2ba00
    ttbr1_el1      = 0x0e34000082ff0000
    mair_el1       = 0x000c0400bb44ffff
    amair_el1      = 0x0000000000000000
    tcr_el1        = 0x00000034f5d07590
    tpidr_el1      = 0xffff80086e9f0000
    tpidr_el0      = 0x0000ffffaf9530a0
    tpidrro_el0    = 0x0000000000000000
    par_el1        = 0x0000000000000000
    mpidr_el1      = 0x0000000080000001
    afsr0_el1      = 0x0000000000000000
    afsr1_el1      = 0x0000000000000000
    contextidr_el1 = 0x0000000000000000
    vbar_el1       = 0xffff800010010800
    cntp_ctl_el0   = 0x0000000000000005
    cntp_cval_el0  = 0x000000018f3300f9
    cntv_ctl_el0   = 0x0000000000000000
    cntv_cval_el0  = 0x0000000000000000
    cntkctl_el1    = 0x00000000000000d6
    sp_el0         = 0x000000007000abd0
    isr_el1        = 0x0000000000000040
    dacr32_el2     = 0x0000000000000000
    ifsr32_el2     = 0x0000000000000000
    cpuectlr_el1   = 0x0000001b00000040
    cpumerrsr_el1  = 0x0000000000000000
    l2merrsr_el1   = 0x0000000000000000
    Memory mapped at address 0xffffaf8e0000.
    
    
    
    
    

     

    Do I miss something?

    Many Thanks

    Gibbs

  • Hi Gibbs 

    USB1 is in device mode or in host mode ?

    Also is it a custom board or a TI evm board ?

    Regards 

    Diwakar 

  • Hi, Diwakar

    USB0 and USB1 is in host mode. Customer try to do this test on their customer board,

    I also do the test on TDA4 EVM board for USB0 or USB1, it also return crash information

    Thanks

    Gibbs

  • Hi Gibbs,

    I tried in TDA4VM with sdk 8.5 

    • USB0 is in otg mode 
    • USB1 is in host mode 

    i was able to set the register using  the below commands for usb1

    devmem2 0x06410480 w 0x000000A0

    devmem2 0x06410080 w 0x00000004

    devmem2 0x06410484 w 0x40000000

    i am not seeing any crash for usb1.Also the offset will be same just the base address will change as per usb instance.

    Regards
    Diwakar

  • Hi, Diwakar

    USB1 is OK in EVB

    USB0 is crash, I think this is because USB0 is in OTG mode, even we let USB0 id pin to ground

    But I think it's ok.

    Many Thanks

    Gibbs