ZHCAEM6 October 2024 TPS25751 , TPS26750
static int32_t UpdateRegionOfEeprom_Step3(uint8_t new_region_number)
{
uint8_t outdata[MAX_BUF_BSIZE] = {0};
s_TPS_flvy flvyInData = {0};
int32_t retVal = -1;
flvyInData.flashaddr = region_addr_patchbundle[new_region_number];
retVal = ExecCmd(FLvy, sizeof(flvyInData), (uint8_t *)&flvyInData, \
TASK_RET_CODE_LEN, &outdata[0]);
if(0 != outdata[1]) {retVal = -1; goto error;}
retVal = WriteRegionPointer(new_region_number, region_addr_patchbundle[new_region_number]);
RETURN_ON_ERROR(retVal);
error:
return retVal;
}