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-Q1: EEPROM write protection disable

Part Number: TDA4VM-Q1


Hi,

We are using j784s4 evm for the development. While checking the EEPROM interface in the board. I am able to read data form the EEPROM which is oxff by default. While writing the memory it is failing. With schematic analysis, I got to know there is a Write protect pin which is connected to WKUP_GPIO0_1. Its active high by default(write protected). I am trying to enable write access by making the WKUP_GPIO0_1 to low. But the pin always shows high in board. even the pin reads zero in software 

  • Hi,

    Have you changed pinmux and enable GPIO to get the correct output from this PIN? can you please share the settings that you are doing?

    Regards,

    Brijesh

  • Hi,

    As I searched for PADConfig register for configuring selecting PINMUX, I understand WKUP_PADCONFIG_49(0x4301C0C4) is the register to be configured to set pinmux. 

    root@j784s4-evm:~# devmem2 0x4301c0c4
    /dev/mem opened.
    Memory mapped at address 0xffffaa3d8000.
    Read at address 0x4301C0C4 (0xffffaa3d80c4): 0x08254007

    I am using linux commands to configure the registers. As per the reference document last 4 bits (3-0 bits) are deciding pinmux, currently it is configured to 7(mode 7) which indicates it selects WKUP_GPIO0_1

    Referenced Document : SPRSP79 – APRIL 2022

    Thanks & Regards,

    Harikrishnan P S

  • Hi

    Can you also please share the GPIO settings? 

    Essentially, we need to set the GPIO direction as output and set the appropriate value. 

    regards,

    Brijesh

  • Hi,

    I am sharing the status of GPIO_DIR01 Register and GPIO_OUT_DATA01 Register.

    Intended Pin - WKUP_GPIO0_1

    Desired output - low

    GPIO_DIR01 Register

    root@j784s4-evm:~/ADCU500-Bringup-Scripts# devmem2 0x42110010
    /dev/mem opened.
    Memory mapped at address 0xffff91758000.
    Read at address 0x42110010 (0xffff91758010): 0xFFFFFFF9

    GPIO_OUT_DATA01 Register

    root@j784s4-evm:~/ADCU500-Bringup-Scripts# devmem2 0x42110014
    /dev/mem opened.
    Memory mapped at address 0xffff84f5b000.
    Read at address 0x42110014 (0xffff84f5b014): 0x00000004

    Thanks & Regards,

    Harikrishnan P S

  • Hi,

    I am able to Set and Reset the Write protect pin. Still I am not able to write to EEPROM memory. Is there any settings to be done to enable write operation for EEPROM?

  • Hi Harikrishnan,

    Any update on this ticket? Are you able to access eeprom? Are you referring to existing example for accessing eeprom?

    Regards,

    Brijesh