diff --git a/timer_act2/Includes/Driver_TIMER.c b/timer_act2/Includes/Driver_TIMER.c index 7e98922..466e324 100644 --- a/timer_act2/Includes/Driver_TIMER.c +++ b/timer_act2/Includes/Driver_TIMER.c @@ -77,3 +77,49 @@ void TIM4_IRQHandler(void) { if(IT_function_TIM4) (* IT_function_TIM4) (); } + +void MyTimer_PWM(TIM_TypeDef * Timer, char Channel) { + if (Timer == TIM1) { + TIM1 -> BDTR |= 1 << 15 ; + } + + switch (Channel) { + case 1 : + //7=0b111 et 6=0b110 + Timer -> CCMR1 &= ~(7 << 4) ; + //on rajoute un OU sur le OC1PE + Timer -> CCMR1 |= ~(6 << 4) | (1<<3); + break ; + case 2 : + Timer -> CCMR1 &= ~(7 << 12) ; + Timer -> CCMR1 |= ~(6 << 12) | (1<<11); + break ; + case 3 : + Timer -> CCMR2 &= ~(7 << 4) ; + Timer -> CCMR2 |= ~(6 << 4) | (1<<3); + break ; + case 4 : + Timer -> CCMR2 &= ~(7 << 12) ; + Timer -> CCMR2 |= ~(6 << 12) | (1<<11); + break ; + } + Timer -> CR1 |= 1 << 7 ; +} + +void MyTimer_PWM_set_cycle(TIM_TypeDef * Timer, float prop, char channel) { + switch (channel) { + case 1 : + Timer->CCR1 = (int) (Timer -> ARR * prop) ; + break ; + case 2 : + Timer->CCR2 = (int) (Timer -> ARR * prop) ; + break ; + case 3 : + Timer->CCR3 = (int) (Timer -> ARR * prop) ; + break ; + case 4 : + Timer->CCR4 = (int) (Timer -> ARR * prop) ; + break ; + } +} + diff --git a/timer_act2/Includes/Driver_TIMER.h b/timer_act2/Includes/Driver_TIMER.h index 327e3c3..b2e69e8 100644 --- a/timer_act2/Includes/Driver_TIMER.h +++ b/timer_act2/Includes/Driver_TIMER.h @@ -16,8 +16,11 @@ void TIM1_TRG_COM_IRQHandler(void) ; void TIM2_IRQHandler(void) ; void TIM3_IRQHandler(void) ; void TIM4_IRQHandler(void) ; +void MyTimer_PWM( TIM_TypeDef *, char) ; +void MyTimer_PWM_set_cycle(TIM_TypeDef *, float, char) ; + #define MyTimer_Base_Start(Timer) (Timer->CR1 |= 0x1) #define MyTimer_Base_Stop(Timer) (Timer->CR1 &= ~0x1) - +//#define MyTimer_PWM_set_cycle(Timer, prop, channel) (Timer->CCRchannel = (int) (Timer -> ARR * prop) #endif diff --git a/timer_act2/Listings/startup_stm32f10x_md.lst b/timer_act2/Listings/startup_stm32f10x_md.lst index e0cfc58..a7f0aa1 100644 --- a/timer_act2/Listings/startup_stm32f10x_md.lst +++ b/timer_act2/Listings/startup_stm32f10x_md.lst @@ -465,13 +465,13 @@ ARM Macro Assembler Page 8 00000000 Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M3 --apcs=interw ork --depend=.\objects\startup_stm32f10x_md.d -o.\objects\startup_stm32f10x_md. -o -I.\RTE\Device\STM32F103RB -I.\RTE\_carteSTM -IC:\Users\chauz\AppData\Local\A -rm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Users\chauz\AppData\Local\Arm\ -Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include --predefine="__EVAL SETA 1" --pre -define="__MICROLIB SETA 1" --predefine="__UVISION_VERSION SETA 533" --predefine -="_RTE_ SETA 1" --predefine="STM32F10X_MD SETA 1" --predefine="_RTE_ SETA 1" -- -list=.\listings\startup_stm32f10x_md.lst RTE\Device\STM32F103RB\startup_stm32f1 -0x_md.s +o -I.\RTE\Device\STM32F103RB -I.\RTE\_Simulation -IC:\Users\chauz\AppData\Local +\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Users\chauz\AppData\Local\Ar +m\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include --predefine="__EVAL SETA 1" --p +redefine="__MICROLIB SETA 1" --predefine="__UVISION_VERSION SETA 533" --predefi +ne="_RTE_ SETA 1" --predefine="STM32F10X_MD SETA 1" --predefine="_RTE_ SETA 1" +--list=.\listings\startup_stm32f10x_md.lst RTE\Device\STM32F103RB\startup_stm32 +f10x_md.s diff --git a/timer_act2/Listings/timer_act2.map b/timer_act2/Listings/timer_act2.map index 625512b..ffbc616 100644 --- a/timer_act2/Listings/timer_act2.map +++ b/timer_act2/Listings/timer_act2.map @@ -10,16 +10,18 @@ Section Cross References principal.o(i.main) refers to driver_gpio.o(i.MyGPIO_Activate) for MyGPIO_Activate principal.o(i.main) refers to driver_gpio.o(i.MyGPIO_Init) for MyGPIO_Init principal.o(i.main) refers to driver_timer.o(i.MyTimer_Base_Init) for MyTimer_Base_Init - principal.o(i.main) refers to driver_gpio.o(i.MyGPIO_Set) for MyGPIO_Set - principal.o(i.main) refers to driver_timer.o(i.MyTimer_Active_IT) for MyTimer_Active_IT - principal.o(i.main) refers to principal.o(.data) for greenLed - principal.o(i.main) refers to principal.o(i.handle_TIM2) for handle_TIM2 + principal.o(i.main) refers to driver_timer.o(i.MyTimer_PWM) for MyTimer_PWM + principal.o(i.main) refers to driver_timer.o(i.MyTimer_PWM_set_cycle) for MyTimer_PWM_set_cycle + principal.o(i.main) refers to principal.o(.data) for sortiePWM driver_gpio.o(i.MyGPIO_Init) refers to driver_gpio.o(i.MyGPIO_Set) for MyGPIO_Set driver_gpio.o(i.MyGPIO_Toggle) refers to driver_gpio.o(i.MyGPIO_Reset) for MyGPIO_Reset driver_gpio.o(i.MyGPIO_Toggle) refers to driver_gpio.o(i.MyGPIO_Set) for MyGPIO_Set driver_timer.o(i.MyTimer_Active_IT) refers to driver_timer.o(i.__NVIC_EnableIRQ) for __NVIC_EnableIRQ driver_timer.o(i.MyTimer_Active_IT) refers to driver_timer.o(i.__NVIC_SetPriority) for __NVIC_SetPriority driver_timer.o(i.MyTimer_Active_IT) refers to driver_timer.o(.data) for IT_function_TIM1 + driver_timer.o(i.MyTimer_PWM_set_cycle) refers to ffltui.o(.text) for __aeabi_ui2f + driver_timer.o(i.MyTimer_PWM_set_cycle) refers to fmul.o(.text) for __aeabi_fmul + driver_timer.o(i.MyTimer_PWM_set_cycle) refers to ffixi.o(.text) for __aeabi_f2iz driver_timer.o(i.TIM1_TRG_COM_IRQHandler) refers to driver_timer.o(.data) for IT_function_TIM1 driver_timer.o(i.TIM2_IRQHandler) refers to driver_timer.o(.data) for IT_function_TIM2 driver_timer.o(i.TIM3_IRQHandler) refers to driver_timer.o(.data) for IT_function_TIM3 @@ -43,6 +45,10 @@ 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 + fmul.o(.text) refers (Special) to iusefp.o(.text) for __I$use$fp + ffltui.o(.text) refers (Special) to iusefp.o(.text) for __I$use$fp + ffltui.o(.text) refers to fepilogue.o(.text) for _float_epilogue + ffixi.o(.text) refers (Special) to iusefp.o(.text) for __I$use$fp 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 @@ -60,13 +66,19 @@ Removing Unused input sections from the image. Removing principal.o(.rev16_text), (4 bytes). Removing principal.o(.revsh_text), (4 bytes). Removing principal.o(.rrx_text), (6 bytes). + Removing principal.o(i.handle_TIM2), (20 bytes). Removing driver_gpio.o(.rev16_text), (4 bytes). Removing driver_gpio.o(.revsh_text), (4 bytes). Removing driver_gpio.o(.rrx_text), (6 bytes). Removing driver_gpio.o(i.MyGPIO_Read), (12 bytes). + Removing driver_gpio.o(i.MyGPIO_Reset), (12 bytes). + Removing driver_gpio.o(i.MyGPIO_Toggle), (36 bytes). Removing driver_timer.o(.rev16_text), (4 bytes). Removing driver_timer.o(.revsh_text), (4 bytes). Removing driver_timer.o(.rrx_text), (6 bytes). + Removing driver_timer.o(i.MyTimer_Active_IT), (148 bytes). + Removing driver_timer.o(i.__NVIC_EnableIRQ), (34 bytes). + Removing driver_timer.o(i.__NVIC_SetPriority), (40 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). @@ -74,7 +86,7 @@ Removing Unused input sections from the image. Removing system_stm32f10x.o(i.SystemCoreClockUpdate), (164 bytes). Removing system_stm32f10x.o(.data), (20 bytes). -16 unused section(s) (total 764 bytes) removed from the image. +22 unused section(s) (total 1054 bytes) removed from the image. ============================================================================== @@ -84,21 +96,26 @@ Image Symbol Table Symbol Name Value Ov Type Size Object(Section) - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry9b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry8b.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.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 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/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/stubs.s 0x00000000 Number 0 iusefp.o ABSOLUTE + ../fplib/microlib/fpepilogue.c 0x00000000 Number 0 fepilogue.o ABSOLUTE + ../fplib/microlib/fpfix.c 0x00000000 Number 0 ffixi.o ABSOLUTE + ../fplib/microlib/fpflt.c 0x00000000 Number 0 ffltui.o ABSOLUTE + ../fplib/microlib/fpmul.c 0x00000000 Number 0 fmul.o ABSOLUTE Includes\Driver_GPIO.c 0x00000000 Number 0 driver_gpio.o ABSOLUTE Includes\Driver_TIMER.c 0x00000000 Number 0 driver_timer.o ABSOLUTE Includes\\Driver_GPIO.c 0x00000000 Number 0 driver_gpio.o ABSOLUTE @@ -124,42 +141,41 @@ 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.Activate_TIM 0x0800014c Section 0 driver_timer.o(i.Activate_TIM) - i.MyGPIO_Activate 0x08000174 Section 0 driver_gpio.o(i.MyGPIO_Activate) - i.MyGPIO_Init 0x0800018c Section 0 driver_gpio.o(i.MyGPIO_Init) - i.MyGPIO_Reset 0x08000278 Section 0 driver_gpio.o(i.MyGPIO_Reset) - i.MyGPIO_Set 0x08000284 Section 0 driver_gpio.o(i.MyGPIO_Set) - i.MyGPIO_Toggle 0x0800028c Section 0 driver_gpio.o(i.MyGPIO_Toggle) - i.MyTimer_Active_IT 0x080002b0 Section 0 driver_timer.o(i.MyTimer_Active_IT) - i.MyTimer_Base_Init 0x08000344 Section 0 driver_timer.o(i.MyTimer_Base_Init) - i.SetSysClock 0x08000356 Section 0 system_stm32f10x.o(i.SetSysClock) - SetSysClock 0x08000357 Thumb Code 8 system_stm32f10x.o(i.SetSysClock) - i.SetSysClockTo72 0x08000360 Section 0 system_stm32f10x.o(i.SetSysClockTo72) - SetSysClockTo72 0x08000361 Thumb Code 214 system_stm32f10x.o(i.SetSysClockTo72) - i.SystemInit 0x08000440 Section 0 system_stm32f10x.o(i.SystemInit) - i.TIM1_TRG_COM_IRQHandler 0x080004a0 Section 0 driver_timer.o(i.TIM1_TRG_COM_IRQHandler) - i.TIM2_IRQHandler 0x080004c4 Section 0 driver_timer.o(i.TIM2_IRQHandler) - i.TIM3_IRQHandler 0x080004e8 Section 0 driver_timer.o(i.TIM3_IRQHandler) - i.TIM4_IRQHandler 0x0800050c Section 0 driver_timer.o(i.TIM4_IRQHandler) - i.__NVIC_EnableIRQ 0x08000530 Section 0 driver_timer.o(i.__NVIC_EnableIRQ) - __NVIC_EnableIRQ 0x08000531 Thumb Code 34 driver_timer.o(i.__NVIC_EnableIRQ) - i.__NVIC_SetPriority 0x08000554 Section 0 driver_timer.o(i.__NVIC_SetPriority) - __NVIC_SetPriority 0x08000555 Thumb Code 32 driver_timer.o(i.__NVIC_SetPriority) - i.__scatterload_copy 0x0800057c Section 14 handlers.o(i.__scatterload_copy) - i.__scatterload_null 0x0800058a Section 2 handlers.o(i.__scatterload_null) - i.__scatterload_zeroinit 0x0800058c Section 14 handlers.o(i.__scatterload_zeroinit) - i.handle_TIM2 0x0800059c Section 0 principal.o(i.handle_TIM2) - i.main 0x080005b0 Section 0 principal.o(i.main) - .data 0x20000000 Section 16 principal.o(.data) - .data 0x20000010 Section 16 driver_timer.o(.data) - STACK 0x20000020 Section 1024 startup_stm32f10x_md.o(STACK) + .text 0x08000128 Section 0 fmul.o(.text) + .text 0x0800018c Section 0 ffltui.o(.text) + .text 0x08000196 Section 0 ffixi.o(.text) + .text 0x080001c8 Section 0 iusefp.o(.text) + .text 0x080001c8 Section 0 fepilogue.o(.text) + .text 0x08000238 Section 36 init.o(.text) + i.Activate_TIM 0x0800025c Section 0 driver_timer.o(i.Activate_TIM) + i.MyGPIO_Activate 0x08000284 Section 0 driver_gpio.o(i.MyGPIO_Activate) + i.MyGPIO_Init 0x0800029c Section 0 driver_gpio.o(i.MyGPIO_Init) + i.MyGPIO_Set 0x08000388 Section 0 driver_gpio.o(i.MyGPIO_Set) + i.MyTimer_Base_Init 0x08000390 Section 0 driver_timer.o(i.MyTimer_Base_Init) + i.MyTimer_PWM 0x080003a4 Section 0 driver_timer.o(i.MyTimer_PWM) + i.MyTimer_PWM_set_cycle 0x08000424 Section 0 driver_timer.o(i.MyTimer_PWM_set_cycle) + i.SetSysClock 0x080004a8 Section 0 system_stm32f10x.o(i.SetSysClock) + SetSysClock 0x080004a9 Thumb Code 8 system_stm32f10x.o(i.SetSysClock) + i.SetSysClockTo72 0x080004b0 Section 0 system_stm32f10x.o(i.SetSysClockTo72) + SetSysClockTo72 0x080004b1 Thumb Code 214 system_stm32f10x.o(i.SetSysClockTo72) + i.SystemInit 0x08000590 Section 0 system_stm32f10x.o(i.SystemInit) + i.TIM1_TRG_COM_IRQHandler 0x080005f0 Section 0 driver_timer.o(i.TIM1_TRG_COM_IRQHandler) + i.TIM2_IRQHandler 0x08000614 Section 0 driver_timer.o(i.TIM2_IRQHandler) + i.TIM3_IRQHandler 0x08000638 Section 0 driver_timer.o(i.TIM3_IRQHandler) + i.TIM4_IRQHandler 0x0800065c Section 0 driver_timer.o(i.TIM4_IRQHandler) + i.__scatterload_copy 0x08000680 Section 14 handlers.o(i.__scatterload_copy) + i.__scatterload_null 0x0800068e Section 2 handlers.o(i.__scatterload_null) + i.__scatterload_zeroinit 0x08000690 Section 14 handlers.o(i.__scatterload_zeroinit) + i.main 0x080006a0 Section 0 principal.o(i.main) + .data 0x20000000 Section 24 principal.o(.data) + .data 0x20000018 Section 16 driver_timer.o(.data) + STACK 0x20000028 Section 1024 startup_stm32f10x_md.o(STACK) Global Symbols 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$OTIME$ROPI$EBA8$MICROLIB$REQ8$PRES8$EABIv2 0x00000000 Number 0 anon$$obj.o ABSOLUTE __ARM_use_no_argv 0x00000000 Number 0 principal.o ABSOLUTE __arm_fini_ - Undefined Weak Reference __cpp_initialize__aeabi_ - Undefined Weak Reference @@ -229,35 +245,40 @@ 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) - Activate_TIM 0x0800014d Thumb Code 36 driver_timer.o(i.Activate_TIM) - MyGPIO_Activate 0x08000175 Thumb Code 18 driver_gpio.o(i.MyGPIO_Activate) - MyGPIO_Init 0x0800018d Thumb Code 236 driver_gpio.o(i.MyGPIO_Init) - MyGPIO_Reset 0x08000279 Thumb Code 12 driver_gpio.o(i.MyGPIO_Reset) - MyGPIO_Set 0x08000285 Thumb Code 8 driver_gpio.o(i.MyGPIO_Set) - MyGPIO_Toggle 0x0800028d Thumb Code 36 driver_gpio.o(i.MyGPIO_Toggle) - MyTimer_Active_IT 0x080002b1 Thumb Code 120 driver_timer.o(i.MyTimer_Active_IT) - MyTimer_Base_Init 0x08000345 Thumb Code 18 driver_timer.o(i.MyTimer_Base_Init) - SystemInit 0x08000441 Thumb Code 78 system_stm32f10x.o(i.SystemInit) - TIM1_TRG_COM_IRQHandler 0x080004a1 Thumb Code 28 driver_timer.o(i.TIM1_TRG_COM_IRQHandler) - TIM2_IRQHandler 0x080004c5 Thumb Code 32 driver_timer.o(i.TIM2_IRQHandler) - TIM3_IRQHandler 0x080004e9 Thumb Code 28 driver_timer.o(i.TIM3_IRQHandler) - TIM4_IRQHandler 0x0800050d Thumb Code 28 driver_timer.o(i.TIM4_IRQHandler) - __scatterload_copy 0x0800057d Thumb Code 14 handlers.o(i.__scatterload_copy) - __scatterload_null 0x0800058b Thumb Code 2 handlers.o(i.__scatterload_null) - __scatterload_zeroinit 0x0800058d Thumb Code 14 handlers.o(i.__scatterload_zeroinit) - handle_TIM2 0x0800059d Thumb Code 14 principal.o(i.handle_TIM2) - main 0x080005b1 Thumb Code 98 principal.o(i.main) - Region$$Table$$Base 0x08000624 Number 0 anon$$obj.o(Region$$Table) - Region$$Table$$Limit 0x08000644 Number 0 anon$$obj.o(Region$$Table) + __aeabi_fmul 0x08000129 Thumb Code 100 fmul.o(.text) + __aeabi_ui2f 0x0800018d Thumb Code 10 ffltui.o(.text) + __aeabi_f2iz 0x08000197 Thumb Code 50 ffixi.o(.text) + __I$use$fp 0x080001c9 Thumb Code 0 iusefp.o(.text) + _float_round 0x080001c9 Thumb Code 18 fepilogue.o(.text) + _float_epilogue 0x080001db Thumb Code 92 fepilogue.o(.text) + __scatterload 0x08000239 Thumb Code 28 init.o(.text) + __scatterload_rt2 0x08000239 Thumb Code 0 init.o(.text) + Activate_TIM 0x0800025d Thumb Code 36 driver_timer.o(i.Activate_TIM) + MyGPIO_Activate 0x08000285 Thumb Code 18 driver_gpio.o(i.MyGPIO_Activate) + MyGPIO_Init 0x0800029d Thumb Code 236 driver_gpio.o(i.MyGPIO_Init) + MyGPIO_Set 0x08000389 Thumb Code 8 driver_gpio.o(i.MyGPIO_Set) + MyTimer_Base_Init 0x08000391 Thumb Code 18 driver_timer.o(i.MyTimer_Base_Init) + MyTimer_PWM 0x080003a5 Thumb Code 124 driver_timer.o(i.MyTimer_PWM) + MyTimer_PWM_set_cycle 0x08000425 Thumb Code 132 driver_timer.o(i.MyTimer_PWM_set_cycle) + SystemInit 0x08000591 Thumb Code 78 system_stm32f10x.o(i.SystemInit) + TIM1_TRG_COM_IRQHandler 0x080005f1 Thumb Code 28 driver_timer.o(i.TIM1_TRG_COM_IRQHandler) + TIM2_IRQHandler 0x08000615 Thumb Code 32 driver_timer.o(i.TIM2_IRQHandler) + TIM3_IRQHandler 0x08000639 Thumb Code 28 driver_timer.o(i.TIM3_IRQHandler) + TIM4_IRQHandler 0x0800065d Thumb Code 28 driver_timer.o(i.TIM4_IRQHandler) + __scatterload_copy 0x08000681 Thumb Code 14 handlers.o(i.__scatterload_copy) + __scatterload_null 0x0800068f Thumb Code 2 handlers.o(i.__scatterload_null) + __scatterload_zeroinit 0x08000691 Thumb Code 14 handlers.o(i.__scatterload_zeroinit) + main 0x080006a1 Thumb Code 98 principal.o(i.main) + Region$$Table$$Base 0x08000714 Number 0 anon$$obj.o(Region$$Table) + Region$$Table$$Limit 0x08000734 Number 0 anon$$obj.o(Region$$Table) MonTimer 0x20000000 Data 8 principal.o(.data) greenLed 0x20000008 Data 8 principal.o(.data) - IT_function_TIM1 0x20000010 Data 4 driver_timer.o(.data) - IT_function_TIM2 0x20000014 Data 4 driver_timer.o(.data) - IT_function_TIM3 0x20000018 Data 4 driver_timer.o(.data) - IT_function_TIM4 0x2000001c Data 4 driver_timer.o(.data) - __initial_sp 0x20000420 Data 0 startup_stm32f10x_md.o(STACK) + sortiePWM 0x20000010 Data 8 principal.o(.data) + IT_function_TIM1 0x20000018 Data 4 driver_timer.o(.data) + IT_function_TIM2 0x2000001c Data 4 driver_timer.o(.data) + IT_function_TIM3 0x20000020 Data 4 driver_timer.o(.data) + IT_function_TIM4 0x20000024 Data 4 driver_timer.o(.data) + __initial_sp 0x20000428 Data 0 startup_stm32f10x_md.o(STACK) @@ -267,66 +288,67 @@ Memory Map of the image Image Entry point : 0x08000105 - Load Region LR_1 (Base: 0x08000000, Size: 0x00000664, Max: 0xffffffff, ABSOLUTE) + Load Region LR_1 (Base: 0x08000000, Size: 0x0000075c, Max: 0xffffffff, ABSOLUTE) - Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000644, Max: 0xffffffff, ABSOLUTE) + Execution Region ER_RO (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000734, Max: 0xffffffff, ABSOLUTE) Exec Addr Load Addr Size Type Attr Idx E Section Name Object - 0x08000000 0x08000000 0x000000ec Data RO 208 RESET startup_stm32f10x_md.o - 0x080000ec 0x080000ec 0x00000000 Code RO 259 * .ARM.Collect$$$$00000000 mc_w.l(entry.o) - 0x080000ec 0x080000ec 0x00000004 Code RO 262 .ARM.Collect$$$$00000001 mc_w.l(entry2.o) - 0x080000f0 0x080000f0 0x00000004 Code RO 265 .ARM.Collect$$$$00000004 mc_w.l(entry5.o) - 0x080000f4 0x080000f4 0x00000000 Code RO 267 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o) - 0x080000f4 0x080000f4 0x00000000 Code RO 269 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o) - 0x080000f4 0x080000f4 0x00000008 Code RO 270 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o) - 0x080000fc 0x080000fc 0x00000004 Code RO 277 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o) - 0x08000100 0x08000100 0x00000000 Code RO 272 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o) - 0x08000100 0x08000100 0x00000000 Code RO 274 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o) - 0x08000100 0x08000100 0x00000004 Code RO 263 .ARM.Collect$$$$00002712 mc_w.l(entry2.o) - 0x08000104 0x08000104 0x00000024 Code RO 209 * .text startup_stm32f10x_md.o - 0x08000128 0x08000128 0x00000024 Code RO 278 .text mc_w.l(init.o) - 0x0800014c 0x0800014c 0x00000028 Code RO 129 i.Activate_TIM driver_timer.o - 0x08000174 0x08000174 0x00000018 Code RO 72 i.MyGPIO_Activate driver_gpio.o - 0x0800018c 0x0800018c 0x000000ec Code RO 73 i.MyGPIO_Init driver_gpio.o - 0x08000278 0x08000278 0x0000000c Code RO 75 i.MyGPIO_Reset driver_gpio.o - 0x08000284 0x08000284 0x00000008 Code RO 76 i.MyGPIO_Set driver_gpio.o - 0x0800028c 0x0800028c 0x00000024 Code RO 77 i.MyGPIO_Toggle driver_gpio.o - 0x080002b0 0x080002b0 0x00000094 Code RO 130 i.MyTimer_Active_IT driver_timer.o - 0x08000344 0x08000344 0x00000012 Code RO 131 i.MyTimer_Base_Init driver_timer.o - 0x08000356 0x08000356 0x00000008 Code RO 216 i.SetSysClock system_stm32f10x.o - 0x0800035e 0x0800035e 0x00000002 PAD - 0x08000360 0x08000360 0x000000e0 Code RO 217 i.SetSysClockTo72 system_stm32f10x.o - 0x08000440 0x08000440 0x00000060 Code RO 219 i.SystemInit system_stm32f10x.o - 0x080004a0 0x080004a0 0x00000024 Code RO 132 i.TIM1_TRG_COM_IRQHandler driver_timer.o - 0x080004c4 0x080004c4 0x00000024 Code RO 133 i.TIM2_IRQHandler driver_timer.o - 0x080004e8 0x080004e8 0x00000024 Code RO 134 i.TIM3_IRQHandler driver_timer.o - 0x0800050c 0x0800050c 0x00000024 Code RO 135 i.TIM4_IRQHandler driver_timer.o - 0x08000530 0x08000530 0x00000022 Code RO 136 i.__NVIC_EnableIRQ driver_timer.o - 0x08000552 0x08000552 0x00000002 PAD - 0x08000554 0x08000554 0x00000028 Code RO 137 i.__NVIC_SetPriority driver_timer.o - 0x0800057c 0x0800057c 0x0000000e Code RO 282 i.__scatterload_copy mc_w.l(handlers.o) - 0x0800058a 0x0800058a 0x00000002 Code RO 283 i.__scatterload_null mc_w.l(handlers.o) - 0x0800058c 0x0800058c 0x0000000e Code RO 284 i.__scatterload_zeroinit mc_w.l(handlers.o) - 0x0800059a 0x0800059a 0x00000002 PAD - 0x0800059c 0x0800059c 0x00000014 Code RO 4 i.handle_TIM2 principal.o - 0x080005b0 0x080005b0 0x00000074 Code RO 5 i.main principal.o - 0x08000624 0x08000624 0x00000020 Data RO 280 Region$$Table anon$$obj.o + 0x08000000 0x08000000 0x000000ec Data RO 220 RESET startup_stm32f10x_md.o + 0x080000ec 0x080000ec 0x00000000 Code RO 271 * .ARM.Collect$$$$00000000 mc_w.l(entry.o) + 0x080000ec 0x080000ec 0x00000004 Code RO 280 .ARM.Collect$$$$00000001 mc_w.l(entry2.o) + 0x080000f0 0x080000f0 0x00000004 Code RO 283 .ARM.Collect$$$$00000004 mc_w.l(entry5.o) + 0x080000f4 0x080000f4 0x00000000 Code RO 285 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o) + 0x080000f4 0x080000f4 0x00000000 Code RO 287 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o) + 0x080000f4 0x080000f4 0x00000008 Code RO 288 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o) + 0x080000fc 0x080000fc 0x00000004 Code RO 295 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o) + 0x08000100 0x08000100 0x00000000 Code RO 290 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o) + 0x08000100 0x08000100 0x00000000 Code RO 292 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o) + 0x08000100 0x08000100 0x00000004 Code RO 281 .ARM.Collect$$$$00002712 mc_w.l(entry2.o) + 0x08000104 0x08000104 0x00000024 Code RO 221 * .text startup_stm32f10x_md.o + 0x08000128 0x08000128 0x00000064 Code RO 274 .text mf_w.l(fmul.o) + 0x0800018c 0x0800018c 0x0000000a Code RO 276 .text mf_w.l(ffltui.o) + 0x08000196 0x08000196 0x00000032 Code RO 278 .text mf_w.l(ffixi.o) + 0x080001c8 0x080001c8 0x00000000 Code RO 296 .text mc_w.l(iusefp.o) + 0x080001c8 0x080001c8 0x0000006e Code RO 297 .text mf_w.l(fepilogue.o) + 0x08000236 0x08000236 0x00000002 PAD + 0x08000238 0x08000238 0x00000024 Code RO 299 .text mc_w.l(init.o) + 0x0800025c 0x0800025c 0x00000028 Code RO 129 i.Activate_TIM driver_timer.o + 0x08000284 0x08000284 0x00000018 Code RO 72 i.MyGPIO_Activate driver_gpio.o + 0x0800029c 0x0800029c 0x000000ec Code RO 73 i.MyGPIO_Init driver_gpio.o + 0x08000388 0x08000388 0x00000008 Code RO 76 i.MyGPIO_Set driver_gpio.o + 0x08000390 0x08000390 0x00000012 Code RO 131 i.MyTimer_Base_Init driver_timer.o + 0x080003a2 0x080003a2 0x00000002 PAD + 0x080003a4 0x080003a4 0x00000080 Code RO 132 i.MyTimer_PWM driver_timer.o + 0x08000424 0x08000424 0x00000084 Code RO 133 i.MyTimer_PWM_set_cycle driver_timer.o + 0x080004a8 0x080004a8 0x00000008 Code RO 228 i.SetSysClock system_stm32f10x.o + 0x080004b0 0x080004b0 0x000000e0 Code RO 229 i.SetSysClockTo72 system_stm32f10x.o + 0x08000590 0x08000590 0x00000060 Code RO 231 i.SystemInit system_stm32f10x.o + 0x080005f0 0x080005f0 0x00000024 Code RO 134 i.TIM1_TRG_COM_IRQHandler driver_timer.o + 0x08000614 0x08000614 0x00000024 Code RO 135 i.TIM2_IRQHandler driver_timer.o + 0x08000638 0x08000638 0x00000024 Code RO 136 i.TIM3_IRQHandler driver_timer.o + 0x0800065c 0x0800065c 0x00000024 Code RO 137 i.TIM4_IRQHandler driver_timer.o + 0x08000680 0x08000680 0x0000000e Code RO 303 i.__scatterload_copy mc_w.l(handlers.o) + 0x0800068e 0x0800068e 0x00000002 Code RO 304 i.__scatterload_null mc_w.l(handlers.o) + 0x08000690 0x08000690 0x0000000e Code RO 305 i.__scatterload_zeroinit mc_w.l(handlers.o) + 0x0800069e 0x0800069e 0x00000002 PAD + 0x080006a0 0x080006a0 0x00000074 Code RO 5 i.main principal.o + 0x08000714 0x08000714 0x00000020 Data RO 301 Region$$Table anon$$obj.o - Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08000644, Size: 0x00000020, Max: 0xffffffff, ABSOLUTE) + Execution Region ER_RW (Exec base: 0x20000000, Load base: 0x08000734, Size: 0x00000028, Max: 0xffffffff, ABSOLUTE) Exec Addr Load Addr Size Type Attr Idx E Section Name Object - 0x20000000 0x08000644 0x00000010 Data RW 6 .data principal.o - 0x20000010 0x08000654 0x00000010 Data RW 138 .data driver_timer.o + 0x20000000 0x08000734 0x00000018 Data RW 6 .data principal.o + 0x20000018 0x0800074c 0x00000010 Data RW 140 .data driver_timer.o - Execution Region ER_ZI (Exec base: 0x20000020, Load base: 0x08000664, Size: 0x00000400, Max: 0xffffffff, ABSOLUTE) + Execution Region ER_ZI (Exec base: 0x20000028, Load base: 0x0800075c, Size: 0x00000400, Max: 0xffffffff, ABSOLUTE) Exec Addr Load Addr Size Type Attr Idx E Section Name Object - 0x20000020 - 0x00000400 Zero RW 206 STACK startup_stm32f10x_md.o + 0x20000028 - 0x00000400 Zero RW 218 STACK startup_stm32f10x_md.o ============================================================================== @@ -336,16 +358,16 @@ Image component sizes Code (inc. data) RO Data RW Data ZI Data Debug Object Name - 316 6 0 0 0 3616 driver_gpio.o - 424 68 0 16 0 6033 driver_timer.o - 136 24 0 16 0 208769 principal.o + 268 6 0 0 0 2517 driver_gpio.o + 462 36 0 16 0 5475 driver_timer.o + 116 18 0 24 0 208365 principal.o 36 8 236 0 1024 840 startup_stm32f10x_md.o 328 28 0 0 0 2101 system_stm32f10x.o ---------------------------------------------------------------------- - 1244 134 268 32 1024 221359 Object Totals + 1212 96 268 40 1024 219298 Object Totals 0 0 32 0 0 0 (incl. Generated) - 4 0 0 0 0 0 (incl. Padding) + 2 0 0 0 0 0 (incl. Padding) ---------------------------------------------------------------------- @@ -362,19 +384,25 @@ 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 + 110 0 0 0 0 168 fepilogue.o + 50 0 0 0 0 68 ffixi.o + 10 0 0 0 0 68 ffltui.o + 100 0 0 0 0 76 fmul.o ---------------------------------------------------------------------- - 92 16 0 0 0 68 Library Totals - 2 0 0 0 0 0 (incl. Padding) + 364 16 0 0 0 448 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 + 270 0 0 0 0 380 mf_w.l ---------------------------------------------------------------------- - 92 16 0 0 0 68 Library Totals + 364 16 0 0 0 448 Library Totals ---------------------------------------------------------------------- @@ -383,15 +411,15 @@ Image component sizes Code (inc. data) RO Data RW Data ZI Data Debug - 1336 150 268 32 1024 220695 Grand Totals - 1336 150 268 32 1024 220695 ELF Image Totals - 1336 150 268 32 0 0 ROM Totals + 1576 112 268 40 1024 219118 Grand Totals + 1576 112 268 40 1024 219118 ELF Image Totals + 1576 112 268 40 0 0 ROM Totals ============================================================================== - Total RO Size (Code + RO Data) 1604 ( 1.57kB) - Total RW Size (RW Data + ZI Data) 1056 ( 1.03kB) - Total ROM Size (Code + RO Data + RW Data) 1636 ( 1.60kB) + Total RO Size (Code + RO Data) 1844 ( 1.80kB) + Total RW Size (RW Data + ZI Data) 1064 ( 1.04kB) + Total ROM Size (Code + RO Data + RW Data) 1884 ( 1.84kB) ============================================================================== diff --git a/timer_act2/Objects/driver_gpio.crf b/timer_act2/Objects/driver_gpio.crf index 3ac33b6..6ea801b 100644 Binary files a/timer_act2/Objects/driver_gpio.crf and b/timer_act2/Objects/driver_gpio.crf differ diff --git a/timer_act2/Objects/driver_gpio.d b/timer_act2/Objects/driver_gpio.d index 6b958f3..8b1d315 100644 --- a/timer_act2/Objects/driver_gpio.d +++ b/timer_act2/Objects/driver_gpio.d @@ -1,7 +1,7 @@ .\objects\driver_gpio.o: Includes\Driver_GPIO.c .\objects\driver_gpio.o: Includes\Driver_GPIO.h .\objects\driver_gpio.o: C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h -.\objects\driver_gpio.o: .\RTE\_carteSTM\RTE_Components.h +.\objects\driver_gpio.o: .\RTE\_Simulation\RTE_Components.h .\objects\driver_gpio.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\core_cm3.h .\objects\driver_gpio.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h .\objects\driver_gpio.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_version.h diff --git a/timer_act2/Objects/driver_gpio.o b/timer_act2/Objects/driver_gpio.o index ee32b87..6467f94 100644 Binary files a/timer_act2/Objects/driver_gpio.o and b/timer_act2/Objects/driver_gpio.o differ diff --git a/timer_act2/Objects/driver_timer.crf b/timer_act2/Objects/driver_timer.crf index 2a9e3cd..2029d59 100644 Binary files a/timer_act2/Objects/driver_timer.crf and b/timer_act2/Objects/driver_timer.crf differ diff --git a/timer_act2/Objects/driver_timer.d b/timer_act2/Objects/driver_timer.d index d563af9..a276289 100644 --- a/timer_act2/Objects/driver_timer.d +++ b/timer_act2/Objects/driver_timer.d @@ -1,7 +1,7 @@ .\objects\driver_timer.o: Includes\Driver_TIMER.c .\objects\driver_timer.o: Includes\Driver_TIMER.h .\objects\driver_timer.o: C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h -.\objects\driver_timer.o: .\RTE\_carteSTM\RTE_Components.h +.\objects\driver_timer.o: .\RTE\_Simulation\RTE_Components.h .\objects\driver_timer.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\core_cm3.h .\objects\driver_timer.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h .\objects\driver_timer.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_version.h diff --git a/timer_act2/Objects/driver_timer.o b/timer_act2/Objects/driver_timer.o index 2dce5fe..b5e331e 100644 Binary files a/timer_act2/Objects/driver_timer.o and b/timer_act2/Objects/driver_timer.o differ diff --git a/timer_act2/Objects/principal.crf b/timer_act2/Objects/principal.crf index 2200ed7..8b458de 100644 Binary files a/timer_act2/Objects/principal.crf and b/timer_act2/Objects/principal.crf differ diff --git a/timer_act2/Objects/principal.d b/timer_act2/Objects/principal.d index 002908d..a2555cf 100644 --- a/timer_act2/Objects/principal.d +++ b/timer_act2/Objects/principal.d @@ -1,6 +1,6 @@ .\objects\principal.o: Source\principal.c .\objects\principal.o: C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h -.\objects\principal.o: .\RTE\_carteSTM\RTE_Components.h +.\objects\principal.o: .\RTE\_Simulation\RTE_Components.h .\objects\principal.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\core_cm3.h .\objects\principal.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h .\objects\principal.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_version.h diff --git a/timer_act2/Objects/principal.o b/timer_act2/Objects/principal.o index ac560dc..5e4db97 100644 Binary files a/timer_act2/Objects/principal.o and b/timer_act2/Objects/principal.o differ diff --git a/timer_act2/Objects/startup_stm32f10x_md.o b/timer_act2/Objects/startup_stm32f10x_md.o index 85b7e0f..af001dc 100644 Binary files a/timer_act2/Objects/startup_stm32f10x_md.o and b/timer_act2/Objects/startup_stm32f10x_md.o differ diff --git a/timer_act2/Objects/system_stm32f10x.crf b/timer_act2/Objects/system_stm32f10x.crf index 94130bd..f27a7ef 100644 Binary files a/timer_act2/Objects/system_stm32f10x.crf and b/timer_act2/Objects/system_stm32f10x.crf differ diff --git a/timer_act2/Objects/system_stm32f10x.d b/timer_act2/Objects/system_stm32f10x.d index 8528c7f..1ded146 100644 --- a/timer_act2/Objects/system_stm32f10x.d +++ b/timer_act2/Objects/system_stm32f10x.d @@ -1,6 +1,6 @@ .\objects\system_stm32f10x.o: RTE\Device\STM32F103RB\system_stm32f10x.c .\objects\system_stm32f10x.o: C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include\stm32f10x.h -.\objects\system_stm32f10x.o: .\RTE\_carteSTM\RTE_Components.h +.\objects\system_stm32f10x.o: .\RTE\_Simulation\RTE_Components.h .\objects\system_stm32f10x.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\core_cm3.h .\objects\system_stm32f10x.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h .\objects\system_stm32f10x.o: C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include\cmsis_version.h diff --git a/timer_act2/Objects/system_stm32f10x.o b/timer_act2/Objects/system_stm32f10x.o index 284aeae..d178e38 100644 Binary files a/timer_act2/Objects/system_stm32f10x.o and b/timer_act2/Objects/system_stm32f10x.o differ diff --git a/timer_act2/Objects/timer_act2.axf b/timer_act2/Objects/timer_act2.axf index 9014802..ccc6c74 100644 Binary files a/timer_act2/Objects/timer_act2.axf and b/timer_act2/Objects/timer_act2.axf differ diff --git a/timer_act2/Objects/timer_act2.build_log.htm b/timer_act2/Objects/timer_act2.build_log.htm index 9342f98..dcb151e 100644 --- a/timer_act2/Objects/timer_act2.build_log.htm +++ b/timer_act2/Objects/timer_act2.build_log.htm @@ -17,7 +17,7 @@ Library Manager: ArmAr.exe V5.06 update 7 (build 960) Hex Converter: FromElf.exe V5.06 update 7 (build 960) CPU DLL: SARMCM3.DLL V5.33.0.0 Dialog DLL: DARMSTM.DLL V1.68.0.0 -Target DLL: STLink\ST-LINKIII-KEIL_SWO.dll V3.0.8.0 +Target DLL: UL2CM3.DLL V1.163.9.0 Dialog DLL: TARMSTM.DLL V1.66.0.0

Project:

@@ -26,17 +26,13 @@ Project File Date: 09/20/2021

Output:

*** 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 'Simulation' compiling principal.c... -Source\principal.c(40): warning: #111-D: statement is unreachable +Source\principal.c(52): warning: #111-D: statement is unreachable return 0; Source\principal.c: 1 warning, 0 errors -compiling Driver_GPIO.c... -compiling Driver_TIMER.c... -compiling system_stm32f10x.c... linking... -Program Size: Code=1336 RO-data=268 RW-data=32 ZI-data=1024 +Program Size: Code=1576 RO-data=268 RW-data=40 ZI-data=1024 ".\Objects\timer_act2.axf" - 0 Error(s), 1 Warning(s).

Software Packages used:

@@ -55,7 +51,7 @@ Package Vendor: Keil

Collection of Component include folders:

.\RTE\Device\STM32F103RB - .\RTE\_carteSTM + .\RTE\_Simulation C:\Users\chauz\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include C:\Users\chauz\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.3.0\Device\Include @@ -64,10 +60,10 @@ 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 + Include file: RTE_Driver\Config\RTE_Device.h Source file: Device\Source\ARM\startup_stm32f10x_md.s Source file: Device\Source\system_stm32f10x.c - Include file: RTE_Driver\Config\RTE_Device.h - Source file: Device\Source\ARM\STM32F1xx_OPT.s Build Time Elapsed: 00:00:00 diff --git a/timer_act2/Objects/timer_act2.htm b/timer_act2/Objects/timer_act2.htm index dba448f..8fd835d 100644 --- a/timer_act2/Objects/timer_act2.htm +++ b/timer_act2/Objects/timer_act2.htm @@ -3,11 +3,11 @@ Static Call Graph - [.\Objects\timer_act2.axf]

Static Call Graph for image .\Objects\timer_act2.axf


-

#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Fri Sep 24 18:37:27 2021 +

#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Mon Sep 27 16:44:54 2021

-

Maximum Stack Usage = 28 bytes + Unknown(Cycles, Untraceable Function Pointers)

+

Maximum Stack Usage = 32 bytes + Unknown(Cycles, Untraceable Function Pointers)

Call chain for Maximum Stack Depth:

-SystemInit ⇒ SetSysClock ⇒ SetSysClockTo72 +main ⇒ MyTimer_PWM_set_cycle ⇒ __aeabi_fmul

Mutually Recursive functions @@ -58,7 +58,7 @@ Function Pointers
  • RCC_IRQHandler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET)
  • RTCAlarm_IRQHandler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET)
  • RTC_IRQHandler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET) -
  • Reset_Handler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET) +
  • Reset_Handler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET)
  • SPI1_IRQHandler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET)
  • SPI2_IRQHandler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET)
  • SVC_Handler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET) @@ -81,7 +81,6 @@ Function Pointers
  • UsageFault_Handler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET)
  • WWDG_IRQHandler from startup_stm32f10x_md.o(.text) referenced from startup_stm32f10x_md.o(RESET)
  • __main from entry.o(.ARM.Collect$$$$00000000) referenced from startup_stm32f10x_md.o(.text) -
  • handle_TIM2 from principal.o(i.handle_TIM2) referenced from principal.o(i.main)
  • main from principal.o(i.main) referenced from entry9a.o(.ARM.Collect$$$$0000000B)

    @@ -93,12 +92,12 @@ Global Symbols

    _main_stk (Thumb, 0 bytes, Stack size unknown bytes, entry2.o(.ARM.Collect$$$$00000001)) -

    _main_scatterload (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004)) -

    [Calls]