利用串口升级用户程序

2019-07-30 16:04发布

看到有串口升级用户程序时有将中断向量表映射出去,而bl程序中也没有用中断  这样映射有必要吗?求大神指导。
    ASEG
    ORG 0xFC00  ;place at the bottom of Segment 1

Int_Priority_0: mov.w  &0xFBE0, PC
Int_Priority_1: mov.w  &0xFBE2, PC
Int_Priority_2: mov.w  &0xFBE4, PC
Int_Priority_3: mov.w  &0xFBE6, PC
Int_Priority_4: mov.w  &0xFBE8, PC
Int_Priority_5: mov.w  &0xFBEA, PC
Int_Priority_6: mov.w  &0xFBEC, PC
Int_Priority_7: mov.w  &0xFBEE, PC
Int_Priority_8: mov.w  &0xFBF0, PC
Int_Priority_9: mov.w  &0xFBF2, PC
Int_Priority_A: mov.w  &0xFBF4, PC
Int_Priority_B: mov.w  &0xFBF6, PC
Int_Priority_C: mov.w  &0xFBF8, PC
Int_Priority_D: mov.w  &0xFBFA, PC
Int_Priority_E: mov.w  &0xFBFC, PC
User_Reset:     mov.w  &0xFBFE, PC

       ASEGN INTVEC: CODE, 0xFFE0

      DW  Int_Priority_0  ;FFE0
      DW  Int_Priority_1  ;FFE2
      DW  Int_Priority_2  ;FFE4
      DW  Int_Priority_3  ;FFE6
      DW  Int_Priority_4  ;FFE8
      DW  Int_Priority_5  ;FFEA
      DW  Int_Priority_6  ;FFEC
      DW  Int_Priority_7  ;FFEE
      DW  Int_Priority_8  ;FFF0
      DW  Int_Priority_9  ;FFF2
      DW  Int_Priority_A  ;FFF4
      DW  Int_Priority_B  ;FFF6
      DW  Int_Priority_C  ;FFF8
      DW  Int_Priority_D  ;FFFA
      DW  Int_Priority_E  ;FFFC

      ASEGN RESET: CODE, 0xFFFE
      DW  Reset
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。