Compare commits

...

3 commits

Author SHA1 Message Date
joelimgu
1426897f2e Servo 2022-10-28 15:23:39 +02:00
joelimgu
1f33eb62e8 Driver Girouette Setup 2022-10-28 13:24:00 +02:00
joelimgu
deaf1c5b9c Arr = 360 2022-10-28 13:12:05 +02:00
24 changed files with 570 additions and 259 deletions

36
FileInclude/MyGirouette.c Normal file
View file

@ -0,0 +1,36 @@
#include "MyGirouette.h"
#include "Driver_GPIO.h"
#include "MyTimer.h"
void Init_Girouette(void){
MyGPIO_Struct_TypeDef GPIOA0={
GPIOA,
0,
In_Floating
};
MyGPIO_Struct_TypeDef GPIOA1={
GPIOA,
1,
In_Floating
};
// Configuration du timer
MyTimer_Struct_TypeDef TIM;
TIM.Timer = TIM2;
TIM.ARR = 360;
TIM.PSC = 0;
MyTimer_Base_Init(&TIM);
TIM2->CCMR1 |= 0x1 << 0; //CH1
TIM2->CCMR1 |= 0x1 << 8; //CH2
TIM2->SMCR |= 0x1 << 0; // Capture Mode : 1 => seulement les fronts montants 2 => seulement les fronts descendants 3 => les 2
MyGPIO_Init(&GPIOA0);
MyGPIO_Init(&GPIOA1);
MyTimer_Base_Start(TIM2);
}
uint16_t Get_Angle(void){return TIM2 -> CNT;}

View file

@ -0,0 +1,8 @@
#ifndef __MYGIROUETTE_H
#define __MYGIROUETTE_H
#include "stm32f10x.h"
void Init_Girouette(void);
uint16_t Get_Angle(void);
#endif

View file

@ -111,7 +111,7 @@ void MyTimer_PWM(TIM_TypeDef * Timer, char Channel){
gpio.GPIO_Conf = AltOut_Ppull;
// Activation la capture du compteur (CNT) dans le registre capture register
Timer->CCER |= TIM_CCER_CC1E;
@ -125,6 +125,7 @@ void MyTimer_PWM(TIM_TypeDef * Timer, char Channel){
Timer->CCMR1 |= TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2;
Timer->CCMR1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC1S); // mettre 00
Timer->CCR1 = 0;
Timer->CCER |= TIM_CCER_CC1E;
switch ((int)Timer) { // on cast le timer pour le comparer au pointeur des timers existants
case (int)TIM1 :
@ -161,6 +162,7 @@ void MyTimer_PWM(TIM_TypeDef * Timer, char Channel){
Timer->CCMR1 |= TIM_CCMR1_OC2M_1| TIM_CCMR1_OC2M_2;
Timer->CCMR1 &= ~(TIM_CCMR1_CC2S | TIM_CCMR1_CC2S); // mettre 00
Timer->CCR2 = 0;
Timer->CCER |= TIM_CCER_CC2E;
switch ((int)Timer) { // on cast le timer pour le comparer au pointeur des timers existants
case (int)TIM1 :
@ -192,10 +194,11 @@ void MyTimer_PWM(TIM_TypeDef * Timer, char Channel){
============== */
case 3 :
// On veut mettre les bits 4 à 6 de OC2M à 110 (PWM mode 1 p 349)
Timer->CCMR2 |= TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2;
Timer->CCMR2 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC1S); // mettre 00
// On veut mettre les bits 4 à 6 de OC2M à 110 (PWM mode 1 p 415)
Timer->CCMR2 |= TIM_CCMR2_OC3M_1 | TIM_CCMR2_OC3M_2;
Timer->CCMR2 &= ~(TIM_CCMR2_CC3S | TIM_CCMR2_CC3S); // mettre 00
Timer->CCR3 = 0;
Timer->CCER |= TIM_CCER_CC3E;
switch ((int)Timer) { // on cast le timer pour le comparer au pointeur des timers existants
case (int)TIM1 :
@ -226,10 +229,11 @@ void MyTimer_PWM(TIM_TypeDef * Timer, char Channel){
============== */
case 4 :
// On veut mettre les bits 12 à 14 de OC2M à 110 (PWM mode 1 p 349)
Timer->CCMR2 |= TIM_CCMR1_OC2M_1 | TIM_CCMR1_OC2M_2;
Timer->CCMR2 &= ~(TIM_CCMR1_CC2S | TIM_CCMR1_CC2S); // mettre 00
// On veut mettre les bits 12 à 14 de OC2M à 110 (PWM mode 1 p 415)
Timer->CCMR2 |= TIM_CCMR2_OC4M_1 | TIM_CCMR2_OC4M_2;
Timer->CCMR2 &= ~(TIM_CCMR2_CC4S | TIM_CCMR2_CC4S); // mettre 00
Timer->CCR4 = 0;
Timer->CCER |= TIM_CCER_CC4E;
switch ((int)Timer) { // on cast le timer pour le comparer au pointeur des timers existants
case (int)TIM1 :

View file

@ -8,7 +8,12 @@ Section Cross References
main.o(i.Callback) refers to myadc.o(i.read) for read
main.o(i.Callback) refers to main.o(.data) for a
main.o(i.main) refers to mytimer.o(i.MyTimer_Base_Init) for MyTimer_Base_Init
main.o(i.main) refers to driver_gpio.o(i.MyGPIO_Init) for MyGPIO_Init
main.o(i.main) refers to mytimer.o(i.MyTimer_PWM) for MyTimer_PWM
main.o(i.main) refers to mytimer.o(i.Get_Max_Duty) for Get_Max_Duty
main.o(i.main) refers to dfltui.o(.text) for __aeabi_ui2d
main.o(i.main) refers to dmul.o(.text) for __aeabi_dmul
main.o(i.main) refers to dfixui.o(.text) for __aeabi_d2uiz
main.o(i.main) refers to mytimer.o(i.Set_Duty_Cycle) for Set_Duty_Cycle
main.o(i.main) refers to mytimer.o(i.MyTimer_Base_Start) for MyTimer_Base_Start
main.o(i.main) refers to main.o(.constdata) for .constdata
mytimer.o(i.MyTimer_ActiveIT) refers to mytimer.o(.data) for ptr1
@ -17,6 +22,10 @@ Section Cross References
mytimer.o(i.TIM2_IRQHandler) refers to mytimer.o(.data) for ptr2
mytimer.o(i.TIM3_IRQHandler) refers to mytimer.o(.data) for ptr3
mytimer.o(i.TIM4_IRQHandler) refers to mytimer.o(.data) for ptr4
mygirouette.o(i.Init_Girouette) refers to mytimer.o(i.MyTimer_Base_Init) for MyTimer_Base_Init
mygirouette.o(i.Init_Girouette) refers to driver_gpio.o(i.MyGPIO_Init) for MyGPIO_Init
mygirouette.o(i.Init_Girouette) refers to mytimer.o(i.MyTimer_Base_Start) for MyTimer_Base_Start
mygirouette.o(i.Init_Girouette) refers to mygirouette.o(.constdata) for .constdata
startup_stm32f10x_md.o(RESET) refers to startup_stm32f10x_md.o(STACK) for __initial_sp
startup_stm32f10x_md.o(RESET) refers to startup_stm32f10x_md.o(.text) for Reset_Handler
startup_stm32f10x_md.o(RESET) refers to mytimer.o(i.TIM1_UP_IRQHandler) for TIM1_UP_IRQHandler
@ -36,6 +45,12 @@ Section Cross References
entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry9a.o(.ARM.Collect$$$$0000000B) for _main_init
entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry5.o(.ARM.Collect$$$$00000004) for _main_scatterload
entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry2.o(.ARM.Collect$$$$00000001) for _main_stk
dmul.o(.text) refers (Special) to iusefp.o(.text) for __I$use$fp
dmul.o(.text) refers to depilogue.o(.text) for _double_epilogue
dfltui.o(.text) refers (Special) to iusefp.o(.text) for __I$use$fp
dfltui.o(.text) refers to depilogue.o(.text) for _double_epilogue
dfixui.o(.text) refers (Special) to iusefp.o(.text) for __I$use$fp
dfixui.o(.text) refers to llushr.o(.text) for __aeabi_llsr
entry2.o(.ARM.Collect$$$$00000001) refers to entry2.o(.ARM.Collect$$$$00002712) for __lit__00000000
entry2.o(.ARM.Collect$$$$00002712) refers to startup_stm32f10x_md.o(STACK) for __initial_sp
entry2.o(__vectab_stack_and_reset_area) refers to startup_stm32f10x_md.o(STACK) for __initial_sp
@ -43,6 +58,8 @@ Section Cross References
entry5.o(.ARM.Collect$$$$00000004) refers to init.o(.text) for __scatterload
entry9a.o(.ARM.Collect$$$$0000000B) refers to main.o(i.main) for main
entry9b.o(.ARM.Collect$$$$0000000C) refers to main.o(i.main) for main
depilogue.o(.text) refers to llshl.o(.text) for __aeabi_llsl
depilogue.o(.text) refers to llushr.o(.text) for __aeabi_llsr
init.o(.text) refers to entry5.o(.ARM.Collect$$$$00000004) for __main_after_scatterload
@ -58,12 +75,9 @@ Removing Unused input sections from the image.
Removing mytimer.o(.rev16_text), (4 bytes).
Removing mytimer.o(.revsh_text), (4 bytes).
Removing mytimer.o(.rrx_text), (6 bytes).
Removing mytimer.o(i.Get_Max_Duty), (6 bytes).
Removing mytimer.o(i.Get_Timer_Count), (6 bytes).
Removing mytimer.o(i.MyTimer_ActiveIT), (176 bytes).
Removing mytimer.o(i.MyTimer_Base_Stop), (10 bytes).
Removing mytimer.o(i.MyTimer_PWM), (464 bytes).
Removing mytimer.o(i.Set_Duty_Cycle), (40 bytes).
Removing mytimer.o(i.Set_PWM_PRCT), (56 bytes).
Removing myadc.o(.rev16_text), (4 bytes).
Removing myadc.o(.revsh_text), (4 bytes).
@ -78,6 +92,12 @@ Removing Unused input sections from the image.
Removing driver_gpio.o(i.MyGPIO_Reset), (14 bytes).
Removing driver_gpio.o(i.MyGPIO_Set), (12 bytes).
Removing driver_gpio.o(i.MyGPIO_Toggle), (12 bytes).
Removing mygirouette.o(.rev16_text), (4 bytes).
Removing mygirouette.o(.revsh_text), (4 bytes).
Removing mygirouette.o(.rrx_text), (6 bytes).
Removing mygirouette.o(i.Get_Angle), (8 bytes).
Removing mygirouette.o(i.Init_Girouette), (112 bytes).
Removing mygirouette.o(.constdata), (24 bytes).
Removing startup_stm32f10x_md.o(HEAP), (512 bytes).
Removing system_stm32f10x.o(.rev16_text), (4 bytes).
Removing system_stm32f10x.o(.revsh_text), (4 bytes).
@ -85,7 +105,7 @@ Removing Unused input sections from the image.
Removing system_stm32f10x.o(i.SystemCoreClockUpdate), (164 bytes).
Removing system_stm32f10x.o(.data), (20 bytes).
34 unused section(s) (total 1710 bytes) removed from the image.
37 unused section(s) (total 1358 bytes) removed from the image.
==============================================================================
@ -95,26 +115,35 @@ Image Symbol Table
Symbol Name Value Ov Type Size Object(Section)
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.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 entry10a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry9b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry12a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry8b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry8a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry11a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry10b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry5.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.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/init/entry.s 0x00000000 Number 0 entry11a.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 entry9b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7b.o ABSOLUTE
../clib/microlib/longlong.c 0x00000000 Number 0 llushr.o ABSOLUTE
../clib/microlib/longlong.c 0x00000000 Number 0 llshl.o ABSOLUTE
../clib/microlib/stubs.s 0x00000000 Number 0 iusefp.o ABSOLUTE
../fplib/microlib/fpepilogue.c 0x00000000 Number 0 depilogue.o ABSOLUTE
../fplib/microlib/fpfix.c 0x00000000 Number 0 dfixui.o ABSOLUTE
../fplib/microlib/fpflt.c 0x00000000 Number 0 dfltui.o ABSOLUTE
../fplib/microlib/fpmul.c 0x00000000 Number 0 dmul.o ABSOLUTE
FileInclude\Driver_GPIO.c 0x00000000 Number 0 driver_gpio.o ABSOLUTE
FileInclude\MyADC.c 0x00000000 Number 0 myadc.o ABSOLUTE
FileInclude\MyGirouette.c 0x00000000 Number 0 mygirouette.o ABSOLUTE
FileInclude\MyTimer.c 0x00000000 Number 0 mytimer.o ABSOLUTE
FileInclude\\Driver_GPIO.c 0x00000000 Number 0 driver_gpio.o ABSOLUTE
FileInclude\\MyADC.c 0x00000000 Number 0 myadc.o ABSOLUTE
FileInclude\\MyGirouette.c 0x00000000 Number 0 mygirouette.o ABSOLUTE
FileInclude\\MyTimer.c 0x00000000 Number 0 mytimer.o ABSOLUTE
RTE\Device\STM32F103RB\startup_stm32f10x_md.s 0x00000000 Number 0 startup_stm32f10x_md.o ABSOLUTE
RTE\Device\STM32F103RB\system_stm32f10x.c 0x00000000 Number 0 system_stm32f10x.o ABSOLUTE
@ -137,24 +166,34 @@ Image Symbol Table
.ARM.Collect$$$$00002712 0x08000100 Section 4 entry2.o(.ARM.Collect$$$$00002712)
__lit__00000000 0x08000100 Data 4 entry2.o(.ARM.Collect$$$$00002712)
.text 0x08000104 Section 36 startup_stm32f10x_md.o(.text)
.text 0x08000128 Section 36 init.o(.text)
i.MyGPIO_Init 0x0800014c Section 0 driver_gpio.o(i.MyGPIO_Init)
i.MyTimer_Base_Init 0x08000200 Section 0 mytimer.o(i.MyTimer_Base_Init)
i.MyTimer_Base_Start 0x0800026c Section 0 mytimer.o(i.MyTimer_Base_Start)
i.SetSysClock 0x08000276 Section 0 system_stm32f10x.o(i.SetSysClock)
SetSysClock 0x08000277 Thumb Code 8 system_stm32f10x.o(i.SetSysClock)
i.SetSysClockTo72 0x08000280 Section 0 system_stm32f10x.o(i.SetSysClockTo72)
SetSysClockTo72 0x08000281 Thumb Code 214 system_stm32f10x.o(i.SetSysClockTo72)
i.SystemInit 0x08000360 Section 0 system_stm32f10x.o(i.SystemInit)
i.TIM1_UP_IRQHandler 0x080003c0 Section 0 mytimer.o(i.TIM1_UP_IRQHandler)
i.TIM2_IRQHandler 0x080003e4 Section 0 mytimer.o(i.TIM2_IRQHandler)
i.TIM3_IRQHandler 0x08000408 Section 0 mytimer.o(i.TIM3_IRQHandler)
i.TIM4_IRQHandler 0x0800042c Section 0 mytimer.o(i.TIM4_IRQHandler)
i.__scatterload_copy 0x08000450 Section 14 handlers.o(i.__scatterload_copy)
i.__scatterload_null 0x0800045e Section 2 handlers.o(i.__scatterload_null)
i.__scatterload_zeroinit 0x08000460 Section 14 handlers.o(i.__scatterload_zeroinit)
i.main 0x08000470 Section 0 main.o(i.main)
.constdata 0x080004e0 Section 24 main.o(.constdata)
.text 0x08000128 Section 0 dmul.o(.text)
.text 0x0800020c Section 0 dfltui.o(.text)
.text 0x08000226 Section 0 dfixui.o(.text)
.text 0x08000258 Section 0 llushr.o(.text)
.text 0x08000278 Section 0 depilogue.o(.text)
.text 0x08000278 Section 0 iusefp.o(.text)
.text 0x08000334 Section 36 init.o(.text)
.text 0x08000358 Section 0 llshl.o(.text)
i.Get_Max_Duty 0x08000376 Section 0 mytimer.o(i.Get_Max_Duty)
i.MyGPIO_Init 0x0800037c Section 0 driver_gpio.o(i.MyGPIO_Init)
i.MyTimer_Base_Init 0x08000430 Section 0 mytimer.o(i.MyTimer_Base_Init)
i.MyTimer_Base_Start 0x0800049c Section 0 mytimer.o(i.MyTimer_Base_Start)
i.MyTimer_PWM 0x080004a8 Section 0 mytimer.o(i.MyTimer_PWM)
i.SetSysClock 0x08000690 Section 0 system_stm32f10x.o(i.SetSysClock)
SetSysClock 0x08000691 Thumb Code 8 system_stm32f10x.o(i.SetSysClock)
i.SetSysClockTo72 0x08000698 Section 0 system_stm32f10x.o(i.SetSysClockTo72)
SetSysClockTo72 0x08000699 Thumb Code 214 system_stm32f10x.o(i.SetSysClockTo72)
i.Set_Duty_Cycle 0x08000778 Section 0 mytimer.o(i.Set_Duty_Cycle)
i.SystemInit 0x080007a0 Section 0 system_stm32f10x.o(i.SystemInit)
i.TIM1_UP_IRQHandler 0x08000800 Section 0 mytimer.o(i.TIM1_UP_IRQHandler)
i.TIM2_IRQHandler 0x08000824 Section 0 mytimer.o(i.TIM2_IRQHandler)
i.TIM3_IRQHandler 0x08000848 Section 0 mytimer.o(i.TIM3_IRQHandler)
i.TIM4_IRQHandler 0x0800086c Section 0 mytimer.o(i.TIM4_IRQHandler)
i.__scatterload_copy 0x08000890 Section 14 handlers.o(i.__scatterload_copy)
i.__scatterload_null 0x0800089e Section 2 handlers.o(i.__scatterload_null)
i.__scatterload_zeroinit 0x080008a0 Section 14 handlers.o(i.__scatterload_zeroinit)
i.main 0x080008b0 Section 0 main.o(i.main)
.constdata 0x08000914 Section 20 main.o(.constdata)
.data 0x20000000 Section 16 mytimer.o(.data)
STACK 0x20000010 Section 1024 startup_stm32f10x_md.o(STACK)
@ -162,7 +201,7 @@ Image Symbol Table
Symbol Name Value Ov Type Size Object(Section)
BuildAttributes$$THM_ISAv4$P$D$K$B$S$PE$A:L22UL41UL21$X:L11$S22US41US21$IEEE1$IW$USESV6$~STKCKD$USESV7$~SHL$OSPACE$EBA8$MICROLIB$REQ8$PRES8$EABIv2 0x00000000 Number 0 anon$$obj.o ABSOLUTE
BuildAttributes$$THM_ISAv4$P$D$K$B$S$PE$A:L22UL41UL21$X:L11$S22US41US21$IEEE1$IW$USESV6$~STKCKD$USESV7$~SHL$OSPACE$ROPI$EBA8$MICROLIB$REQ8$PRES8$EABIv2 0x00000000 Number 0 anon$$obj.o ABSOLUTE
__ARM_use_no_argv 0x00000000 Number 0 main.o ABSOLUTE
__arm_fini_ - Undefined Weak Reference
__cpp_initialize__aeabi_ - Undefined Weak Reference
@ -232,22 +271,35 @@ Image Symbol Table
USB_HP_CAN1_TX_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f10x_md.o(.text)
USB_LP_CAN1_RX0_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f10x_md.o(.text)
WWDG_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f10x_md.o(.text)
__scatterload 0x08000129 Thumb Code 28 init.o(.text)
__scatterload_rt2 0x08000129 Thumb Code 0 init.o(.text)
MyGPIO_Init 0x0800014d Thumb Code 166 driver_gpio.o(i.MyGPIO_Init)
MyTimer_Base_Init 0x08000201 Thumb Code 98 mytimer.o(i.MyTimer_Base_Init)
MyTimer_Base_Start 0x0800026d Thumb Code 10 mytimer.o(i.MyTimer_Base_Start)
SystemInit 0x08000361 Thumb Code 78 system_stm32f10x.o(i.SystemInit)
TIM1_UP_IRQHandler 0x080003c1 Thumb Code 28 mytimer.o(i.TIM1_UP_IRQHandler)
TIM2_IRQHandler 0x080003e5 Thumb Code 32 mytimer.o(i.TIM2_IRQHandler)
TIM3_IRQHandler 0x08000409 Thumb Code 28 mytimer.o(i.TIM3_IRQHandler)
TIM4_IRQHandler 0x0800042d Thumb Code 28 mytimer.o(i.TIM4_IRQHandler)
__scatterload_copy 0x08000451 Thumb Code 14 handlers.o(i.__scatterload_copy)
__scatterload_null 0x0800045f Thumb Code 2 handlers.o(i.__scatterload_null)
__scatterload_zeroinit 0x08000461 Thumb Code 14 handlers.o(i.__scatterload_zeroinit)
main 0x08000471 Thumb Code 106 main.o(i.main)
Region$$Table$$Base 0x080004f8 Number 0 anon$$obj.o(Region$$Table)
Region$$Table$$Limit 0x08000518 Number 0 anon$$obj.o(Region$$Table)
__aeabi_dmul 0x08000129 Thumb Code 228 dmul.o(.text)
__aeabi_ui2d 0x0800020d Thumb Code 26 dfltui.o(.text)
__aeabi_d2uiz 0x08000227 Thumb Code 50 dfixui.o(.text)
__aeabi_llsr 0x08000259 Thumb Code 32 llushr.o(.text)
_ll_ushift_r 0x08000259 Thumb Code 0 llushr.o(.text)
__I$use$fp 0x08000279 Thumb Code 0 iusefp.o(.text)
_double_round 0x08000279 Thumb Code 30 depilogue.o(.text)
_double_epilogue 0x08000297 Thumb Code 156 depilogue.o(.text)
__scatterload 0x08000335 Thumb Code 28 init.o(.text)
__scatterload_rt2 0x08000335 Thumb Code 0 init.o(.text)
__aeabi_llsl 0x08000359 Thumb Code 30 llshl.o(.text)
_ll_shift_l 0x08000359 Thumb Code 0 llshl.o(.text)
Get_Max_Duty 0x08000377 Thumb Code 6 mytimer.o(i.Get_Max_Duty)
MyGPIO_Init 0x0800037d Thumb Code 166 driver_gpio.o(i.MyGPIO_Init)
MyTimer_Base_Init 0x08000431 Thumb Code 98 mytimer.o(i.MyTimer_Base_Init)
MyTimer_Base_Start 0x0800049d Thumb Code 10 mytimer.o(i.MyTimer_Base_Start)
MyTimer_PWM 0x080004a9 Thumb Code 472 mytimer.o(i.MyTimer_PWM)
Set_Duty_Cycle 0x08000779 Thumb Code 40 mytimer.o(i.Set_Duty_Cycle)
SystemInit 0x080007a1 Thumb Code 78 system_stm32f10x.o(i.SystemInit)
TIM1_UP_IRQHandler 0x08000801 Thumb Code 28 mytimer.o(i.TIM1_UP_IRQHandler)
TIM2_IRQHandler 0x08000825 Thumb Code 32 mytimer.o(i.TIM2_IRQHandler)
TIM3_IRQHandler 0x08000849 Thumb Code 28 mytimer.o(i.TIM3_IRQHandler)
TIM4_IRQHandler 0x0800086d Thumb Code 28 mytimer.o(i.TIM4_IRQHandler)
__scatterload_copy 0x08000891 Thumb Code 14 handlers.o(i.__scatterload_copy)
__scatterload_null 0x0800089f Thumb Code 2 handlers.o(i.__scatterload_null)
__scatterload_zeroinit 0x080008a1 Thumb Code 14 handlers.o(i.__scatterload_zeroinit)
main 0x080008b1 Thumb Code 84 main.o(i.main)
Region$$Table$$Base 0x08000928 Number 0 anon$$obj.o(Region$$Table)
Region$$Table$$Limit 0x08000948 Number 0 anon$$obj.o(Region$$Table)
ptr1 0x20000000 Data 4 mytimer.o(.data)
ptr2 0x20000004 Data 4 mytimer.o(.data)
ptr3 0x20000008 Data 4 mytimer.o(.data)
@ -262,51 +314,62 @@ Memory Map of the image
Image Entry point : 0x080000ed
Load Region LR_IROM1 (Base: 0x08000000, Size: 0x00000528, Max: 0x00020000, ABSOLUTE)
Load Region LR_IROM1 (Base: 0x08000000, Size: 0x00000958, Max: 0x00020000, ABSOLUTE)
Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000518, Max: 0x00020000, ABSOLUTE)
Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000948, Max: 0x00020000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
0x08000000 0x08000000 0x000000ec Data RO 267 RESET startup_stm32f10x_md.o
0x080000ec 0x080000ec 0x00000000 Code RO 318 * .ARM.Collect$$$$00000000 mc_w.l(entry.o)
0x080000ec 0x080000ec 0x00000004 Code RO 321 .ARM.Collect$$$$00000001 mc_w.l(entry2.o)
0x080000f0 0x080000f0 0x00000004 Code RO 324 .ARM.Collect$$$$00000004 mc_w.l(entry5.o)
0x080000f4 0x080000f4 0x00000000 Code RO 326 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o)
0x080000f4 0x080000f4 0x00000000 Code RO 328 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o)
0x080000f4 0x080000f4 0x00000008 Code RO 329 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o)
0x080000fc 0x080000fc 0x00000004 Code RO 336 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o)
0x08000100 0x08000100 0x00000000 Code RO 331 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o)
0x08000100 0x08000100 0x00000000 Code RO 333 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o)
0x08000100 0x08000100 0x00000004 Code RO 322 .ARM.Collect$$$$00002712 mc_w.l(entry2.o)
0x08000104 0x08000104 0x00000024 Code RO 268 .text startup_stm32f10x_md.o
0x08000128 0x08000128 0x00000024 Code RO 337 .text mc_w.l(init.o)
0x0800014c 0x0800014c 0x000000b4 Code RO 220 i.MyGPIO_Init driver_gpio.o
0x08000200 0x08000200 0x0000006c Code RO 79 i.MyTimer_Base_Init mytimer.o
0x0800026c 0x0800026c 0x0000000a Code RO 80 i.MyTimer_Base_Start mytimer.o
0x08000276 0x08000276 0x00000008 Code RO 275 i.SetSysClock system_stm32f10x.o
0x0800027e 0x0800027e 0x00000002 PAD
0x08000280 0x08000280 0x000000e0 Code RO 276 i.SetSysClockTo72 system_stm32f10x.o
0x08000360 0x08000360 0x00000060 Code RO 278 i.SystemInit system_stm32f10x.o
0x080003c0 0x080003c0 0x00000024 Code RO 85 i.TIM1_UP_IRQHandler mytimer.o
0x080003e4 0x080003e4 0x00000024 Code RO 86 i.TIM2_IRQHandler mytimer.o
0x08000408 0x08000408 0x00000024 Code RO 87 i.TIM3_IRQHandler mytimer.o
0x0800042c 0x0800042c 0x00000024 Code RO 88 i.TIM4_IRQHandler mytimer.o
0x08000450 0x08000450 0x0000000e Code RO 341 i.__scatterload_copy mc_w.l(handlers.o)
0x0800045e 0x0800045e 0x00000002 Code RO 342 i.__scatterload_null mc_w.l(handlers.o)
0x08000460 0x08000460 0x0000000e Code RO 343 i.__scatterload_zeroinit mc_w.l(handlers.o)
0x0800046e 0x0800046e 0x00000002 PAD
0x08000470 0x08000470 0x00000070 Code RO 5 i.main main.o
0x080004e0 0x080004e0 0x00000018 Data RO 6 .constdata main.o
0x080004f8 0x080004f8 0x00000020 Data RO 339 Region$$Table anon$$obj.o
0x08000000 0x08000000 0x000000ec Data RO 304 RESET startup_stm32f10x_md.o
0x080000ec 0x080000ec 0x00000000 Code RO 355 * .ARM.Collect$$$$00000000 mc_w.l(entry.o)
0x080000ec 0x080000ec 0x00000004 Code RO 364 .ARM.Collect$$$$00000001 mc_w.l(entry2.o)
0x080000f0 0x080000f0 0x00000004 Code RO 367 .ARM.Collect$$$$00000004 mc_w.l(entry5.o)
0x080000f4 0x080000f4 0x00000000 Code RO 369 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o)
0x080000f4 0x080000f4 0x00000000 Code RO 371 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o)
0x080000f4 0x080000f4 0x00000008 Code RO 372 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o)
0x080000fc 0x080000fc 0x00000004 Code RO 379 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o)
0x08000100 0x08000100 0x00000000 Code RO 374 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o)
0x08000100 0x08000100 0x00000000 Code RO 376 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o)
0x08000100 0x08000100 0x00000004 Code RO 365 .ARM.Collect$$$$00002712 mc_w.l(entry2.o)
0x08000104 0x08000104 0x00000024 Code RO 305 .text startup_stm32f10x_md.o
0x08000128 0x08000128 0x000000e4 Code RO 358 .text mf_w.l(dmul.o)
0x0800020c 0x0800020c 0x0000001a Code RO 360 .text mf_w.l(dfltui.o)
0x08000226 0x08000226 0x00000032 Code RO 362 .text mf_w.l(dfixui.o)
0x08000258 0x08000258 0x00000020 Code RO 380 .text mc_w.l(llushr.o)
0x08000278 0x08000278 0x00000000 Code RO 382 .text mc_w.l(iusefp.o)
0x08000278 0x08000278 0x000000ba Code RO 383 .text mf_w.l(depilogue.o)
0x08000332 0x08000332 0x00000002 PAD
0x08000334 0x08000334 0x00000024 Code RO 385 .text mc_w.l(init.o)
0x08000358 0x08000358 0x0000001e Code RO 387 .text mc_w.l(llshl.o)
0x08000376 0x08000376 0x00000006 Code RO 79 i.Get_Max_Duty mytimer.o
0x0800037c 0x0800037c 0x000000b4 Code RO 223 i.MyGPIO_Init driver_gpio.o
0x08000430 0x08000430 0x0000006c Code RO 82 i.MyTimer_Base_Init mytimer.o
0x0800049c 0x0800049c 0x0000000a Code RO 83 i.MyTimer_Base_Start mytimer.o
0x080004a6 0x080004a6 0x00000002 PAD
0x080004a8 0x080004a8 0x000001e8 Code RO 85 i.MyTimer_PWM mytimer.o
0x08000690 0x08000690 0x00000008 Code RO 312 i.SetSysClock system_stm32f10x.o
0x08000698 0x08000698 0x000000e0 Code RO 313 i.SetSysClockTo72 system_stm32f10x.o
0x08000778 0x08000778 0x00000028 Code RO 86 i.Set_Duty_Cycle mytimer.o
0x080007a0 0x080007a0 0x00000060 Code RO 315 i.SystemInit system_stm32f10x.o
0x08000800 0x08000800 0x00000024 Code RO 88 i.TIM1_UP_IRQHandler mytimer.o
0x08000824 0x08000824 0x00000024 Code RO 89 i.TIM2_IRQHandler mytimer.o
0x08000848 0x08000848 0x00000024 Code RO 90 i.TIM3_IRQHandler mytimer.o
0x0800086c 0x0800086c 0x00000024 Code RO 91 i.TIM4_IRQHandler mytimer.o
0x08000890 0x08000890 0x0000000e Code RO 391 i.__scatterload_copy mc_w.l(handlers.o)
0x0800089e 0x0800089e 0x00000002 Code RO 392 i.__scatterload_null mc_w.l(handlers.o)
0x080008a0 0x080008a0 0x0000000e Code RO 393 i.__scatterload_zeroinit mc_w.l(handlers.o)
0x080008ae 0x080008ae 0x00000002 PAD
0x080008b0 0x080008b0 0x00000064 Code RO 5 i.main main.o
0x08000914 0x08000914 0x00000014 Data RO 6 .constdata main.o
0x08000928 0x08000928 0x00000020 Data RO 389 Region$$Table anon$$obj.o
Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x08000518, Size: 0x00000410, Max: 0x00005000, ABSOLUTE)
Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x08000948, Size: 0x00000410, Max: 0x00005000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
0x20000000 0x08000518 0x00000010 Data RW 89 .data mytimer.o
0x20000010 - 0x00000400 Zero RW 265 STACK startup_stm32f10x_md.o
0x20000000 0x08000948 0x00000010 Data RW 92 .data mytimer.o
0x20000010 - 0x00000400 Zero RW 302 STACK startup_stm32f10x_md.o
==============================================================================
@ -317,13 +380,13 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug Object Name
180 14 0 0 0 878 driver_gpio.o
112 6 24 0 0 207835 main.o
262 38 0 16 0 4318 mytimer.o
100 16 20 0 0 207811 main.o
796 54 0 16 0 6216 mytimer.o
36 8 236 0 1024 792 startup_stm32f10x_md.o
328 28 0 0 0 1901 system_stm32f10x.o
----------------------------------------------------------------------
920 94 292 16 1024 215724 Object Totals
1442 120 288 16 1024 217598 Object Totals
0 0 32 0 0 0 (incl. Generated)
2 0 0 0 0 0 (incl. Padding)
@ -342,19 +405,27 @@ Image component sizes
8 4 0 0 0 0 entry9a.o
30 0 0 0 0 0 handlers.o
36 8 0 0 0 68 init.o
0 0 0 0 0 0 iusefp.o
30 0 0 0 0 68 llshl.o
32 0 0 0 0 68 llushr.o
186 0 0 0 0 176 depilogue.o
50 0 0 0 0 76 dfixui.o
26 0 0 0 0 76 dfltui.o
228 0 0 0 0 96 dmul.o
----------------------------------------------------------------------
92 16 0 0 0 68 Library Totals
2 0 0 0 0 0 (incl. Padding)
646 16 0 0 0 628 Library Totals
4 0 0 0 0 0 (incl. Padding)
----------------------------------------------------------------------
Code (inc. data) RO Data RW Data ZI Data Debug Library Name
90 16 0 0 0 68 mc_w.l
152 16 0 0 0 204 mc_w.l
490 0 0 0 0 424 mf_w.l
----------------------------------------------------------------------
92 16 0 0 0 68 Library Totals
646 16 0 0 0 628 Library Totals
----------------------------------------------------------------------
@ -363,15 +434,15 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug
1012 110 292 16 1024 215476 Grand Totals
1012 110 292 16 1024 215476 ELF Image Totals
1012 110 292 16 0 0 ROM Totals
2088 136 288 16 1024 217494 Grand Totals
2088 136 288 16 1024 217494 ELF Image Totals
2088 136 288 16 0 0 ROM Totals
==============================================================================
Total RO Size (Code + RO Data) 1304 ( 1.27kB)
Total RO Size (Code + RO Data) 2376 ( 2.32kB)
Total RW Size (RW Data + ZI Data) 1040 ( 1.02kB)
Total ROM Size (Code + RO Data + RW Data) 1320 ( 1.29kB)
Total ROM Size (Code + RO Data + RW Data) 2392 ( 2.34kB)
==============================================================================

View file

@ -1,6 +1,6 @@
Dependencies for Project 'Projet1', Target 'Réel': (DO NOT MODIFY !)
CompilerVersion: 5060960::V5.06 update 7 (build 960)::.\ARMCC
F (.\Sources\main.c)(0x6352C494)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I .\FileInclude -I.\RTE\Device\STM32F103RB -I.\RTE\_R_el -IC:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -o .\objects\main.o --omf_browse .\objects\main.crf --depend .\objects\main.d)
F (.\Sources\main.c)(0x635BD358)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I .\FileInclude -I.\RTE\Device\STM32F103RB -I.\RTE\_R_el -IC:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -o .\objects\main.o --omf_browse .\objects\main.crf --depend .\objects\main.d)
I (C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h)(0x58258CCC)
I (.\RTE\_R_el\RTE_Components.h)(0x6352AB45)
I (C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\core_cm3.h)(0x5E8F2582)
@ -12,7 +12,8 @@ I (C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\system_
I (.\FileInclude\Driver_GPIO.h)(0x6352AB45)
I (.\FileInclude\MyTimer.h)(0x6352B1EA)
I (.\FileInclude\MyADC.h)(0x6352AB45)
F (.\FileInclude\MyTimer.c)(0x6352B454)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I .\FileInclude -I.\RTE\Device\STM32F103RB -I.\RTE\_R_el -IC:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -o .\objects\mytimer.o --omf_browse .\objects\mytimer.crf --depend .\objects\mytimer.d)
I (.\FileInclude\MyGirouette.h)(0x635BBB64)
F (.\FileInclude\MyTimer.c)(0x635BD048)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I .\FileInclude -I.\RTE\Device\STM32F103RB -I.\RTE\_R_el -IC:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -o .\objects\mytimer.o --omf_browse .\objects\mytimer.crf --depend .\objects\mytimer.d)
I (FileInclude\MyTimer.h)(0x6352B1EA)
I (C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h)(0x58258CCC)
I (.\RTE\_R_el\RTE_Components.h)(0x6352AB45)
@ -48,6 +49,19 @@ I (C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_compil
I (C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_armcc.h)(0x5E8F2582)
I (C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\system_stm32f10x.h)(0x58258CCC)
F (.\FileInclude\Driver_GPIO.h)(0x6352AB45)()
F (.\FileInclude\MyGirouette.c)(0x635BBB5F)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I .\FileInclude -I.\RTE\Device\STM32F103RB -I.\RTE\_R_el -IC:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -o .\objects\mygirouette.o --omf_browse .\objects\mygirouette.crf --depend .\objects\mygirouette.d)
I (FileInclude\MyGirouette.h)(0x635BBB64)
I (C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h)(0x58258CCC)
I (.\RTE\_R_el\RTE_Components.h)(0x6352AB45)
I (C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\core_cm3.h)(0x5E8F2582)
I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5E8E9122)
I (C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_version.h)(0x5E8F2582)
I (C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_compiler.h)(0x5E835B22)
I (C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_armcc.h)(0x5E8F2582)
I (C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\system_stm32f10x.h)(0x58258CCC)
I (FileInclude\Driver_GPIO.h)(0x6352AB45)
I (FileInclude\MyTimer.h)(0x6352B1EA)
F (.\FileInclude\MyGirouette.h)(0x635BBB64)()
F (RTE\Device\STM32F103RB\RTE_Device.h)(0x6352AB45)()
F (RTE\Device\STM32F103RB\startup_stm32f10x_md.s)(0x6352AB45)(--cpu Cortex-M3 --pd "__EVAL SETA 1" -g --apcs=interwork --pd "__MICROLIB SETA 1" -I.\RTE\Device\STM32F103RB -I.\RTE\_R_el -IC:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include --pd "__UVISION_VERSION SETA 534" --pd "_RTE_ SETA 1" --pd "STM32F10X_MD SETA 1" --pd "_RTE_ SETA 1" --list .\listings\startup_stm32f10x_md.lst --xref -o .\objects\startup_stm32f10x_md.o --depend .\objects\startup_stm32f10x_md.d)
F (RTE\Device\STM32F103RB\system_stm32f10x.c)(0x6352B469)(-c --cpu Cortex-M3 -D__EVAL -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I .\FileInclude -I.\RTE\Device\STM32F103RB -I.\RTE\_R_el -IC:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -o .\objects\system_stm32f10x.o --omf_browse .\objects\system_stm32f10x.crf --depend .\objects\system_stm32f10x.d)

Binary file not shown.

View file

@ -22,20 +22,24 @@ Dialog DLL: TARMSTM.DLL V1.66.0.0
<h2>Project:</h2>
U:\Documents\4IR\TP_Voilier\Projet1.uvprojx
Project File Date: 10/21/2022
Project File Date: 10/28/2022
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'Réel'
assembling startup_stm32f10x_md.s...
compiling Driver_GPIO.c...
compiling MyADC.c...
compiling system_stm32f10x.c...
compiling MyGirouette.c...
compiling main.c...
Sources\main.c(24): warning: #177-D: variable "GPIOB8" was declared but never referenced
MyGPIO_Struct_TypeDef GPIOB8={
Sources\main.c: 1 warning, 0 errors
compiling Driver_GPIO.c...
compiling MyTimer.c...
linking...
Program Size: Code=1012 RO-data=292 RW-data=16 ZI-data=1024
".\Objects\Projet1_Simulation.axf" - 0 Error(s), 0 Warning(s).
Program Size: Code=2088 RO-data=288 RW-data=16 ZI-data=1024
".\Objects\Projet1_Simulation.axf" - 0 Error(s), 1 Warning(s).
<h2>Software Packages used:</h2>
@ -62,11 +66,11 @@ Package Vendor: Keil
* Component: ARM::CMSIS:CORE:5.4.0
* Component: Keil::Device:Startup:1.0.0
Source file: Device\Source\ARM\STM32F1xx_OPT.s
Source file: Device\Source\ARM\startup_stm32f10x_md.s
Include file: RTE_Driver\Config\RTE_Device.h
Source file: Device\Source\system_stm32f10x.c
Build Time Elapsed: 00:00:01
Source file: Device\Source\ARM\STM32F1xx_OPT.s
Include file: RTE_Driver\Config\RTE_Device.h
Build Time Elapsed: 00:00:02
</pre>
</body>
</html>

View file

@ -3,11 +3,11 @@
<title>Static Call Graph - [.\Objects\Projet1_Simulation.axf]</title></head>
<body><HR>
<H1>Static Call Graph for image .\Objects\Projet1_Simulation.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060960: Last Updated: Fri Oct 21 18:12:21 2022
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060960: Last Updated: Fri Oct 28 15:04:29 2022
<BR><P>
<H3>Maximum Stack Usage = 44 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
<H3>Maximum Stack Usage = 112 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3>
main &rArr; MyGPIO_Init
main &rArr; __aeabi_dmul &rArr; _double_epilogue &rArr; _double_round
<P>
<H3>
Mutually Recursive functions
@ -90,27 +90,27 @@ 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="[40]"></a>_main_stk</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry2.o(.ARM.Collect$$$$00000001))
<P><STRONG><a name="[4a]"></a>_main_stk</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry2.o(.ARM.Collect$$$$00000001))
<P><STRONG><a name="[38]"></a>_main_scatterload</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004))
<BR><BR>[Calls]<UL><LI><a href="#[39]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__scatterload
</UL>
<P><STRONG><a name="[3a]"></a>__main_after_scatterload</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004))
<P><STRONG><a name="[41]"></a>__main_after_scatterload</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004))
<BR><BR>[Called By]<UL><LI><a href="#[39]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__scatterload
</UL>
<P><STRONG><a name="[41]"></a>_main_clock</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry7b.o(.ARM.Collect$$$$00000008))
<P><STRONG><a name="[4b]"></a>_main_clock</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry7b.o(.ARM.Collect$$$$00000008))
<P><STRONG><a name="[42]"></a>_main_cpp_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry8b.o(.ARM.Collect$$$$0000000A))
<P><STRONG><a name="[4c]"></a>_main_cpp_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry8b.o(.ARM.Collect$$$$0000000A))
<P><STRONG><a name="[43]"></a>_main_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry9a.o(.ARM.Collect$$$$0000000B))
<P><STRONG><a name="[4d]"></a>_main_init</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry9a.o(.ARM.Collect$$$$0000000B))
<P><STRONG><a name="[44]"></a>__rt_lib_shutdown_fini</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry12b.o(.ARM.Collect$$$$0000000E))
<P><STRONG><a name="[4e]"></a>__rt_lib_shutdown_fini</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry12b.o(.ARM.Collect$$$$0000000E))
<P><STRONG><a name="[45]"></a>__rt_final_cpp</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry10a.o(.ARM.Collect$$$$0000000F))
<P><STRONG><a name="[4f]"></a>__rt_final_cpp</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry10a.o(.ARM.Collect$$$$0000000F))
<P><STRONG><a name="[46]"></a>__rt_final_exit</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry11a.o(.ARM.Collect$$$$00000011))
<P><STRONG><a name="[50]"></a>__rt_final_exit</STRONG> (Thumb, 0 bytes, Stack size unknown bytes, entry11a.o(.ARM.Collect$$$$00000011))
<P><STRONG><a name="[0]"></a>Reset_Handler</STRONG> (Thumb, 8 bytes, Stack size 0 bytes, startup_stm32f10x_md.o(.text))
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f10x_md.o(RESET)
@ -299,32 +299,104 @@ Global Symbols
<P><STRONG><a name="[a]"></a>WWDG_IRQHandler</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, startup_stm32f10x_md.o(.text))
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f10x_md.o(RESET)
</UL>
<P><STRONG><a name="[39]"></a>__scatterload</STRONG> (Thumb, 28 bytes, Stack size 0 bytes, init.o(.text))
<BR><BR>[Calls]<UL><LI><a href="#[3a]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__main_after_scatterload
<P><STRONG><a name="[3a]"></a>__aeabi_dmul</STRONG> (Thumb, 228 bytes, Stack size 48 bytes, dmul.o(.text))
<BR><BR>[Stack]<UL><LI>Max Depth = 88<LI>Call Chain = __aeabi_dmul &rArr; _double_epilogue &rArr; _double_round
</UL>
<BR>[Called By]<UL><LI><a href="#[38]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_main_scatterload
</UL>
<P><STRONG><a name="[47]"></a>__scatterload_rt2</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, init.o(.text), UNUSED)
<P><STRONG><a name="[3e]"></a>MyGPIO_Init</STRONG> (Thumb, 166 bytes, Stack size 12 bytes, driver_gpio.o(i.MyGPIO_Init))
<BR><BR>[Stack]<UL><LI>Max Depth = 12<LI>Call Chain = MyGPIO_Init
<BR>[Calls]<UL><LI><a href="#[3b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_double_epilogue
</UL>
<BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[3d]"></a>MyTimer_Base_Init</STRONG> (Thumb, 98 bytes, Stack size 0 bytes, mytimer.o(i.MyTimer_Base_Init))
<P><STRONG><a name="[3c]"></a>__aeabi_ui2d</STRONG> (Thumb, 26 bytes, Stack size 16 bytes, dfltui.o(.text))
<BR><BR>[Stack]<UL><LI>Max Depth = 56<LI>Call Chain = __aeabi_ui2d &rArr; _double_epilogue &rArr; _double_round
</UL>
<BR>[Calls]<UL><LI><a href="#[3b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_double_epilogue
</UL>
<BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[3d]"></a>__aeabi_d2uiz</STRONG> (Thumb, 50 bytes, Stack size 8 bytes, dfixui.o(.text))
<BR><BR>[Stack]<UL><LI>Max Depth = 8<LI>Call Chain = __aeabi_d2uiz
</UL>
<BR>[Calls]<UL><LI><a href="#[3e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_llsr
</UL>
<BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[3e]"></a>__aeabi_llsr</STRONG> (Thumb, 32 bytes, Stack size 0 bytes, llushr.o(.text))
<BR><BR>[Called By]<UL><LI><a href="#[3b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_double_epilogue
<LI><a href="#[3d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_d2uiz
</UL>
<P><STRONG><a name="[51]"></a>_ll_ushift_r</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llushr.o(.text), UNUSED)
<P><STRONG><a name="[52]"></a>__I$use$fp</STRONG> (Thumb, 0 bytes, Stack size 8 bytes, iusefp.o(.text), UNUSED)
<P><STRONG><a name="[40]"></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
</UL>
<BR>[Called By]<UL><LI><a href="#[3b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_double_epilogue
</UL>
<P><STRONG><a name="[3b]"></a>_double_epilogue</STRONG> (Thumb, 156 bytes, Stack size 32 bytes, depilogue.o(.text))
<BR><BR>[Stack]<UL><LI>Max Depth = 40<LI>Call Chain = _double_epilogue &rArr; _double_round
</UL>
<BR>[Calls]<UL><LI><a href="#[3f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_llsl
<LI><a href="#[40]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_double_round
<LI><a href="#[3e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_llsr
</UL>
<BR>[Called By]<UL><LI><a href="#[3c]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_ui2d
<LI><a href="#[3a]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_dmul
</UL>
<P><STRONG><a name="[39]"></a>__scatterload</STRONG> (Thumb, 28 bytes, Stack size 0 bytes, init.o(.text))
<BR><BR>[Calls]<UL><LI><a href="#[41]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__main_after_scatterload
</UL>
<BR>[Called By]<UL><LI><a href="#[38]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_main_scatterload
</UL>
<P><STRONG><a name="[53]"></a>__scatterload_rt2</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, init.o(.text), UNUSED)
<P><STRONG><a name="[3f]"></a>__aeabi_llsl</STRONG> (Thumb, 30 bytes, Stack size 0 bytes, llshl.o(.text))
<BR><BR>[Called By]<UL><LI><a href="#[3b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;_double_epilogue
</UL>
<P><STRONG><a name="[54]"></a>_ll_shift_l</STRONG> (Thumb, 0 bytes, Stack size 0 bytes, llshl.o(.text), UNUSED)
<P><STRONG><a name="[47]"></a>Get_Max_Duty</STRONG> (Thumb, 6 bytes, Stack size 0 bytes, mytimer.o(i.Get_Max_Duty))
<BR><BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[3f]"></a>MyTimer_Base_Start</STRONG> (Thumb, 10 bytes, Stack size 0 bytes, mytimer.o(i.MyTimer_Base_Start))
<P><STRONG><a name="[43]"></a>MyGPIO_Init</STRONG> (Thumb, 166 bytes, Stack size 12 bytes, driver_gpio.o(i.MyGPIO_Init))
<BR><BR>[Stack]<UL><LI>Max Depth = 12<LI>Call Chain = MyGPIO_Init
</UL>
<BR>[Called By]<UL><LI><a href="#[42]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyTimer_PWM
</UL>
<P><STRONG><a name="[46]"></a>MyTimer_Base_Init</STRONG> (Thumb, 98 bytes, Stack size 0 bytes, mytimer.o(i.MyTimer_Base_Init))
<BR><BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[49]"></a>MyTimer_Base_Start</STRONG> (Thumb, 10 bytes, Stack size 0 bytes, mytimer.o(i.MyTimer_Base_Start))
<BR><BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[42]"></a>MyTimer_PWM</STRONG> (Thumb, 472 bytes, Stack size 24 bytes, mytimer.o(i.MyTimer_PWM))
<BR><BR>[Stack]<UL><LI>Max Depth = 36<LI>Call Chain = MyTimer_PWM &rArr; MyGPIO_Init
</UL>
<BR>[Calls]<UL><LI><a href="#[43]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyGPIO_Init
</UL>
<BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[48]"></a>Set_Duty_Cycle</STRONG> (Thumb, 40 bytes, Stack size 0 bytes, mytimer.o(i.Set_Duty_Cycle))
<BR><BR>[Called By]<UL><LI><a href="#[35]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;main
</UL>
<P><STRONG><a name="[36]"></a>SystemInit</STRONG> (Thumb, 78 bytes, Stack size 8 bytes, system_stm32f10x.o(i.SystemInit))
<BR><BR>[Stack]<UL><LI>Max Depth = 28<LI>Call Chain = SystemInit &rArr; SetSysClock &rArr; SetSysClockTo72
</UL>
<BR>[Calls]<UL><LI><a href="#[3b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SetSysClock
<BR>[Calls]<UL><LI><a href="#[44]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SetSysClock
</UL>
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f10x_md.o(.text)
</UL>
@ -348,36 +420,41 @@ Global Symbols
</UL>
<BR>[Address Reference Count : 1]<UL><LI> startup_stm32f10x_md.o(RESET)
</UL>
<P><STRONG><a name="[48]"></a>__scatterload_copy</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_copy), UNUSED)
<P><STRONG><a name="[55]"></a>__scatterload_copy</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_copy), UNUSED)
<P><STRONG><a name="[49]"></a>__scatterload_null</STRONG> (Thumb, 2 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_null), UNUSED)
<P><STRONG><a name="[56]"></a>__scatterload_null</STRONG> (Thumb, 2 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_null), UNUSED)
<P><STRONG><a name="[4a]"></a>__scatterload_zeroinit</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_zeroinit), UNUSED)
<P><STRONG><a name="[57]"></a>__scatterload_zeroinit</STRONG> (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_zeroinit), UNUSED)
<P><STRONG><a name="[35]"></a>main</STRONG> (Thumb, 106 bytes, Stack size 32 bytes, main.o(i.main))
<BR><BR>[Stack]<UL><LI>Max Depth = 44<LI>Call Chain = main &rArr; MyGPIO_Init
<P><STRONG><a name="[35]"></a>main</STRONG> (Thumb, 84 bytes, Stack size 24 bytes, main.o(i.main))
<BR><BR>[Stack]<UL><LI>Max Depth = 112<LI>Call Chain = main &rArr; __aeabi_dmul &rArr; _double_epilogue &rArr; _double_round
</UL>
<BR>[Calls]<UL><LI><a href="#[3f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyTimer_Base_Start
<LI><a href="#[3d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyTimer_Base_Init
<LI><a href="#[3e]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyGPIO_Init
<BR>[Calls]<UL><LI><a href="#[3c]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_ui2d
<LI><a href="#[3a]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_dmul
<LI><a href="#[3d]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_d2uiz
<LI><a href="#[48]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;Set_Duty_Cycle
<LI><a href="#[42]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyTimer_PWM
<LI><a href="#[49]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyTimer_Base_Start
<LI><a href="#[46]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;MyTimer_Base_Init
<LI><a href="#[47]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;Get_Max_Duty
</UL>
<BR>[Address Reference Count : 1]<UL><LI> entry9a.o(.ARM.Collect$$$$0000000B)
</UL><P>
<H3>
Local Symbols
</H3>
<P><STRONG><a name="[3b]"></a>SetSysClock</STRONG> (Thumb, 8 bytes, Stack size 8 bytes, system_stm32f10x.o(i.SetSysClock))
<P><STRONG><a name="[44]"></a>SetSysClock</STRONG> (Thumb, 8 bytes, Stack size 8 bytes, system_stm32f10x.o(i.SetSysClock))
<BR><BR>[Stack]<UL><LI>Max Depth = 20<LI>Call Chain = SetSysClock &rArr; SetSysClockTo72
</UL>
<BR>[Calls]<UL><LI><a href="#[3c]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SetSysClockTo72
<BR>[Calls]<UL><LI><a href="#[45]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SetSysClockTo72
</UL>
<BR>[Called By]<UL><LI><a href="#[36]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SystemInit
</UL>
<P><STRONG><a name="[3c]"></a>SetSysClockTo72</STRONG> (Thumb, 214 bytes, Stack size 12 bytes, system_stm32f10x.o(i.SetSysClockTo72))
<P><STRONG><a name="[45]"></a>SetSysClockTo72</STRONG> (Thumb, 214 bytes, Stack size 12 bytes, system_stm32f10x.o(i.SetSysClockTo72))
<BR><BR>[Stack]<UL><LI>Max Depth = 12<LI>Call Chain = SetSysClockTo72
</UL>
<BR>[Called By]<UL><LI><a href="#[3b]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SetSysClock
<BR>[Called By]<UL><LI><a href="#[44]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;SetSysClock
</UL>
<P>
<H3>

View file

@ -3,6 +3,7 @@
".\objects\mytimer.o"
".\objects\myadc.o"
".\objects\driver_gpio.o"
".\objects\mygirouette.o"
".\objects\startup_stm32f10x_md.o"
".\objects\system_stm32f10x.o"
--library_type=microlib --strict --scatter ".\Objects\Projet1_Simulation.sct"

Binary file not shown.

Binary file not shown.

View file

@ -10,3 +10,4 @@
.\objects\main.o: .\FileInclude\Driver_GPIO.h
.\objects\main.o: .\FileInclude\MyTimer.h
.\objects\main.o: .\FileInclude\MyADC.h
.\objects\main.o: .\FileInclude\MyGirouette.h

Binary file not shown.

Binary file not shown.

BIN
Objects/mygirouette.crf Normal file

Binary file not shown.

12
Objects/mygirouette.d Normal file
View file

@ -0,0 +1,12 @@
.\objects\mygirouette.o: FileInclude\MyGirouette.c
.\objects\mygirouette.o: FileInclude\MyGirouette.h
.\objects\mygirouette.o: C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h
.\objects\mygirouette.o: .\RTE\_R_el\RTE_Components.h
.\objects\mygirouette.o: C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\core_cm3.h
.\objects\mygirouette.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
.\objects\mygirouette.o: C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_version.h
.\objects\mygirouette.o: C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_compiler.h
.\objects\mygirouette.o: C:\Programdata\Keil\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_armcc.h
.\objects\mygirouette.o: C:\Programdata\Keil\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\system_stm32f10x.h
.\objects\mygirouette.o: FileInclude\Driver_GPIO.h
.\objects\mygirouette.o: FileInclude\MyTimer.h

BIN
Objects/mygirouette.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -302,7 +302,7 @@
<SetRegEntry>
<Number>0</Number>
<Key>DLGTARM</Key>
<Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=757,193,1178,598,0)(121=-1,-1,-1,-1,0)(122=1260,243,1681,648,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=150,186,744,880,0)(131=697,228,1291,922,0)(132=-1,-1,-1,-1,0)(133=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)</Name>
<Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=60,88,280,548,0)(111=60,88,280,548,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=757,193,1178,598,0)(121=75,104,496,509,0)(122=1260,243,1681,648,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=150,186,744,880,0)(131=1231,145,1825,839,0)(132=-1,-1,-1,-1,0)(133=1272,303,1866,997,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)</Name>
</SetRegEntry>
<SetRegEntry>
<Number>0</Number>
@ -342,6 +342,11 @@
<WinNumber>1</WinNumber>
<ItemText>a,0x0A</ItemText>
</Ww>
<Ww>
<count>1</count>
<WinNumber>1</WinNumber>
<ItemText>a</ItemText>
</Ww>
</WatchWindow1>
<Tracepoint>
<THDelay>0</THDelay>
@ -493,6 +498,30 @@
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>8</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\FileInclude\MyGirouette.c</PathWithFileName>
<FilenameWithoutPath>MyGirouette.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>9</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\FileInclude\MyGirouette.h</PathWithFileName>
<FilenameWithoutPath>MyGirouette.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>
<Group>

View file

@ -423,6 +423,16 @@
<FileType>5</FileType>
<FilePath>.\FileInclude\Driver_GPIO.h</FilePath>
</File>
<File>
<FileName>MyGirouette.c</FileName>
<FileType>1</FileType>
<FilePath>.\FileInclude\MyGirouette.c</FilePath>
</File>
<File>
<FileName>MyGirouette.h</FileName>
<FileType>5</FileType>
<FilePath>.\FileInclude\MyGirouette.h</FilePath>
</File>
</Files>
</Group>
<Group>
@ -850,6 +860,16 @@
<FileType>5</FileType>
<FilePath>.\FileInclude\Driver_GPIO.h</FilePath>
</File>
<File>
<FileName>MyGirouette.c</FileName>
<FileType>1</FileType>
<FilePath>.\FileInclude\MyGirouette.c</FilePath>
</File>
<File>
<FileName>MyGirouette.h</FileName>
<FileType>5</FileType>
<FilePath>.\FileInclude\MyGirouette.h</FilePath>
</File>
</Files>
</Group>
<Group>

View file

@ -2,6 +2,7 @@
#include <Driver_GPIO.h>
#include <MyTimer.h>
#include <MyADC.h>
#include <MyGirouette.h>
int a ;
@ -12,39 +13,27 @@ int a ;
int main (void)
// (PSC+1)*(ARR+1)/fClk
{
MyGPIO_Struct_TypeDef GPIOA0={
GPIOA,
0,
In_Floating
};
MyGPIO_Struct_TypeDef GPIOA1={
GPIOA,
1,
In_Floating
};
//char channel = 1;
// Configuration du timer
MyTimer_Struct_TypeDef TIM;
TIM.Timer = TIM2;
TIM.ARR = 60000;
TIM.PSC = 0;
MyTimer_Struct_TypeDef Tim_Conf_Servo = {
TIM4,
1199,
1199
};
MyGPIO_Struct_TypeDef GPIOB8={
GPIOB,
8,
AltOut_Ppull
};
MyTimer_Base_Init(&TIM);
MyTimer_Base_Init(&Tim_Conf_Servo);
// MyGPIO_Init(&GPIOB8);
MyTimer_PWM(TIM4,3);
Set_Duty_Cycle(TIM4,3,0.08*Get_Max_Duty(TIM4));
//Set_PWM_PRCT(TIM4,3,10);
MyTimer_Base_Start(TIM4);
TIM2->CCMR1 |= 0x1 << 8; //CH2
TIM2->CCMR1 |= 0x1 << 0; //CH1
TIM2->SMCR |= 0x1 << 0; // Capture Mode : 1 => seulement les fronts montants 2 => seulement les fronts descendants 3 => les 2
MyGPIO_Init(&GPIOA0);
MyGPIO_Init(&GPIOA1);
MyTimer_Base_Start(TIM2);
while (1) {
}
while (1) {}
}