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.

TPS25750EVM: Unable to send GAID command.

Part Number: TPS25750EVM
Other Parts Discussed in Thread: TPS25750

Tool/software:

I'm sending GAID command to cold restart PD device but somehow it is unable to recognize any 4CC commands and returns '!CMD'. Other than that I'm able to detect PD controller on I2C bus with address 0x21 and also able to fetch mode of DP device buy reading register 0x03.

This is how I'm reading PD device mode: -

ret = HAL_I2C_Mem_Read(i2cPortHandle, TPS25750_ADDR<<1, memAddress, I2C_MEMADD_SIZE_8BIT, data, Datasize, 2000);

And this is how I'm trying to send GAID command: -

#define GAID_COMMAND 0x47414944 // "GAID" in ASCII

cmd_data[0] = (GAID_COMMAND >> 24) & 0xFF;

cmd_data[1] = (GAID_COMMAND>> 16) & 0xFF;

cmd_data[2] = (GAID_COMMAND >> 8) & 0xFF;

cmd_data[3] = GAID_COMMAND & 0xFF;

HAL_StatusTypeDef status;

status = HAL_I2C_Mem_Write(&hi2c2, TPS25750_ADDR<<1 , CMD1_REGISTER, I2C_MEMADD_SIZE_8BIT, cmd_data, sizeof(cmd_data), HAL_MAX_DELAY);

HAL_Delay(1000);

status = HAL_I2C_Mem_Read(&hi2c2, TPS25750_ADDR<<1 , CMD1_REGISTER, I2C_MEMADD_SIZE_8BIT, response, sizeof(response), HAL_MAX_DELAY);