SystemInit in startup_MDR1986VE1T.s for Keil
garou-g opened this issue · comments
garou 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 :)
Eldar Khayrullin commented
@xgaroux Can you create a pull request with this patch?