;  ---------------------------------------------------------------------------------------
;   @file:    YTM32B1MD2_startup_iar.S
;   @purpose: IAR Startup File
;             YTM32B1MD2
;   @version: 1.0
;   @date:    2025-07-02
;  ---------------------------------------------------------------------------------------
    MODULE  ?cstartup

    ;; Forward declaration of sections.
    SECTION CSTACK:DATA:NOROOT(3)

    SECTION .intvec:CODE:ROOT(2)

    EXTERN  main
    EXTERN  SystemInit
    EXTERN  init_data_bss
    PUBLIC  __vector_table
    PUBLIC  __Vectors
    PUBLIC  __Vectors_End
    PUBLIC  __Vectors_Size

    DATA

__vector_table
    DCD   sfe(CSTACK)
    DCD   Reset_Handler                                    ; Reset Handler
    DCD   NMI_Handler                                      ; NMI Handler
    DCD   HardFault_Handler                                ; HardFault Handler
    DCD   MemManage_Handler                                ; MemManage Handler
    DCD   BusFault_Handler                                 ; BusFault Handler
    DCD   UsageFault_Handler                               ; UsageFault Handler
    DCD   0                                                ; Reserved
    DCD   0                                                ; Reserved
    DCD   0                                                ; Reserved
    DCD   0                                                ; Reserved
    DCD   SVC_Handler                                      ; SVC Handler
    DCD   DebugMon_Handler                                 ; DebugMon Handler
    DCD   0                                                ; Reserved
    DCD   PendSV_Handler                                   ; PendSV Handler
    DCD   SysTick_Handler                                  ; SysTick Handler

    DCD   DMA0_IRQHandler                                  ; DMA0 IRQHandler
    DCD   DMA1_IRQHandler                                  ; DMA1 IRQHandler
    DCD   DMA2_IRQHandler                                  ; DMA2 IRQHandler
    DCD   DMA3_IRQHandler                                  ; DMA3 IRQHandler
    DCD   DMA4_IRQHandler                                  ; DMA4 IRQHandler
    DCD   DMA5_IRQHandler                                  ; DMA5 IRQHandler
    DCD   DMA6_IRQHandler                                  ; DMA6 IRQHandler
    DCD   DMA7_IRQHandler                                  ; DMA7 IRQHandler
    DCD   Reserved5_IRQHandler                             ; Reserved5 IRQHandler
    DCD   Reserved6_IRQHandler                             ; Reserved6 IRQHandler
    DCD   Reserved7_IRQHandler                             ; Reserved7 IRQHandler
    DCD   Reserved8_IRQHandler                             ; Reserved8 IRQHandler
    DCD   Reserved9_IRQHandler                             ; Reserved9 IRQHandler
    DCD   Reserved10_IRQHandler                            ; Reserved10 IRQHandler
    DCD   Reserved11_IRQHandler                            ; Reserved11 IRQHandler
    DCD   Reserved12_IRQHandler                            ; Reserved12 IRQHandler
    DCD   DMA_Error_IRQHandler                             ; DMA_Error IRQHandler
    DCD   FPU_IRQHandler                                   ; FPU IRQHandler
    DCD   EFM_IRQHandler                                   ; EFM IRQHandler
    DCD   EFM_Error_IRQHandler                             ; EFM_Error IRQHandler
    DCD   PCU_IRQHandler                                   ; PCU IRQHandler
    DCD   EFM_Ecc_IRQHandler                               ; EFM_Ecc IRQHandler
    DCD   WDG0_IRQHandler                                  ; WDG0 IRQHandler
    DCD   RCU_IRQHandler                                   ; RCU IRQHandler
    DCD   I2C0_Master_IRQHandler                           ; I2C0_Master IRQHandler
    DCD   I2C0_Slave_IRQHandler                            ; I2C0_Slave IRQHandler
    DCD   SPI0_IRQHandler                                  ; SPI0 IRQHandler
    DCD   SPI1_IRQHandler                                  ; SPI1 IRQHandler
    DCD   SPI2_IRQHandler                                  ; SPI2 IRQHandler
    DCD   I2C1_Master_IRQHandler                           ; I2C1_Master IRQHandler
    DCD   Reserved13_IRQHandler                            ; Reserved13 IRQHandler
    DCD   UART0_IRQHandler                                 ; UART0 IRQHandler
    DCD   Reserved14_IRQHandler                            ; Reserved14 IRQHandler
    DCD   UART1_IRQHandler                                 ; UART1 IRQHandler
    DCD   Reserved15_IRQHandler                            ; Reserved15 IRQHandler
    DCD   UART2_IRQHandler                                 ; UART2 IRQHandler
    DCD   Reserved16_IRQHandler                            ; Reserved16 IRQHandler
    DCD   Reserved17_IRQHandler                            ; Reserved17 IRQHandler
    DCD   Reserved18_IRQHandler                            ; Reserved18 IRQHandler
    DCD   eADC0_IRQHandler                                 ; eADC0 IRQHandler
    DCD   Reserved19_IRQHandler                            ; Reserved19 IRQHandler
    DCD   ACMP0_IRQHandler                                 ; ACMP0 IRQHandler
    DCD   Reserved20_IRQHandler                            ; Reserved20 IRQHandler
    DCD   Reserved21_IRQHandler                            ; Reserved21 IRQHandler
    DCD   EMU0_SB_IRQHandler                               ; EMU0_SB IRQHandler
    DCD   EMU0_DB_IRQHandler                               ; EMU0_DB IRQHandler
    DCD   RTC_IRQHandler                                   ; RTC IRQHandler
    DCD   RTC_Seconds_IRQHandler                           ; RTC_Seconds IRQHandler
    DCD   pTMR0_Ch0_IRQHandler                             ; pTMR0_Ch0 IRQHandler
    DCD   pTMR0_Ch1_IRQHandler                             ; pTMR0_Ch1 IRQHandler
    DCD   pTMR0_Ch2_IRQHandler                             ; pTMR0_Ch2 IRQHandler
    DCD   pTMR0_Ch3_IRQHandler                             ; pTMR0_Ch3 IRQHandler
    DCD   Reserved22_IRQHandler                            ; Reserved22 IRQHandler
    DCD   Reserved23_IRQHandler                            ; Reserved23 IRQHandler
    DCD   Reserved24_IRQHandler                            ; Reserved24 IRQHandler
    DCD   Reserved25_IRQHandler                            ; Reserved25 IRQHandler
    DCD   Reserved26_IRQHandler                            ; Reserved26 IRQHandler
    DCD   CMU_IRQHandler                                   ; CMU IRQHandler
    DCD   lpTMR0_IRQHandler                                ; lpTMR0 IRQHandler
    DCD   GPIOA_IRQHandler                                 ; GPIOA IRQHandler
    DCD   GPIOB_IRQHandler                                 ; GPIOB IRQHandler
    DCD   GPIOC_IRQHandler                                 ; GPIOC IRQHandler
    DCD   GPIOD_IRQHandler                                 ; GPIOD IRQHandler
    DCD   GPIOE_IRQHandler                                 ; GPIOE IRQHandler
    DCD   Reserved27_IRQHandler                            ; Reserved27 IRQHandler
    DCD   Reserved28_IRQHandler                            ; Reserved28 IRQHandler
    DCD   Reserved29_IRQHandler                            ; Reserved29 IRQHandler
    DCD   Reserved30_IRQHandler                            ; Reserved30 IRQHandler
    DCD   Reserved31_IRQHandler                            ; Reserved31 IRQHandler
    DCD   Reserved32_IRQHandler                            ; Reserved32 IRQHandler
    DCD   Reserved33_IRQHandler                            ; Reserved33 IRQHandler
    DCD   Reserved34_IRQHandler                            ; Reserved34 IRQHandler
    DCD   Reserved35_IRQHandler                            ; Reserved35 IRQHandler
    DCD   Reserved36_IRQHandler                            ; Reserved36 IRQHandler
    DCD   Reserved37_IRQHandler                            ; Reserved37 IRQHandler
    DCD   Reserved38_IRQHandler                            ; Reserved38 IRQHandler
    DCD   Reserved39_IRQHandler                            ; Reserved39 IRQHandler
    DCD   Reserved40_IRQHandler                            ; Reserved40 IRQHandler
    DCD   CAN0_ORed_IRQHandler                             ; CAN0_ORed IRQHandler
    DCD   CAN0_Error_IRQHandler                            ; CAN0_Error IRQHandler
    DCD   CAN0_Wake_Up_IRQHandler                          ; CAN0_Wake_Up IRQHandler
    DCD   CAN0_ORed_0_15_MB_IRQHandler                     ; CAN0_ORed_0_15_MB IRQHandler
    DCD   CAN0_ORed_16_31_MB_IRQHandler                    ; CAN0_ORed_16_31_MB IRQHandler
    DCD   CAN0_ORed_32_47_MB_IRQHandler                    ; CAN0_ORed_32_47_MB IRQHandler
    DCD   CAN0_ORed_48_63_MB_IRQHandler                    ; CAN0_ORed_48_63_MB IRQHandler
    DCD   CAN1_ORed_IRQHandler                             ; CAN1_ORed IRQHandler
    DCD   CAN1_Error_IRQHandler                            ; CAN1_Error IRQHandler
    DCD   CAN1_Wake_Up_IRQHandler                          ; CAN1_Wake_Up IRQHandler
    DCD   CAN1_ORed_0_15_MB_IRQHandler                     ; CAN1_ORed_0_15_MB IRQHandler
    DCD   CAN1_ORed_16_31_MB_IRQHandler                    ; CAN1_ORed_16_31_MB IRQHandler
    DCD   CAN1_ORed_32_47_MB_IRQHandler                    ; CAN1_ORed_32_47_MB IRQHandler
    DCD   CAN1_ORed_48_63_MB_IRQHandler                    ; CAN1_ORed_48_63_MB IRQHandler
    DCD   CAN2_ORed_IRQHandler                             ; CAN2_ORed IRQHandler
    DCD   CAN2_Error_IRQHandler                            ; CAN2_Error IRQHandler
    DCD   CAN2_Wake_Up_IRQHandler                          ; CAN2_Wake_Up IRQHandler
    DCD   CAN2_ORed_0_15_MB_IRQHandler                     ; CAN2_ORed_0_15_MB IRQHandler
    DCD   CAN2_ORed_16_31_MB_IRQHandler                    ; CAN2_ORed_16_31_MB IRQHandler
    DCD   Reserved41_IRQHandler                            ; Reserved41 IRQHandler
    DCD   Reserved42_IRQHandler                            ; Reserved42 IRQHandler
    DCD   eTMR0_Ch0_Ch1_IRQHandler                         ; eTMR0_Ch0_Ch1 IRQHandler
    DCD   eTMR0_Ch2_Ch3_IRQHandler                         ; eTMR0_Ch2_Ch3 IRQHandler
    DCD   eTMR0_Ch4_Ch5_IRQHandler                         ; eTMR0_Ch4_Ch5 IRQHandler
    DCD   eTMR0_Ch6_Ch7_IRQHandler                         ; eTMR0_Ch6_Ch7 IRQHandler
    DCD   eTMR0_Fault_IRQHandler                           ; eTMR0_Fault IRQHandler
    DCD   eTMR0_Ovf_IRQHandler                             ; eTMR0_Ovf IRQHandler
    DCD   eTMR1_Ch0_Ch1_IRQHandler                         ; eTMR1_Ch0_Ch1 IRQHandler
    DCD   eTMR1_Ch2_Ch3_IRQHandler                         ; eTMR1_Ch2_Ch3 IRQHandler
    DCD   eTMR1_Ch4_Ch5_IRQHandler                         ; eTMR1_Ch4_Ch5 IRQHandler
    DCD   eTMR1_Ch6_Ch7_IRQHandler                         ; eTMR1_Ch6_Ch7 IRQHandler
    DCD   eTMR1_Fault_IRQHandler                           ; eTMR1_Fault IRQHandler
    DCD   eTMR1_Ovf_IRQHandler                             ; eTMR1_Ovf IRQHandler
    DCD   Reserved43_IRQHandler                            ; Reserved43 IRQHandler
    DCD   Reserved44_IRQHandler                            ; Reserved44 IRQHandler
    DCD   Reserved45_IRQHandler                            ; Reserved45 IRQHandler
    DCD   Reserved46_IRQHandler                            ; Reserved46 IRQHandler
    DCD   Reserved47_IRQHandler                            ; Reserved47 IRQHandler
    DCD   Reserved48_IRQHandler                            ; Reserved48 IRQHandler
    DCD   MPWM0_Ch0_Ovf_IRQHandler                         ; MPWM0_Ch0_Ovf IRQHandler
    DCD   MPWM0_Ch1_Ovf_IRQHandler                         ; MPWM0_Ch1_Ovf IRQHandler
    DCD   MPWM0_Ch2_Ovf_IRQHandler                         ; MPWM0_Ch2_Ovf IRQHandler
    DCD   MPWM0_Ch3_Ovf_IRQHandler                         ; MPWM0_Ch3_Ovf IRQHandler
    DCD   MPWM0_Ch4_Ovf_IRQHandler                         ; MPWM0_Ch4_Ovf IRQHandler
    DCD   MPWM0_Ch5_Ovf_IRQHandler                         ; MPWM0_Ch5_Ovf IRQHandler
    DCD   MPWM0_Ch6_Ovf_IRQHandler                         ; MPWM0_Ch6_Ovf IRQHandler
    DCD   MPWM0_Ch7_Ovf_IRQHandler                         ; MPWM0_Ch7_Ovf IRQHandler
    DCD   MPWM0_Ch8_Ovf_IRQHandler                         ; MPWM0_Ch8_Ovf IRQHandler
    DCD   MPWM0_Ch9_Ovf_IRQHandler                         ; MPWM0_Ch9_Ovf IRQHandler
    DCD   MPWM0_Ch10_Ovf_IRQHandler                        ; MPWM0_Ch10_Ovf IRQHandler
    DCD   MPWM0_Ch11_Ovf_IRQHandler                        ; MPWM0_Ch11_Ovf IRQHandler
    DCD   MPWM0_Ch12_Ovf_IRQHandler                        ; MPWM0_Ch12_Ovf IRQHandler
    DCD   MPWM0_Ch13_Ovf_IRQHandler                        ; MPWM0_Ch13_Ovf IRQHandler
    DCD   MPWM0_Ch14_Ovf_IRQHandler                        ; MPWM0_Ch14_Ovf IRQHandler
    DCD   MPWM0_Ch15_Ovf_IRQHandler                        ; MPWM0_Ch15_Ovf IRQHandler
    DCD   MPWM0_Ch0_IRQHandler                             ; MPWM0_Ch0 IRQHandler
    DCD   MPWM0_Ch1_IRQHandler                             ; MPWM0_Ch1 IRQHandler
    DCD   MPWM0_Ch2_IRQHandler                             ; MPWM0_Ch2 IRQHandler
    DCD   MPWM0_Ch3_IRQHandler                             ; MPWM0_Ch3 IRQHandler
    DCD   MPWM0_Ch4_IRQHandler                             ; MPWM0_Ch4 IRQHandler
    DCD   MPWM0_Ch5_IRQHandler                             ; MPWM0_Ch5 IRQHandler
    DCD   MPWM0_Ch6_IRQHandler                             ; MPWM0_Ch6 IRQHandler
    DCD   MPWM0_Ch7_IRQHandler                             ; MPWM0_Ch7 IRQHandler
    DCD   MPWM0_Ch8_IRQHandler                             ; MPWM0_Ch8 IRQHandler
    DCD   MPWM0_Ch9_IRQHandler                             ; MPWM0_Ch9 IRQHandler
    DCD   MPWM0_Ch10_IRQHandler                            ; MPWM0_Ch10 IRQHandler
    DCD   MPWM0_Ch11_IRQHandler                            ; MPWM0_Ch11 IRQHandler
    DCD   MPWM0_Ch12_IRQHandler                            ; MPWM0_Ch12 IRQHandler
    DCD   MPWM0_Ch13_IRQHandler                            ; MPWM0_Ch13 IRQHandler
    DCD   MPWM0_Ch14_IRQHandler                            ; MPWM0_Ch14 IRQHandler
    DCD   MPWM0_Ch15_IRQHandler                            ; MPWM0_Ch15 IRQHandler
    DCD   Reserved49_IRQHandler                            ; Reserved49 IRQHandler
    DCD   Reserved50_IRQHandler                            ; Reserved50 IRQHandler
    DCD   Reserved51_IRQHandler                            ; Reserved51 IRQHandler
    DCD   Reserved52_IRQHandler                            ; Reserved52 IRQHandler
    DCD   Reserved53_IRQHandler                            ; Reserved53 IRQHandler
    DCD   Reserved54_IRQHandler                            ; Reserved54 IRQHandler
    DCD   Reserved55_IRQHandler                            ; Reserved55 IRQHandler
    DCD   TRNG_IRQHandler                                  ; TRNG IRQHandler
    DCD   HCU_IRQHandler                                   ; HCU IRQHandler


__Vectors_End

__Vectors       EQU   __vector_table
__Vectors_Size  EQU   __Vectors_End - __Vectors


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Default interrupt handlers.
;;
    THUMB

    PUBWEAK Reset_Handler
    SECTION .text:CODE:REORDER:NOROOT(2)
Reset_Handler
    CPSID   I               ; Mask interrupts
    ;; Init the rest of the registers
    LDR     R1,=0
    LDR     R2,=0
    LDR     R3,=0
    LDR     R4,=0
    LDR     R5,=0
    LDR     R6,=0
    LDR     R7,=0
    MOV     R8,R7
    MOV     R9,R7
    MOV     R10,R7
    MOV     R11,R7
    MOV     R12,R7

#ifndef START_NO_ECC_INIT
    IMPORT __RAM_START, __RAM_END
    ;; INIT ECC RAM

    LDR R1, =__RAM_START
    LDR R2, =__RAM_END

    SUBS    R2, R2, R1
    SUBS    R2, #1
    BLE     SRAM_LOOP_END

    MOVS    R0, #0
    MOVS    R3, #4
            
SRAM_LOOP             
    STR     R0, [R1]
    ADD     R1, R1, R3
    SUBS    R2, #4
    BGE     SRAM_LOOP

SRAM_LOOP_END
#endif
    ;; Initialize the stack pointer
    LDR     R0, =sfe(CSTACK)
    MOV     R13,R0

#ifndef __NO_SYSTEM_INIT
    ;; Call the CMSIS system init routine
    LDR     R0, =SystemInit
    BLX     R0
#endif

    ;; Init .data and .bss sections
    LDR     R0, =init_data_bss
    BLX     R0
    CPSIE   I               ; Unmask interrupts

    BL      main
JumpToSelf
    B   JumpToSelf

    PUBWEAK NMI_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
NMI_Handler
    B .

    PUBWEAK HardFault_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
HardFault_Handler
    B .

    PUBWEAK MemManage_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
MemManage_Handler
    B .

    PUBWEAK BusFault_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
BusFault_Handler
    B .

    PUBWEAK UsageFault_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
UsageFault_Handler
    B .

    PUBWEAK SVC_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
SVC_Handler
    B .

    PUBWEAK DebugMon_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
DebugMon_Handler
    B .

    PUBWEAK PendSV_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
PendSV_Handler
    B .

    PUBWEAK SysTick_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
SysTick_Handler
    B .


    PUBWEAK DMA0_IRQHandler
    PUBWEAK DMA1_IRQHandler
    PUBWEAK DMA2_IRQHandler
    PUBWEAK DMA3_IRQHandler
    PUBWEAK DMA4_IRQHandler
    PUBWEAK DMA5_IRQHandler
    PUBWEAK DMA6_IRQHandler
    PUBWEAK DMA7_IRQHandler
    PUBWEAK Reserved5_IRQHandler
    PUBWEAK Reserved6_IRQHandler
    PUBWEAK Reserved7_IRQHandler
    PUBWEAK Reserved8_IRQHandler
    PUBWEAK Reserved9_IRQHandler
    PUBWEAK Reserved10_IRQHandler
    PUBWEAK Reserved11_IRQHandler
    PUBWEAK Reserved12_IRQHandler
    PUBWEAK DMA_Error_IRQHandler
    PUBWEAK FPU_IRQHandler
    PUBWEAK EFM_IRQHandler
    PUBWEAK EFM_Error_IRQHandler
    PUBWEAK PCU_IRQHandler
    PUBWEAK EFM_Ecc_IRQHandler
    PUBWEAK WDG0_IRQHandler
    PUBWEAK RCU_IRQHandler
    PUBWEAK I2C0_Master_IRQHandler
    PUBWEAK I2C0_Slave_IRQHandler
    PUBWEAK SPI0_IRQHandler
    PUBWEAK SPI1_IRQHandler
    PUBWEAK SPI2_IRQHandler
    PUBWEAK I2C1_Master_IRQHandler
    PUBWEAK Reserved13_IRQHandler
    PUBWEAK UART0_IRQHandler
    PUBWEAK Reserved14_IRQHandler
    PUBWEAK UART1_IRQHandler
    PUBWEAK Reserved15_IRQHandler
    PUBWEAK UART2_IRQHandler
    PUBWEAK Reserved16_IRQHandler
    PUBWEAK Reserved17_IRQHandler
    PUBWEAK Reserved18_IRQHandler
    PUBWEAK eADC0_IRQHandler
    PUBWEAK Reserved19_IRQHandler
    PUBWEAK ACMP0_IRQHandler
    PUBWEAK Reserved20_IRQHandler
    PUBWEAK Reserved21_IRQHandler
    PUBWEAK EMU0_SB_IRQHandler
    PUBWEAK EMU0_DB_IRQHandler
    PUBWEAK RTC_IRQHandler
    PUBWEAK RTC_Seconds_IRQHandler
    PUBWEAK pTMR0_Ch0_IRQHandler
    PUBWEAK pTMR0_Ch1_IRQHandler
    PUBWEAK pTMR0_Ch2_IRQHandler
    PUBWEAK pTMR0_Ch3_IRQHandler
    PUBWEAK Reserved22_IRQHandler
    PUBWEAK Reserved23_IRQHandler
    PUBWEAK Reserved24_IRQHandler
    PUBWEAK Reserved25_IRQHandler
    PUBWEAK Reserved26_IRQHandler
    PUBWEAK CMU_IRQHandler
    PUBWEAK lpTMR0_IRQHandler
    PUBWEAK GPIOA_IRQHandler
    PUBWEAK GPIOB_IRQHandler
    PUBWEAK GPIOC_IRQHandler
    PUBWEAK GPIOD_IRQHandler
    PUBWEAK GPIOE_IRQHandler
    PUBWEAK Reserved27_IRQHandler
    PUBWEAK Reserved28_IRQHandler
    PUBWEAK Reserved29_IRQHandler
    PUBWEAK Reserved30_IRQHandler
    PUBWEAK Reserved31_IRQHandler
    PUBWEAK Reserved32_IRQHandler
    PUBWEAK Reserved33_IRQHandler
    PUBWEAK Reserved34_IRQHandler
    PUBWEAK Reserved35_IRQHandler
    PUBWEAK Reserved36_IRQHandler
    PUBWEAK Reserved37_IRQHandler
    PUBWEAK Reserved38_IRQHandler
    PUBWEAK Reserved39_IRQHandler
    PUBWEAK Reserved40_IRQHandler
    PUBWEAK CAN0_ORed_IRQHandler
    PUBWEAK CAN0_Error_IRQHandler
    PUBWEAK CAN0_Wake_Up_IRQHandler
    PUBWEAK CAN0_ORed_0_15_MB_IRQHandler
    PUBWEAK CAN0_ORed_16_31_MB_IRQHandler
    PUBWEAK CAN0_ORed_32_47_MB_IRQHandler
    PUBWEAK CAN0_ORed_48_63_MB_IRQHandler
    PUBWEAK CAN1_ORed_IRQHandler
    PUBWEAK CAN1_Error_IRQHandler
    PUBWEAK CAN1_Wake_Up_IRQHandler
    PUBWEAK CAN1_ORed_0_15_MB_IRQHandler
    PUBWEAK CAN1_ORed_16_31_MB_IRQHandler
    PUBWEAK CAN1_ORed_32_47_MB_IRQHandler
    PUBWEAK CAN1_ORed_48_63_MB_IRQHandler
    PUBWEAK CAN2_ORed_IRQHandler
    PUBWEAK CAN2_Error_IRQHandler
    PUBWEAK CAN2_Wake_Up_IRQHandler
    PUBWEAK CAN2_ORed_0_15_MB_IRQHandler
    PUBWEAK CAN2_ORed_16_31_MB_IRQHandler
    PUBWEAK Reserved41_IRQHandler
    PUBWEAK Reserved42_IRQHandler
    PUBWEAK eTMR0_Ch0_Ch1_IRQHandler
    PUBWEAK eTMR0_Ch2_Ch3_IRQHandler
    PUBWEAK eTMR0_Ch4_Ch5_IRQHandler
    PUBWEAK eTMR0_Ch6_Ch7_IRQHandler
    PUBWEAK eTMR0_Fault_IRQHandler
    PUBWEAK eTMR0_Ovf_IRQHandler
    PUBWEAK eTMR1_Ch0_Ch1_IRQHandler
    PUBWEAK eTMR1_Ch2_Ch3_IRQHandler
    PUBWEAK eTMR1_Ch4_Ch5_IRQHandler
    PUBWEAK eTMR1_Ch6_Ch7_IRQHandler
    PUBWEAK eTMR1_Fault_IRQHandler
    PUBWEAK eTMR1_Ovf_IRQHandler
    PUBWEAK Reserved43_IRQHandler
    PUBWEAK Reserved44_IRQHandler
    PUBWEAK Reserved45_IRQHandler
    PUBWEAK Reserved46_IRQHandler
    PUBWEAK Reserved47_IRQHandler
    PUBWEAK Reserved48_IRQHandler
    PUBWEAK MPWM0_Ch0_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch1_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch2_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch3_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch4_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch5_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch6_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch7_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch8_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch9_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch10_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch11_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch12_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch13_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch14_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch15_Ovf_IRQHandler
    PUBWEAK MPWM0_Ch0_IRQHandler
    PUBWEAK MPWM0_Ch1_IRQHandler
    PUBWEAK MPWM0_Ch2_IRQHandler
    PUBWEAK MPWM0_Ch3_IRQHandler
    PUBWEAK MPWM0_Ch4_IRQHandler
    PUBWEAK MPWM0_Ch5_IRQHandler
    PUBWEAK MPWM0_Ch6_IRQHandler
    PUBWEAK MPWM0_Ch7_IRQHandler
    PUBWEAK MPWM0_Ch8_IRQHandler
    PUBWEAK MPWM0_Ch9_IRQHandler
    PUBWEAK MPWM0_Ch10_IRQHandler
    PUBWEAK MPWM0_Ch11_IRQHandler
    PUBWEAK MPWM0_Ch12_IRQHandler
    PUBWEAK MPWM0_Ch13_IRQHandler
    PUBWEAK MPWM0_Ch14_IRQHandler
    PUBWEAK MPWM0_Ch15_IRQHandler
    PUBWEAK Reserved49_IRQHandler
    PUBWEAK Reserved50_IRQHandler
    PUBWEAK Reserved51_IRQHandler
    PUBWEAK Reserved52_IRQHandler
    PUBWEAK Reserved53_IRQHandler
    PUBWEAK Reserved54_IRQHandler
    PUBWEAK Reserved55_IRQHandler
    PUBWEAK TRNG_IRQHandler
    PUBWEAK HCU_IRQHandler
    PUBWEAK DefaultISR
    SECTION .text:CODE:REORDER:NOROOT(1)
DMA0_IRQHandler
DMA1_IRQHandler
DMA2_IRQHandler
DMA3_IRQHandler
DMA4_IRQHandler
DMA5_IRQHandler
DMA6_IRQHandler
DMA7_IRQHandler
Reserved5_IRQHandler
Reserved6_IRQHandler
Reserved7_IRQHandler
Reserved8_IRQHandler
Reserved9_IRQHandler
Reserved10_IRQHandler
Reserved11_IRQHandler
Reserved12_IRQHandler
DMA_Error_IRQHandler
FPU_IRQHandler
EFM_IRQHandler
EFM_Error_IRQHandler
PCU_IRQHandler
EFM_Ecc_IRQHandler
WDG0_IRQHandler
RCU_IRQHandler
I2C0_Master_IRQHandler
I2C0_Slave_IRQHandler
SPI0_IRQHandler
SPI1_IRQHandler
SPI2_IRQHandler
I2C1_Master_IRQHandler
Reserved13_IRQHandler
UART0_IRQHandler
Reserved14_IRQHandler
UART1_IRQHandler
Reserved15_IRQHandler
UART2_IRQHandler
Reserved16_IRQHandler
Reserved17_IRQHandler
Reserved18_IRQHandler
eADC0_IRQHandler
Reserved19_IRQHandler
ACMP0_IRQHandler
Reserved20_IRQHandler
Reserved21_IRQHandler
EMU0_SB_IRQHandler
EMU0_DB_IRQHandler
RTC_IRQHandler
RTC_Seconds_IRQHandler
pTMR0_Ch0_IRQHandler
pTMR0_Ch1_IRQHandler
pTMR0_Ch2_IRQHandler
pTMR0_Ch3_IRQHandler
Reserved22_IRQHandler
Reserved23_IRQHandler
Reserved24_IRQHandler
Reserved25_IRQHandler
Reserved26_IRQHandler
CMU_IRQHandler
lpTMR0_IRQHandler
GPIOA_IRQHandler
GPIOB_IRQHandler
GPIOC_IRQHandler
GPIOD_IRQHandler
GPIOE_IRQHandler
Reserved27_IRQHandler
Reserved28_IRQHandler
Reserved29_IRQHandler
Reserved30_IRQHandler
Reserved31_IRQHandler
Reserved32_IRQHandler
Reserved33_IRQHandler
Reserved34_IRQHandler
Reserved35_IRQHandler
Reserved36_IRQHandler
Reserved37_IRQHandler
Reserved38_IRQHandler
Reserved39_IRQHandler
Reserved40_IRQHandler
CAN0_ORed_IRQHandler
CAN0_Error_IRQHandler
CAN0_Wake_Up_IRQHandler
CAN0_ORed_0_15_MB_IRQHandler
CAN0_ORed_16_31_MB_IRQHandler
CAN0_ORed_32_47_MB_IRQHandler
CAN0_ORed_48_63_MB_IRQHandler
CAN1_ORed_IRQHandler
CAN1_Error_IRQHandler
CAN1_Wake_Up_IRQHandler
CAN1_ORed_0_15_MB_IRQHandler
CAN1_ORed_16_31_MB_IRQHandler
CAN1_ORed_32_47_MB_IRQHandler
CAN1_ORed_48_63_MB_IRQHandler
CAN2_ORed_IRQHandler
CAN2_Error_IRQHandler
CAN2_Wake_Up_IRQHandler
CAN2_ORed_0_15_MB_IRQHandler
CAN2_ORed_16_31_MB_IRQHandler
Reserved41_IRQHandler
Reserved42_IRQHandler
eTMR0_Ch0_Ch1_IRQHandler
eTMR0_Ch2_Ch3_IRQHandler
eTMR0_Ch4_Ch5_IRQHandler
eTMR0_Ch6_Ch7_IRQHandler
eTMR0_Fault_IRQHandler
eTMR0_Ovf_IRQHandler
eTMR1_Ch0_Ch1_IRQHandler
eTMR1_Ch2_Ch3_IRQHandler
eTMR1_Ch4_Ch5_IRQHandler
eTMR1_Ch6_Ch7_IRQHandler
eTMR1_Fault_IRQHandler
eTMR1_Ovf_IRQHandler
Reserved43_IRQHandler
Reserved44_IRQHandler
Reserved45_IRQHandler
Reserved46_IRQHandler
Reserved47_IRQHandler
Reserved48_IRQHandler
MPWM0_Ch0_Ovf_IRQHandler
MPWM0_Ch1_Ovf_IRQHandler
MPWM0_Ch2_Ovf_IRQHandler
MPWM0_Ch3_Ovf_IRQHandler
MPWM0_Ch4_Ovf_IRQHandler
MPWM0_Ch5_Ovf_IRQHandler
MPWM0_Ch6_Ovf_IRQHandler
MPWM0_Ch7_Ovf_IRQHandler
MPWM0_Ch8_Ovf_IRQHandler
MPWM0_Ch9_Ovf_IRQHandler
MPWM0_Ch10_Ovf_IRQHandler
MPWM0_Ch11_Ovf_IRQHandler
MPWM0_Ch12_Ovf_IRQHandler
MPWM0_Ch13_Ovf_IRQHandler
MPWM0_Ch14_Ovf_IRQHandler
MPWM0_Ch15_Ovf_IRQHandler
MPWM0_Ch0_IRQHandler
MPWM0_Ch1_IRQHandler
MPWM0_Ch2_IRQHandler
MPWM0_Ch3_IRQHandler
MPWM0_Ch4_IRQHandler
MPWM0_Ch5_IRQHandler
MPWM0_Ch6_IRQHandler
MPWM0_Ch7_IRQHandler
MPWM0_Ch8_IRQHandler
MPWM0_Ch9_IRQHandler
MPWM0_Ch10_IRQHandler
MPWM0_Ch11_IRQHandler
MPWM0_Ch12_IRQHandler
MPWM0_Ch13_IRQHandler
MPWM0_Ch14_IRQHandler
MPWM0_Ch15_IRQHandler
Reserved49_IRQHandler
Reserved50_IRQHandler
Reserved51_IRQHandler
Reserved52_IRQHandler
Reserved53_IRQHandler
Reserved54_IRQHandler
Reserved55_IRQHandler
TRNG_IRQHandler
HCU_IRQHandler
DefaultISR
    B DefaultISR

    END