From 4c42b5bd82420b1ef6089f9219d990d379b117e1 Mon Sep 17 00:00:00 2001 From: sunxing Date: Sun, 21 Nov 2021 12:43:36 +0800 Subject: [PATCH] [fix] fix bugs about startup_gd32f4xx --- .../Libraries/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s | 3 ++- .../Libraries/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S | 4 +++- .../Libraries/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s b/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s index eb11e413dc..ba5c4c7399 100644 --- a/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s +++ b/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s @@ -141,10 +141,11 @@ __Vectors DCD __initial_sp ; Top of Stack DCD TRNG_IRQHandler ; 96:TRNG DCD FPU_IRQHandler ; 97:FPU DCD UART6_IRQHandler ; 98:UART6 - DCD UART7_IRQHandler ; 98:UART7 + DCD UART7_IRQHandler ; 99:UART7 DCD SPI3_IRQHandler ; 100:SPI3 DCD SPI4_IRQHandler ; 101:SPI4 DCD SPI5_IRQHandler ; 102:SPI5 + DCD 0 ; 103:Reserved DCD TLI_IRQHandler ; 104:TLI DCD TLI_ER_IRQHandler ; 105:TLI Error DCD IPA_IRQHandler ; 106:IPA diff --git a/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S b/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S index 149472da00..2e53748e25 100644 --- a/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S +++ b/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S @@ -104,6 +104,7 @@ g_pfnVectors: .word CAN1_TX_IRQHandler // 79:CAN1 TX .word CAN1_RX0_IRQHandler // 80:CAN1 RX0 .word CAN1_RX1_IRQHandler // 81:CAN1 RX1 + .word CAN1_EWMC_IRQHandler // 82:CAN1 EWMC .word USBFS_IRQHandler // 83:USBFS .word DMA1_Channel5_IRQHandler // 84:DMA1 Channel5 .word DMA1_Channel6_IRQHandler // 85:DMA1 Channel6 @@ -120,10 +121,11 @@ g_pfnVectors: .word TRNG_IRQHandler // 96:TRNG .word FPU_IRQHandler // 97:FPU .word UART6_IRQHandler // 98:UART6 - .word UART7_IRQHandler // 98:UART7 + .word UART7_IRQHandler // 99:UART7 .word SPI3_IRQHandler // 100:SPI3 .word SPI4_IRQHandler // 101:SPI4 .word SPI5_IRQHandler // 102:SPI5 + .word 0 // 103:Reserved .word TLI_IRQHandler // 104:TLI .word TLI_ER_IRQHandler // 105:TLI Error .word IPA_IRQHandler // 106:IPA diff --git a/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s b/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s index 87bf921267..af94881cdf 100644 --- a/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s +++ b/bsp/gd32450z-eval/Libraries/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s @@ -125,10 +125,11 @@ __vector_table DCD TRNG_IRQHandler ; 96:TRNG DCD FPU_IRQHandler ; 97:FPU DCD UART6_IRQHandler ; 98:UART6 - DCD UART7_IRQHandler ; 98:UART7 + DCD UART7_IRQHandler ; 99:UART7 DCD SPI3_IRQHandler ; 100:SPI3 DCD SPI4_IRQHandler ; 101:SPI4 DCD SPI5_IRQHandler ; 102:SPI5 + DCD 0 ; 103:Reserved DCD TLI_IRQHandler ; 104:TLI DCD TLI_ER_IRQHandler ; 105:TLI Error DCD IPA_IRQHandler ; 106:IPA