3565 views|2 replies

67

Posts

0

Resources
The OP

About the startup code [Copy link]

By comparing the startup file STM32F10x.s automatically generated by MDK and the startup_stm32f10x_hd.s in the STM32 firmware library (3.20), we found many differences:
for example, the definition in startup_stm32f10x_hd.s is as follows
DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1
DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2
DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3
DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4
DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5
DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6
DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7
DCD ADC1_2_IRQHandler ; ADC1 & ADC2
DCD USB_HP_CAN1_TX_IRQHandler ; USB High Priority or CAN1 TX
DCD USB_LP_CAN1_RX0_IRQHandler ; USB Low Priority or CAN1 RX0
DCD CAN1_RX1_IRQHandler ; CAN1 RX1
DCD CAN1_SCE_IRQHandler ; CAN1 SCE
The definitions in STM32F10x.s are:
DCD DMAChannel1_IRQHandler; DMA Channel 1 DCD DMAChannel2_IRQHandler
; DMA Channel 2
DCD DMAChannel3_IRQHandler; DMA Channel 3
DCD DMAChannel4_IRQHandler; DMA Channel 4
DCD DMAChannel5_IRQHandler; DMA Channel 5
DCD DMAChannel6_IRQHandler; DMA Channel 6
DCD DMAChannel7_IRQHandler; DMA Channel 7
DCD ADC_IRQHandler; ADC
DCD
USB_HP_CAN_TX_IRQHandler; USB High Priority or CAN TX
DCD USB_LP_CAN_RX0_IRQHandler
; CAN_SCE_IRQHandler ; CAN SCE
in addition
; Reset handler Reset_Handler PROC EXPORT Reset_Handler [ WEAK] IMPORT __main IMPORT SystemInit LDR R0, =SystemInit BLX R0 LDR R0, =__main BX R0 ENDP ; Reset Handler Reset_Handler
PROC EXPORT Reset_Handler [ WEAK] IMPORT __main LDR R0, =__main BX R0 ENDP I don't know whether to use the startup file automatically generated by MDK or the startup file that comes with the STM32 firmware library. Please give me some guidance, thank you.
















This post is from stm32/stm8

Latest reply

                                 There should be no problem using both files  Details Published on 2010-4-20 21:22

75

Posts

0

Resources
2
                                 It is better to use the files that come with the firmware library. The two should be similar and there will be no difference in functionality.
This post is from stm32/stm8

77

Posts

0

Resources
3
                                 There should be no problem using both files
This post is from stm32/stm8

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    About Us Customer Service Contact Information Datasheet Sitemap LatestNews

    Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list