debug chavirement
This commit is contained in:
parent
81dbb7d213
commit
9bad192109
18 changed files with 123 additions and 113 deletions
|
@ -18,11 +18,13 @@ Section Cross References
|
|||
mytimer.o(i.TIM4_IRQHandler) refers to mytimer.o(.data) for PtrF
|
||||
principal.o(i.main) refers to driver_gpio.o(i.MyGPIO_Activate) for MyGPIO_Activate
|
||||
principal.o(i.main) refers to chavirement.o(i.chavirement_init) for chavirement_init
|
||||
principal.o(i.main) refers to bordage.o(i.Roulis_Handler) for Roulis_Handler
|
||||
principal.o(i.main) refers to chavirement.o(i.chavirement_handler) for chavirement_handler
|
||||
principal.o(i.main) refers to principal.o(.data) for value
|
||||
chavirement.o(i.chavirement_handler) refers to chavirement.o(i.lire) for lire
|
||||
chavirement.o(i.chavirement_handler) refers to bordage.o(i.Roulis_Handler) for Roulis_Handler
|
||||
chavirement.o(i.chavirement_init) refers to driver_spi.o(i.SPI_init_master) for SPI_init_master
|
||||
chavirement.o(i.chavirement_init) refers to chavirement.o(i.ecrire) for ecrire
|
||||
chavirement.o(i.chavirement_init) refers to chavirement.o(i.lire) for lire
|
||||
chavirement.o(i.chavirement_init) refers to chavirement.o(.data) for device_id
|
||||
chavirement.o(i.ecrire) refers to driver_gpio.o(i.MyGPIO_Reset) for MyGPIO_Reset
|
||||
|
@ -109,7 +111,6 @@ Removing Unused input sections from the image.
|
|||
Removing chavirement.o(.rev16_text), (4 bytes).
|
||||
Removing chavirement.o(.revsh_text), (4 bytes).
|
||||
Removing chavirement.o(.rrx_text), (6 bytes).
|
||||
Removing chavirement.o(i.ecrire), (64 bytes).
|
||||
Removing bordage.o(.rev16_text), (4 bytes).
|
||||
Removing bordage.o(.revsh_text), (4 bytes).
|
||||
Removing bordage.o(.rrx_text), (6 bytes).
|
||||
|
@ -120,7 +121,7 @@ Removing Unused input sections from the image.
|
|||
Removing system_stm32f10x.o(i.SystemCoreClockUpdate), (164 bytes).
|
||||
Removing system_stm32f10x.o(.data), (20 bytes).
|
||||
|
||||
29 unused section(s) (total 1142 bytes) removed from the image.
|
||||
28 unused section(s) (total 1078 bytes) removed from the image.
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
@ -130,24 +131,24 @@ Image Symbol Table
|
|||
|
||||
Symbol Name Value Ov Type Size Object(Section)
|
||||
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry11a.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry5.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry10b.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry10a.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry9b.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry8b.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry8a.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7b.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry5.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry12a.o ABSOLUTE
|
||||
../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE
|
||||
../clib/microlib/longlong.c 0x00000000 Number 0 llshl.o ABSOLUTE
|
||||
../clib/microlib/longlong.c 0x00000000 Number 0 llsshr.o ABSOLUTE
|
||||
../clib/microlib/longlong.c 0x00000000 Number 0 llushr.o ABSOLUTE
|
||||
../clib/microlib/longlong.c 0x00000000 Number 0 llsshr.o ABSOLUTE
|
||||
../clib/microlib/longlong.c 0x00000000 Number 0 llshl.o ABSOLUTE
|
||||
../clib/microlib/stubs.s 0x00000000 Number 0 iusefp.o ABSOLUTE
|
||||
../fplib/microlib/d2f.c 0x00000000 Number 0 d2f.o ABSOLUTE
|
||||
../fplib/microlib/f2d.c 0x00000000 Number 0 f2d.o ABSOLUTE
|
||||
|
@ -227,9 +228,10 @@ Image Symbol Table
|
|||
i.__scatterload_zeroinit 0x08000af4 Section 14 handlers.o(i.__scatterload_zeroinit)
|
||||
i.bordage 0x08000b04 Section 0 bordage.o(i.bordage)
|
||||
i.chavirement_handler 0x08000bac Section 0 chavirement.o(i.chavirement_handler)
|
||||
i.chavirement_init 0x08000bd8 Section 0 chavirement.o(i.chavirement_init)
|
||||
i.lire 0x08000bf4 Section 0 chavirement.o(i.lire)
|
||||
i.main 0x08000c38 Section 0 principal.o(i.main)
|
||||
i.chavirement_init 0x08000bd0 Section 0 chavirement.o(i.chavirement_init)
|
||||
i.ecrire 0x08000bf4 Section 0 chavirement.o(i.ecrire)
|
||||
i.lire 0x08000c34 Section 0 chavirement.o(i.lire)
|
||||
i.main 0x08000c78 Section 0 principal.o(i.main)
|
||||
.data 0x20000000 Section 8 driver_spi.o(.data)
|
||||
.data 0x20000008 Section 4 mytimer.o(.data)
|
||||
.data 0x2000000c Section 2 principal.o(.data)
|
||||
|
@ -352,12 +354,13 @@ Image Symbol Table
|
|||
__scatterload_null 0x08000af3 Thumb Code 2 handlers.o(i.__scatterload_null)
|
||||
__scatterload_zeroinit 0x08000af5 Thumb Code 14 handlers.o(i.__scatterload_zeroinit)
|
||||
bordage 0x08000b05 Thumb Code 146 bordage.o(i.bordage)
|
||||
chavirement_handler 0x08000bad Thumb Code 44 chavirement.o(i.chavirement_handler)
|
||||
chavirement_init 0x08000bd9 Thumb Code 20 chavirement.o(i.chavirement_init)
|
||||
lire 0x08000bf5 Thumb Code 58 chavirement.o(i.lire)
|
||||
main 0x08000c39 Thumb Code 30 principal.o(i.main)
|
||||
Region$$Table$$Base 0x08000c5c Number 0 anon$$obj.o(Region$$Table)
|
||||
Region$$Table$$Limit 0x08000c7c Number 0 anon$$obj.o(Region$$Table)
|
||||
chavirement_handler 0x08000bad Thumb Code 36 chavirement.o(i.chavirement_handler)
|
||||
chavirement_init 0x08000bd1 Thumb Code 28 chavirement.o(i.chavirement_init)
|
||||
ecrire 0x08000bf5 Thumb Code 54 chavirement.o(i.ecrire)
|
||||
lire 0x08000c35 Thumb Code 58 chavirement.o(i.lire)
|
||||
main 0x08000c79 Thumb Code 34 principal.o(i.main)
|
||||
Region$$Table$$Base 0x08000ca0 Number 0 anon$$obj.o(Region$$Table)
|
||||
Region$$Table$$Limit 0x08000cc0 Number 0 anon$$obj.o(Region$$Table)
|
||||
sortieSPI 0x20000000 Data 8 driver_spi.o(.data)
|
||||
PtrF 0x20000008 Data 4 mytimer.o(.data)
|
||||
value 0x2000000c Data 2 principal.o(.data)
|
||||
|
@ -372,9 +375,9 @@ Memory Map of the image
|
|||
|
||||
Image Entry point : 0x08000105
|
||||
|
||||
Load Region LR_1 (Base: 0x08000000, Size: 0x00000c90, Max: 0xffffffff, ABSOLUTE)
|
||||
Load Region LR_1 (Base: 0x08000000, Size: 0x00000cd4, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000c7c, Max: 0xffffffff, ABSOLUTE)
|
||||
Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000cc0, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
|
||||
|
||||
|
@ -431,29 +434,30 @@ Memory Map of the image
|
|||
0x08000af4 0x08000af4 0x0000000e Code RO 422 i.__scatterload_zeroinit mc_w.l(handlers.o)
|
||||
0x08000b02 0x08000b02 0x00000002 PAD
|
||||
0x08000b04 0x08000b04 0x000000a8 Code RO 295 i.bordage bordage.o
|
||||
0x08000bac 0x08000bac 0x0000002c Code RO 246 i.chavirement_handler chavirement.o
|
||||
0x08000bd8 0x08000bd8 0x0000001c Code RO 247 i.chavirement_init chavirement.o
|
||||
0x08000bf4 0x08000bf4 0x00000044 Code RO 249 i.lire chavirement.o
|
||||
0x08000c38 0x08000c38 0x00000024 Code RO 216 i.main principal.o
|
||||
0x08000c5c 0x08000c5c 0x00000020 Data RO 418 Region$$Table anon$$obj.o
|
||||
0x08000bac 0x08000bac 0x00000024 Code RO 249 i.chavirement_handler chavirement.o
|
||||
0x08000bd0 0x08000bd0 0x00000024 Code RO 250 i.chavirement_init chavirement.o
|
||||
0x08000bf4 0x08000bf4 0x00000040 Code RO 251 i.ecrire chavirement.o
|
||||
0x08000c34 0x08000c34 0x00000044 Code RO 252 i.lire chavirement.o
|
||||
0x08000c78 0x08000c78 0x00000028 Code RO 216 i.main principal.o
|
||||
0x08000ca0 0x08000ca0 0x00000020 Data RO 418 Region$$Table anon$$obj.o
|
||||
|
||||
|
||||
Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08000c7c, Size: 0x00000014, Max: 0xffffffff, ABSOLUTE)
|
||||
Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08000cc0, Size: 0x00000014, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
|
||||
|
||||
0x20000000 0x08000c7c 0x00000008 Data RW 94 .data driver_spi.o
|
||||
0x20000008 0x08000c84 0x00000004 Data RW 147 .data mytimer.o
|
||||
0x2000000c 0x08000c88 0x00000002 Data RW 217 .data principal.o
|
||||
0x2000000e 0x08000c8a 0x00000002 PAD
|
||||
0x20000010 0x08000c8c 0x00000004 Data RW 250 .data chavirement.o
|
||||
0x20000000 0x08000cc0 0x00000008 Data RW 94 .data driver_spi.o
|
||||
0x20000008 0x08000cc8 0x00000004 Data RW 147 .data mytimer.o
|
||||
0x2000000c 0x08000ccc 0x00000002 Data RW 217 .data principal.o
|
||||
0x2000000e 0x08000cce 0x00000002 PAD
|
||||
0x20000010 0x08000cd0 0x00000004 Data RW 253 .data chavirement.o
|
||||
|
||||
|
||||
Execution Region ER_ZI (Exec base: 0x20000014, Load base: 0x08000c90, Size: 0x00000404, Max: 0xffffffff, ABSOLUTE)
|
||||
Execution Region ER_ZI (Exec base: 0x20000014, Load base: 0x08000cd4, Size: 0x00000404, Max: 0xffffffff, ABSOLUTE)
|
||||
|
||||
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
|
||||
|
||||
0x20000014 0x08000c90 0x00000004 PAD
|
||||
0x20000014 0x08000cd4 0x00000004 PAD
|
||||
0x20000018 - 0x00000400 Zero RW 321 STACK startup_stm32f10x_md.o
|
||||
|
||||
|
||||
|
@ -465,16 +469,16 @@ Image component sizes
|
|||
Code (inc. data) RO Data RW Data ZI Data Debug Object Name
|
||||
|
||||
178 22 0 0 0 1183 bordage.o
|
||||
140 18 0 4 0 1924 chavirement.o
|
||||
204 28 0 4 0 2513 chavirement.o
|
||||
210 6 0 0 0 209488 driver_gpio.o
|
||||
318 16 0 8 0 2880 driver_spi.o
|
||||
464 46 0 4 0 4877 mytimer.o
|
||||
36 6 0 2 0 743 principal.o
|
||||
40 6 0 2 0 747 principal.o
|
||||
36 8 236 0 1024 852 startup_stm32f10x_md.o
|
||||
328 28 0 0 0 2149 system_stm32f10x.o
|
||||
|
||||
----------------------------------------------------------------------
|
||||
1716 150 268 20 1028 224096 Object Totals
|
||||
1784 160 268 20 1028 224689 Object Totals
|
||||
0 0 32 0 0 0 (incl. Generated)
|
||||
6 0 0 2 4 0 (incl. Padding)
|
||||
|
||||
|
@ -527,15 +531,15 @@ Image component sizes
|
|||
|
||||
Code (inc. data) RO Data RW Data ZI Data Debug
|
||||
|
||||
2928 166 268 20 1028 223800 Grand Totals
|
||||
2928 166 268 20 1028 223800 ELF Image Totals
|
||||
2928 166 268 20 0 0 ROM Totals
|
||||
2996 176 268 20 1028 224341 Grand Totals
|
||||
2996 176 268 20 1028 224341 ELF Image Totals
|
||||
2996 176 268 20 0 0 ROM Totals
|
||||
|
||||
==============================================================================
|
||||
|
||||
Total RO Size (Code + RO Data) 3196 ( 3.12kB)
|
||||
Total RO Size (Code + RO Data) 3264 ( 3.19kB)
|
||||
Total RW Size (RW Data + ZI Data) 1048 ( 1.02kB)
|
||||
Total ROM Size (Code + RO Data + RW Data) 3216 ( 3.14kB)
|
||||
Total ROM Size (Code + RO Data + RW Data) 3284 ( 3.21kB)
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#include "Driver_GPIO.h"
|
||||
#endif
|
||||
|
||||
#include "bordage.h"
|
||||
|
||||
uint16_t value = 0;
|
||||
|
||||
int main(void) {
|
||||
|
@ -16,6 +18,7 @@ int main(void) {
|
|||
//on init le système de chavirement
|
||||
chavirement_init();
|
||||
|
||||
Roulis_Handler();
|
||||
|
||||
while (1) {
|
||||
//on lance le contrôle du chavirement
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -9,3 +9,4 @@
|
|||
.\objects\principal.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_armcc.h
|
||||
.\objects\principal.o: C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\system_stm32f10x.h
|
||||
.\objects\principal.o: ..\Drivers\Driver_GPIO.h
|
||||
.\objects\principal.o: ..\Sources\bordage.h
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -26,26 +26,11 @@ Project File Date: 11/05/2021
|
|||
|
||||
<h2>Output:</h2>
|
||||
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
|
||||
Rebuild target 'CarteSTM'
|
||||
assembling startup_stm32f10x_md.s...
|
||||
Build target 'CarteSTM'
|
||||
compiling chavirement.c...
|
||||
compiling principal.c...
|
||||
Local_Sources\principal.c(12): warning: #177-D: variable "i" was declared but never referenced
|
||||
int i = 0;
|
||||
Local_Sources\principal.c: 1 warning, 0 errors
|
||||
compiling bordage.c...
|
||||
compiling Driver_GPIO.c...
|
||||
compiling Driver_SPI.c...
|
||||
..\Drivers\Driver_SPI.c(79): warning: #550-D: variable "a" was set but never used
|
||||
int a;
|
||||
..\Drivers\Driver_SPI.c(100): warning: #177-D: variable "a" was declared but never referenced
|
||||
int a;
|
||||
..\Drivers\Driver_SPI.c: 2 warnings, 0 errors
|
||||
compiling MyTimer.c...
|
||||
compiling system_stm32f10x.c...
|
||||
linking...
|
||||
Program Size: Code=2928 RO-data=268 RW-data=20 ZI-data=1028
|
||||
".\Objects\projet_chavirement.axf" - 0 Error(s), 3 Warning(s).
|
||||
Program Size: Code=2996 RO-data=268 RW-data=20 ZI-data=1028
|
||||
".\Objects\projet_chavirement.axf" - 0 Error(s), 0 Warning(s).
|
||||
|
||||
<h2>Software Packages used:</h2>
|
||||
|
||||
|
@ -76,7 +61,7 @@ Package Vendor: Keil
|
|||
Include file: RTE_Driver\Config\RTE_Device.h
|
||||
Source file: Device\Source\ARM\startup_stm32f10x_md.s
|
||||
Source file: Device\Source\ARM\STM32F1xx_OPT.s
|
||||
Build Time Elapsed: 00:00:00
|
||||
Build Time Elapsed: 00:00:01
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<title>Static Call Graph - [.\Objects\projet_chavirement.axf]</title></head>
|
||||
<body><HR>
|
||||
<H1>Static Call Graph for image .\Objects\projet_chavirement.axf</H1><HR>
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Mon Nov 08 19:23:43 2021
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Mon Nov 08 19:47:45 2021
|
||||
<BR><P>
|
||||
<H3>Maximum Stack Usage = 168 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
|
||||
Call chain for Maximum Stack Depth:</H3>
|
||||
|
@ -90,7 +90,7 @@ Global Symbols
|
|||
<P><STRONG><a name="[37]"></a>__main</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry.o(.ARM.Collect$$$$00000000))
|
||||
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f10x_md.o(.text)
|
||||
</UL>
|
||||
<P><STRONG><a name="[5c]"></a>_main_stk</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry2.o(.ARM.Collect$$$$00000001))
|
||||
<P><STRONG><a name="[5d]"></a>_main_stk</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry2.o(.ARM.Collect$$$$00000001))
|
||||
|
||||
<P><STRONG><a name="[39]"></a>_main_scatterload</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004))
|
||||
<BR><BR>[Calls]<UL><LI><a href="#[3a]">>></a> __scatterload
|
||||
|
@ -100,17 +100,17 @@ Global Symbols
|
|||
<BR><BR>[Called By]<UL><LI><a href="#[3a]">>></a> __scatterload
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[5d]"></a>_main_clock</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry7b.o(.ARM.Collect$$$$00000008))
|
||||
<P><STRONG><a name="[5e]"></a>_main_clock</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry7b.o(.ARM.Collect$$$$00000008))
|
||||
|
||||
<P><STRONG><a name="[5e]"></a>_main_cpp_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry8b.o(.ARM.Collect$$$$0000000A))
|
||||
<P><STRONG><a name="[5f]"></a>_main_cpp_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry8b.o(.ARM.Collect$$$$0000000A))
|
||||
|
||||
<P><STRONG><a name="[5f]"></a>_main_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry9a.o(.ARM.Collect$$$$0000000B))
|
||||
<P><STRONG><a name="[60]"></a>_main_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry9a.o(.ARM.Collect$$$$0000000B))
|
||||
|
||||
<P><STRONG><a name="[60]"></a>__rt_lib_shutdown_fini</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry12b.o(.ARM.Collect$$$$0000000E))
|
||||
<P><STRONG><a name="[61]"></a>__rt_lib_shutdown_fini</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry12b.o(.ARM.Collect$$$$0000000E))
|
||||
|
||||
<P><STRONG><a name="[61]"></a>__rt_final_cpp</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry10a.o(.ARM.Collect$$$$0000000F))
|
||||
<P><STRONG><a name="[62]"></a>__rt_final_cpp</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry10a.o(.ARM.Collect$$$$0000000F))
|
||||
|
||||
<P><STRONG><a name="[62]"></a>__rt_final_exit</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry11a.o(.ARM.Collect$$$$00000011))
|
||||
<P><STRONG><a name="[63]"></a>__rt_final_exit</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry11a.o(.ARM.Collect$$$$00000011))
|
||||
|
||||
<P><STRONG><a name="[38]"></a>Reset_Handler</STRONG> (Thumb, 8 bytes, Stack size 0 bytes, startup_stm32f10x_md.o(.text))
|
||||
|
||||
|
@ -360,21 +360,21 @@ Global Symbols
|
|||
<LI><a href="#[3b]">>></a> __aeabi_dadd
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[63]"></a>_ll_shift_l</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llshl.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[64]"></a>_ll_shift_l</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llshl.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[3d]"></a>__aeabi_lasr</STRONG> (Thumb, 36 bytes, Stack size 0 bytes, llsshr.o(.text))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[3b]">>></a> __aeabi_dadd
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[64]"></a>_ll_sshift_r</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llsshr.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[65]"></a>_ll_sshift_r</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llsshr.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[65]"></a>__I$use$fp</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, iusefp.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[66]"></a>__I$use$fp</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, iusefp.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[45]"></a>_float_round</STRONG> (Thumb, 18 bytes, Stack size 0 bytes, fepilogue.o(.text))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[44]">>></a> __aeabi_d2f
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[66]"></a>_float_epilogue</STRONG> (Thumb, 92 bytes, Stack size 4 bytes, fepilogue.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[67]"></a>_float_epilogue</STRONG> (Thumb, 92 bytes, Stack size 4 bytes, fepilogue.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[3f]"></a>_double_round</STRONG> (Thumb, 30 bytes, Stack size 8 bytes, depilogue.o(.text))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 8<LI>Call Chain = _double_round
|
||||
|
@ -401,15 +401,15 @@ Global Symbols
|
|||
<BR>[Called By]<UL><LI><a href="#[39]">>></a> _main_scatterload
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[67]"></a>__scatterload_rt2</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, init.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[68]"></a>__scatterload_rt2</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, init.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[46]"></a>__aeabi_llsr</STRONG> (Thumb, 32 bytes, Stack size 0 bytes, llushr.o(.text))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[3e]">>></a> _double_epilogue
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[68]"></a>_ll_ushift_r</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llushr.o(.text), UNUSED)
|
||||
<P><STRONG><a name="[69]"></a>_ll_ushift_r</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llushr.o(.text), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[5b]"></a>MyGPIO_Activate</STRONG> (Thumb, 18 bytes, Stack size 0 bytes, driver_gpio.o(i.MyGPIO_Activate))
|
||||
<P><STRONG><a name="[5c]"></a>MyGPIO_Activate</STRONG> (Thumb, 18 bytes, Stack size 0 bytes, driver_gpio.o(i.MyGPIO_Activate))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[35]">>></a> main
|
||||
</UL>
|
||||
|
||||
|
@ -422,12 +422,14 @@ Global Symbols
|
|||
<LI><a href="#[4c]">>></a> SPI_init_master
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[58]"></a>MyGPIO_Reset</STRONG> (Thumb, 12 bytes, Stack size 0 bytes, driver_gpio.o(i.MyGPIO_Reset))
|
||||
<P><STRONG><a name="[59]"></a>MyGPIO_Reset</STRONG> (Thumb, 12 bytes, Stack size 0 bytes, driver_gpio.o(i.MyGPIO_Reset))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[56]">>></a> lire
|
||||
<LI><a href="#[58]">>></a> ecrire
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[49]"></a>MyGPIO_Set</STRONG> (Thumb, 8 bytes, Stack size 0 bytes, driver_gpio.o(i.MyGPIO_Set))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[56]">>></a> lire
|
||||
<LI><a href="#[58]">>></a> ecrire
|
||||
<LI><a href="#[4c]">>></a> SPI_init_master
|
||||
<LI><a href="#[48]">>></a> MyGPIO_Init
|
||||
</UL>
|
||||
|
@ -446,6 +448,7 @@ Global Symbols
|
|||
<BR>[Calls]<UL><LI><a href="#[4b]">>></a> bordage
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[55]">>></a> chavirement_handler
|
||||
<LI><a href="#[35]">>></a> main
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[4d]"></a>SPI_activate_clock</STRONG> (Thumb, 54 bytes, Stack size 0 bytes, driver_spi.o(i.SPI_activate_clock))
|
||||
|
@ -462,12 +465,13 @@ Global Symbols
|
|||
<BR>[Called By]<UL><LI><a href="#[57]">>></a> chavirement_init
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[5a]"></a>SPI_rcv</STRONG> (Thumb, 36 bytes, Stack size 0 bytes, driver_spi.o(i.SPI_rcv))
|
||||
<P><STRONG><a name="[5b]"></a>SPI_rcv</STRONG> (Thumb, 36 bytes, Stack size 0 bytes, driver_spi.o(i.SPI_rcv))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[56]">>></a> lire
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[59]"></a>SPI_send</STRONG> (Thumb, 30 bytes, Stack size 0 bytes, driver_spi.o(i.SPI_send))
|
||||
<P><STRONG><a name="[5a]"></a>SPI_send</STRONG> (Thumb, 30 bytes, Stack size 0 bytes, driver_spi.o(i.SPI_send))
|
||||
<BR><BR>[Called By]<UL><LI><a href="#[56]">>></a> lire
|
||||
<LI><a href="#[58]">>></a> ecrire
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[54]"></a>Set_Duty_Cycle</STRONG> (Thumb, 76 bytes, Stack size 8 bytes, mytimer.o(i.Set_Duty_Cycle))
|
||||
|
@ -503,11 +507,11 @@ Global Symbols
|
|||
</UL>
|
||||
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f10x_md.o(RESET)
|
||||
</UL>
|
||||
<P><STRONG><a name="[69]"></a>__scatterload_copy</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_copy), UNUSED)
|
||||
<P><STRONG><a name="[6a]"></a>__scatterload_copy</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_copy), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[6a]"></a>__scatterload_null</STRONG> (Thumb, 2 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_null), UNUSED)
|
||||
<P><STRONG><a name="[6b]"></a>__scatterload_null</STRONG> (Thumb, 2 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_null), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[6b]"></a>__scatterload_zeroinit</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_zeroinit), UNUSED)
|
||||
<P><STRONG><a name="[6c]"></a>__scatterload_zeroinit</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_zeroinit), UNUSED)
|
||||
|
||||
<P><STRONG><a name="[4b]"></a>bordage</STRONG> (Thumb, 146 bytes, Stack size 56 bytes, bordage.o(i.bordage))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 144<LI>Call Chain = bordage ⇒ __aeabi_drsub ⇒ __aeabi_dadd ⇒ _double_epilogue ⇒ _double_round
|
||||
|
@ -527,42 +531,54 @@ Global Symbols
|
|||
<BR>[Called By]<UL><LI><a href="#[4a]">>></a> Roulis_Handler
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[55]"></a>chavirement_handler</STRONG> (Thumb, 44 bytes, Stack size 16 bytes, chavirement.o(i.chavirement_handler))
|
||||
<P><STRONG><a name="[55]"></a>chavirement_handler</STRONG> (Thumb, 36 bytes, Stack size 16 bytes, chavirement.o(i.chavirement_handler))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 168<LI>Call Chain = chavirement_handler ⇒ Roulis_Handler ⇒ bordage ⇒ __aeabi_drsub ⇒ __aeabi_dadd ⇒ _double_epilogue ⇒ _double_round
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[4a]">>></a> Roulis_Handler
|
||||
<LI><a href="#[56]">>></a> lire
|
||||
<BR>[Calls]<UL><LI><a href="#[56]">>></a> lire
|
||||
<LI><a href="#[4a]">>></a> Roulis_Handler
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[35]">>></a> main
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[57]"></a>chavirement_init</STRONG> (Thumb, 20 bytes, Stack size 8 bytes, chavirement.o(i.chavirement_init))
|
||||
<P><STRONG><a name="[57]"></a>chavirement_init</STRONG> (Thumb, 28 bytes, Stack size 8 bytes, chavirement.o(i.chavirement_init))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 24<LI>Call Chain = chavirement_init ⇒ lire
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[56]">>></a> lire
|
||||
<LI><a href="#[58]">>></a> ecrire
|
||||
<LI><a href="#[4c]">>></a> SPI_init_master
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[35]">>></a> main
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[58]"></a>ecrire</STRONG> (Thumb, 54 bytes, Stack size 16 bytes, chavirement.o(i.ecrire))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 16<LI>Call Chain = ecrire
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[5a]">>></a> SPI_send
|
||||
<LI><a href="#[49]">>></a> MyGPIO_Set
|
||||
<LI><a href="#[59]">>></a> MyGPIO_Reset
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[57]">>></a> chavirement_init
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[56]"></a>lire</STRONG> (Thumb, 58 bytes, Stack size 16 bytes, chavirement.o(i.lire))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 16<LI>Call Chain = lire
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[59]">>></a> SPI_send
|
||||
<LI><a href="#[5a]">>></a> SPI_rcv
|
||||
<BR>[Calls]<UL><LI><a href="#[5a]">>></a> SPI_send
|
||||
<LI><a href="#[5b]">>></a> SPI_rcv
|
||||
<LI><a href="#[49]">>></a> MyGPIO_Set
|
||||
<LI><a href="#[58]">>></a> MyGPIO_Reset
|
||||
<LI><a href="#[59]">>></a> MyGPIO_Reset
|
||||
</UL>
|
||||
<BR>[Called By]<UL><LI><a href="#[57]">>></a> chavirement_init
|
||||
<LI><a href="#[55]">>></a> chavirement_handler
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[35]"></a>main</STRONG> (Thumb, 30 bytes, Stack size 0 bytes, principal.o(i.main))
|
||||
<P><STRONG><a name="[35]"></a>main</STRONG> (Thumb, 34 bytes, Stack size 0 bytes, principal.o(i.main))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 168<LI>Call Chain = main ⇒ chavirement_handler ⇒ Roulis_Handler ⇒ bordage ⇒ __aeabi_drsub ⇒ __aeabi_dadd ⇒ _double_epilogue ⇒ _double_round
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[57]">>></a> chavirement_init
|
||||
<LI><a href="#[55]">>></a> chavirement_handler
|
||||
<LI><a href="#[5b]">>></a> MyGPIO_Activate
|
||||
<LI><a href="#[4a]">>></a> Roulis_Handler
|
||||
<LI><a href="#[5c]">>></a> MyGPIO_Activate
|
||||
</UL>
|
||||
<BR>[Address Reference Count : 1]<UL><LI> entry9a.o(.ARM.Collect$$$$0000000B)
|
||||
</UL><P>
|
||||
|
|
|
@ -34,7 +34,7 @@ I (C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cms
|
|||
I (C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_armcc.h)(0x5E8F3392)
|
||||
I (C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\system_stm32f10x.h)(0x58259ADC)
|
||||
F (..\Drivers\MyTimer.h)(0x61852D2E)()
|
||||
F (.\Local_Sources\principal.c)(0x61896043)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\Includes -I ..\Sources -I ..\Drivers
-I.\RTE\Device\STM32F103RB
-I.\RTE\_CarteSTM
-IC:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include
-IC:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="533" -D_RTE_ -DSTM32F10X_MD -D_RTE_
-o .\objects\principal.o --omf_browse .\objects\principal.crf --depend .\objects\principal.d)
|
||||
F (.\Local_Sources\principal.c)(0x61896D74)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\Includes -I ..\Sources -I ..\Drivers
-I.\RTE\Device\STM32F103RB
-I.\RTE\_CarteSTM
-IC:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include
-IC:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="533" -D_RTE_ -DSTM32F10X_MD -D_RTE_
-o .\objects\principal.o --omf_browse .\objects\principal.crf --depend .\objects\principal.d)
|
||||
I (..\Sources\chavirement.h)(0x61853E09)
|
||||
I (C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h)(0x58259ADC)
|
||||
I (.\RTE\_CarteSTM\RTE_Components.h)(0x61852267)
|
||||
|
@ -45,7 +45,8 @@ I (C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cms
|
|||
I (C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_armcc.h)(0x5E8F3392)
|
||||
I (C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\system_stm32f10x.h)(0x58259ADC)
|
||||
I (..\Drivers\Driver_GPIO.h)(0x6155C0E0)
|
||||
F (..\Sources\chavirement.c)(0x61896B2D)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\Includes -I ..\Sources -I ..\Drivers
-I.\RTE\Device\STM32F103RB
-I.\RTE\_CarteSTM
-IC:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include
-IC:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="533" -D_RTE_ -DSTM32F10X_MD -D_RTE_
-o .\objects\chavirement.o --omf_browse .\objects\chavirement.crf --depend .\objects\chavirement.d)
|
||||
I (..\Sources\bordage.h)(0x618526E6)
|
||||
F (..\Sources\chavirement.c)(0x618970CE)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\Includes -I ..\Sources -I ..\Drivers
-I.\RTE\Device\STM32F103RB
-I.\RTE\_CarteSTM
-IC:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include
-IC:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include
-D__UVISION_VERSION="533" -D_RTE_ -DSTM32F10X_MD -D_RTE_
-o .\objects\chavirement.o --omf_browse .\objects\chavirement.crf --depend .\objects\chavirement.d)
|
||||
I (..\Sources\chavirement.h)(0x61853E09)
|
||||
I (C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h)(0x58259ADC)
|
||||
I (.\RTE\_CarteSTM\RTE_Components.h)(0x61852267)
|
||||
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -38,7 +38,7 @@ void chavirement_init(void){
|
|||
SPI_init_master(SPI1) ;
|
||||
|
||||
//activer measure du power_ctl
|
||||
//ecrire(0x2D, 1<<3);
|
||||
ecrire(0x2D, 1<<3);
|
||||
device_id = (int) lire(0x0);
|
||||
|
||||
|
||||
|
@ -46,11 +46,11 @@ void chavirement_init(void){
|
|||
|
||||
|
||||
uint16_t chavirement_handler(void) {
|
||||
uint8_t lsb = lire(0x34);
|
||||
uint8_t msb = lire(0x35);
|
||||
uint16_t value = ((msb << 8) + lsb);
|
||||
uint8_t lsb = lire(0x36);
|
||||
uint8_t msb = lire(0x37);
|
||||
int16_t value = (int16_t) ((msb << 8) + lsb);
|
||||
|
||||
if ((value<384)|| (value>640)) {
|
||||
if (value > 221) {
|
||||
//appel fonction
|
||||
Roulis_Handler();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue