-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathlib_diff.txt
32 lines (17 loc) · 1.15 KB
/
lib_diff.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/CMSIS/CM3/CoreSupport/core_cm3.c
inline asm error, making strexb strexh use destination and result for same register - illegal
-- __ASM volatile ("strexb %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) );
++ __ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
-- __ASM volatile ("strexh %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) );
++ __ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) );
STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10X/stm32f10x.h
stdint.h not existing, instead include types.h typedeffing whats needed (uint8_t, etc)
-- #include <stdint.h>
++ #include "types.h"
STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10X/startup/gcc_ride7/startup_stm32f10x_*.s
Otherwise Reset_Vector will end up having even address in bootvectors, which will go HardFault
.type Reset_Handler, %function
++ .thumb_func
Reset_Handler:
/* Copy the data segment initializers from flash to SRAM */
movs r1, #0