eldarkg / emdr1986x-std-per-lib

Milandr MCU 1986x Standard Peripherals Library. Mirror:

Home Page:https://code.launchpad.net/~eldar/emdr1986x-std-per-lib/+git/emdr1986x-std-per-lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SystemInit in startup_MDR1986VE1T.s for Keil

garou-g opened this issue · comments

commented

In MDR32F9Qx devices in startup code for Keil SystemInit function calling from Reset_Handler before main function. But in startup code for MDR1986VE1T it is not. I suggest to add this feature for MDR1986VE1T startup for Keil.

Also I see, that in scripts for other compilers for MDR1986VE1T this feature already exist.

Reset_Handler in startup_MDR1986VE1T.s for Keil:

Reset_Handler   PROC
                EXPORT  Reset_Handler			[WEAK]
                IMPORT  __main
                LDR     R0,=__main
		BX      R0
                ENDP

Reset_Handler in startup_MDR32F9Qx.s for Keil:

Reset_Handler    PROC
                 EXPORT  Reset_Handler             [WEAK]
        IMPORT  SystemInit
        IMPORT  __main
                 LDR     R0, =SystemInit
                 BLX     R0
                 LDR     R0, =__main
                 BX      R0
                 ENDP

P.S. This is my first try in GitHub, sorry for errors :)

@xgaroux Can you create a pull request with this patch?