ZHCAEM6 October   2024 TPS25751 , TPS26750

 

  1.   1
  2.   摘要
  3.   商标
  4. 1引言
  5. 2EEPROM 引导流程
    1. 2.1 引导过程
    2. 2.2 更新 EEPROM 映像
    3. 2.3 命令
    4. 2.4 EEPROM 更新示例
  6. 3源代码示例
    1. 3.1 UpdateRegionOfEeprom()
    2. 3.2 UpdateRegionOfEeprom_Step1
    3. 3.3 UpdateRegionOfEeprom_Step2()
    4. 3.4 UpdatingRegionOfEeprom_Step3()
    5. 3.5 UpdatingRegionOfEeprom_Step4()
    6. 3.6 WriteRegionPointer()
  7. 4从 EEPROM 故障中恢复
  8. 5结语
  9. 6参考资料

UpdateRegionOfEeprom_Step1

static int32_t UpdateRegionOfEeprom_Step1(uint8_t region_number)
{
int32_t retVal = -1;
/*
* First erases the region-pointer so that if there is an interruption while writing
* the new Patch Bundle, it is guaranteed the PD controller won't try to load it.
*/
retVal = WriteRegionPointer(region_number, 0);
RETURN_ON_ERROR(retVal);
error:
return retVal;
}