I cannot understand this code in the file main.c of project Bootloader_S12 in AN4258SW
if (ProgSRec.LoadAddr == RESET_VEC_SRC)
//Program reset vector to address 0xEFFE
if(Error = PFlash_Program(RESET_VEC_DST, (UINT16 *)&ProgSRec.Data))
The question is:
1.Why only write the last 8 bytes of ProgSRec.Data to PFlash, the VECTOR table is longer than 8 bytes ,such as 64 bytes in S12G128 ?
2.Why do not write the ProgSRec.Data[0:23] to PFlash , What are the first 24 data in ProgSRec.Data ?
3.How to determine the address of RESET_VEC_SRC and RESET_VEC_DST ?