Ask for RESET_VEC of Bootloader_S12 in AN4258SW

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ask for RESET_VEC of Bootloader_S12 in AN4258SW

449 Views
rotato
Contributor II

Hi,

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[24]))
return(Error);
}

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 ?

Best Regards

0 Kudos
0 Replies