Other Parts Discussed in Thread: TPS25750, BQ25798, BQ25792
Hi,
I am trying to use STM32 board to program the device. While trying to program it, I wrote the necessary codes to follow the diagram on page 53 of the TPS25750 User Guide document. My ADCINx pins are set to 5 and 5 so it is AlwaysEnableSink index #2. When I follow the diagram, I read the INT_EVENT1.ReadyForPatch bit as 1 at the beginning. However, when I come to the next READ MODE state, I receive "APP" data when I should see "PTCH". I waited for minutes using the 10ms delay command, but the device does not exit the "APP" mode. When I check the INT_EVENT1.PatchLoaded bit, I see the value 0. Therefore, since the patch is not loaded to the device by the MCU, I see that the patch is not loaded from the EEPROM. Since the ADCINx pins on the USB-PD-CHG-EVM-01 board are set to 1.5V by the pcb, I cannot put the device into NegotiateHighVoltage mode using the ADCINx pins and therefore I cannot use the "GO2P" command. Even if I constantly cut off the power of the device and reset the device, I see that it is always in "APP" mode.
1) How can I get rid of this problem?
2) If I need to erase EEPROM, how can I erase EEPROM? Can you share a sample code blog on this subject? Because when I filled in DATA1 for the "I2Cw" command as follows, when I set CMD1 to "I2Cw" and followed the TPS25750 master line with an oscilloscope, I realized that the correct data was not circulating on the line.
data1.SlaveAddrforTransaction = 0x50;
data1.NumberofBytesforTransaction = 10;
data1.RegisterOffset = 0;
data1.Payload_Data1 = 0xFF;
data1.Payload_Data2 = 0xFF;
data1.Payload_Data3 = 0xFF;
data1.Payload_Data4 = 0xFF;
data1.Payload_Data5 = 0xFF;
data1.Payload_Data6 = 0xFF;
data1.Payload_Data7 = 0xFF;
data1.Payload_Data8 = 0xFF;
data1.Payload_Data9 = 0xFF;
data1.Payload_Data10 = 0xFF;