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: VTM Temperature Sensor Register Address Confusion.

Part Number: TDA4VM

TI Experts,

I have been using another post as well as doing my own digging in an attempt to read the on board VTM temperature sensors. We found code using an existing e2e post that works with this module, and it seems to disagree with the TRM. For example, if I look at the status register for the temperature sensor in the TRM (WKUP_VTM_TMPSENS_STAT_j), the physical address given is 0x42040308 with an additional 0x20 for each possible sensor (8 total, 5 in our case). Looking at the macros defined in the cslr_vtm.h file, the base address for the status register is 0x42040088 with an additional 0x10 for each sensor. The pmlib_thermal.c and cslr_vtm.h files have more information regarding the registers needed to accomplish this as many of these registers are reserved in the TRM. We are looking for help regarding which of these registers has the information we are looking for, as trying to enable the sensors and read them with both sets of addresses and offsets proved to be unsuccessful.

TRM in question: TDA4xM J721E Silicon Revision 1.0 (Rev. A)
PSDK code in question: PSDK-RTOS J7 6.02.00.21 | cslr_vtm.h and pmlib_thermal.c
e2e post in question: e2e.ti.com/.../883266

Thanks

  • Hi,

    Let me check with the expert on thing and post a reply.

    Regards,

    Karan

  • Hi,


    There is a bit of split in the regmap for VTM on for thermal sensing.

    1) WKUP_VTM0_MMR_VBUSP_CFG1 0x42040000
    2) WKUP_VTM0_MMR_VBUSP_CFG2 0x42050000

    Few registers in the 2 spaces above unfortunately have same names.
    I will always tell the CFG"n" before the register name.

    Temperature sensor enabling:
    =========================

    So to enable the sensors continuous conversion mode:

    CFG2 register space: 42050300 in steps of 0x20 are all the
    WKUP_VTM_TMPSENS_CTRL_j registers:

    Set: CLRZ | SOC | CONT

    aka BIT(4)|BIT(5)|BIT(6).

    This should tick the ADC.

    To verify that you need to switch to CFG1 Space: 0x42040308 aka WKUP_VTM_TMPSENS_STAT_j Register.

    Bit field (9-0) DATA_OUT R X Data_out signal value from sensor: Temperature data from the ADC.

    This value needs to be looked up against the generated look up table.


    Best Reagrds,
    Keerthy