Hallo,
beide Startup Dateien sind mit STM Tools erzeugt worden
startup_stm32f303rctx.s
hier wird die SystemInit vor einer Initialisierung der Variablen
aufgerufen
1 | * Copyright (c) 2016 STMicroelectronics.
|
2 | * All rights reserved.
|
3 | *
|
4 | * This software is licensed under terms that can be found in the LICENSE file
|
5 | * in the root directory of this software component.
|
6 | * If no LICENSE file comes with this software, it is provided AS-IS.
|
7 |
|
8 | ...
|
9 |
|
10 | Reset_Handler:
|
11 | ldr sp, =_estack /* Atollic update: set stack pointer */
|
12 |
|
13 | /* Call the clock system initialization function.*/
|
14 | bl SystemInit
|
startup_stm32f303xc.s
hier wird die SystemInit nach der Initialisierung der Variablen
aufgerufen
bevor __libc_init_array und main
1 | * <h2><center>© Copyright (c) 2016 STMicroelectronics.
|
2 | * All rights reserved.</center></h2>
|
3 | *
|
4 | * This software component is licensed by ST under BSD 3-Clause license,
|
5 | * the "License"; You may not use this file except in compliance with the
|
6 | * License. You may obtain a copy of the License at:
|
7 | * opensource.org/licenses/BSD-3-Clause
|
8 |
|
9 |
|
10 | ...
|
11 |
|
12 | LoopFillZerobss:
|
13 | cmp r2, r4
|
14 | bcc FillZerobss
|
15 |
|
16 | /* Call the clock system intitialization function.*/
|
17 | bl SystemInit
|
18 | /* Call static constructors */
|
19 | bl __libc_init_array
|
20 | /* Call the application's entry point.*/
|
21 | bl main
|
ansonsten sind beide gleich. War es ein Bugfix?
Kann man aus dem Dateinamen etwas ableiten?
startup_stm32f303xc.s
startup_stm32f303rctx.s
Welche sollte ich weiterverwenden?
Gruß,
Daniel