测得一次1k得读写操作消耗约为2ms左右

master
18650180552 2019-12-01 22:47:54 +08:00
parent 9e64588d10
commit c9c6a81ba7
5 changed files with 17785 additions and 150892 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,15 +26,15 @@ Section Cross References
main.o(i.TIM3_Configuration) refers to stm32f10x_tim.o(i.TIM_ARRPreloadConfig) for TIM_ARRPreloadConfig
main.o(i.TIM3_Configuration) refers to stm32f10x_tim.o(i.TIM_Cmd) for TIM_Cmd
main.o(i.TIM3_IRQHandler) refers to stm32f10x_tim.o(i.TIM_GetITStatus) for TIM_GetITStatus
main.o(i.TIM3_IRQHandler) refers to stm32f10x_gpio.o(i.GPIO_WriteBit) for GPIO_WriteBit
main.o(i.TIM3_IRQHandler) refers to stm32f10x_tim.o(i.TIM_ClearITPendingBit) for TIM_ClearITPendingBit
main.o(i.TIM3_IRQHandler) refers to main.o(.data) for x
main.o(i.TIM3_IRQHandler) refers to stm32f10x_tim.o(i.TIM_ClearFlag) for TIM_ClearFlag
main.o(i.TIM3_IRQHandler) refers to main.o(.data) for uTick
main.o(i.main) refers to main.o(i.RCC_Configuration) for RCC_Configuration
main.o(i.main) refers to stm32f10x_rcc.o(i.RCC_AHBPeriphClockCmd) for RCC_AHBPeriphClockCmd
main.o(i.main) refers to fsmc_nand.o(i.FSMC_NAND_Init) for FSMC_NAND_Init
main.o(i.main) refers to fsmc_nand.o(i.FSMC_NAND_ReadID) for FSMC_NAND_ReadID
main.o(i.main) refers to stm32f10x_rcc.o(i.RCC_APB2PeriphClockCmd) for RCC_APB2PeriphClockCmd
main.o(i.main) refers to stm32f10x_gpio.o(i.GPIO_Init) for GPIO_Init
main.o(i.main) refers to stm32f10x_rcc.o(i.RCC_GetClocksFreq) for RCC_GetClocksFreq
main.o(i.main) refers to main.o(i.TIM3_Configuration) for TIM3_Configuration
main.o(i.main) refers to main.o(i.NVIC_Configue) for NVIC_Configue
main.o(i.main) refers to fsmc_nand.o(i.FSMC_NAND_EraseBlock) for FSMC_NAND_EraseBlock
@ -317,6 +317,7 @@ Removing Unused input sections from the image.
Removing stm32f10x_gpio.o(i.GPIO_SetBits), (4 bytes).
Removing stm32f10x_gpio.o(i.GPIO_StructInit), (16 bytes).
Removing stm32f10x_gpio.o(i.GPIO_Write), (4 bytes).
Removing stm32f10x_gpio.o(i.GPIO_WriteBit), (10 bytes).
Removing stm32f10x_rcc.o(.rev16_text), (4 bytes).
Removing stm32f10x_rcc.o(.revsh_text), (4 bytes).
Removing stm32f10x_rcc.o(.rrx_text), (6 bytes).
@ -329,7 +330,6 @@ Removing Unused input sections from the image.
Removing stm32f10x_rcc.o(i.RCC_ClearITPendingBit), (12 bytes).
Removing stm32f10x_rcc.o(i.RCC_ClockSecuritySystemCmd), (12 bytes).
Removing stm32f10x_rcc.o(i.RCC_DeInit), (76 bytes).
Removing stm32f10x_rcc.o(i.RCC_GetClocksFreq), (212 bytes).
Removing stm32f10x_rcc.o(i.RCC_GetFlagStatus), (60 bytes).
Removing stm32f10x_rcc.o(i.RCC_GetITStatus), (24 bytes).
Removing stm32f10x_rcc.o(i.RCC_GetSYSCLKSource), (16 bytes).
@ -349,7 +349,6 @@ Removing Unused input sections from the image.
Removing stm32f10x_rcc.o(i.RCC_SYSCLKConfig), (24 bytes).
Removing stm32f10x_rcc.o(i.RCC_USBCLKConfig), (12 bytes).
Removing stm32f10x_rcc.o(i.RCC_WaitForHSEStartUp), (56 bytes).
Removing stm32f10x_rcc.o(.data), (20 bytes).
Removing stm32f10x_tim.o(.rev16_text), (4 bytes).
Removing stm32f10x_tim.o(.revsh_text), (4 bytes).
Removing stm32f10x_tim.o(.rrx_text), (6 bytes).
@ -362,7 +361,7 @@ Removing Unused input sections from the image.
Removing stm32f10x_tim.o(i.TIM_CCPreloadControl), (24 bytes).
Removing stm32f10x_tim.o(i.TIM_CCxCmd), (30 bytes).
Removing stm32f10x_tim.o(i.TIM_CCxNCmd), (30 bytes).
Removing stm32f10x_tim.o(i.TIM_ClearFlag), (6 bytes).
Removing stm32f10x_tim.o(i.TIM_ClearITPendingBit), (6 bytes).
Removing stm32f10x_tim.o(i.TIM_ClearOC1Ref), (18 bytes).
Removing stm32f10x_tim.o(i.TIM_ClearOC2Ref), (24 bytes).
Removing stm32f10x_tim.o(i.TIM_ClearOC3Ref), (18 bytes).
@ -493,7 +492,7 @@ Removing Unused input sections from the image.
Removing system_stm32f10x_1.o(i.SystemCoreClockUpdate), (164 bytes).
Removing system_stm32f10x_1.o(.data), (20 bytes).
264 unused section(s) (total 11104 bytes) removed from the image.
263 unused section(s) (total 10882 bytes) removed from the image.
==============================================================================
@ -503,51 +502,51 @@ Image Symbol Table
Symbol Name Value Ov Type Size Object(Section)
../clib/angel/boardlib.s 0x00000000 Number 0 boardinit2.o ABSOLUTE
../clib/angel/boardlib.s 0x00000000 Number 0 boardshut.o ABSOLUTE
../clib/angel/boardlib.s 0x00000000 Number 0 boardinit3.o ABSOLUTE
../clib/angel/boardlib.s 0x00000000 Number 0 boardinit1.o ABSOLUTE
../clib/angel/boardlib.s 0x00000000 Number 0 boardshut.o ABSOLUTE
../clib/angel/handlers.s 0x00000000 Number 0 __scatter_copy.o ABSOLUTE
../clib/angel/boardlib.s 0x00000000 Number 0 boardinit2.o ABSOLUTE
../clib/angel/handlers.s 0x00000000 Number 0 __scatter_zi.o ABSOLUTE
../clib/angel/kernel.s 0x00000000 Number 0 __rtentry.o ABSOLUTE
../clib/angel/kernel.s 0x00000000 Number 0 rtexit.o ABSOLUTE
../clib/angel/handlers.s 0x00000000 Number 0 __scatter_copy.o ABSOLUTE
../clib/angel/kernel.s 0x00000000 Number 0 rtexit2.o ABSOLUTE
../clib/angel/kernel.s 0x00000000 Number 0 __rtentry.o ABSOLUTE
../clib/angel/kernel.s 0x00000000 Number 0 __rtentry4.o ABSOLUTE
../clib/angel/kernel.s 0x00000000 Number 0 __rtentry2.o ABSOLUTE
../clib/angel/kernel.s 0x00000000 Number 0 rtexit.o ABSOLUTE
../clib/angel/rt.s 0x00000000 Number 0 rt_raise.o ABSOLUTE
../clib/angel/scatter.s 0x00000000 Number 0 __scatter.o ABSOLUTE
../clib/angel/startup.s 0x00000000 Number 0 __main.o ABSOLUTE
../clib/angel/sys.s 0x00000000 Number 0 indicate_semi.o ABSOLUTE
../clib/angel/sys.s 0x00000000 Number 0 libspace.o ABSOLUTE
../clib/angel/sys.s 0x00000000 Number 0 sys_stackheap_outer.o ABSOLUTE
../clib/angel/sys.s 0x00000000 Number 0 use_no_semi.o ABSOLUTE
../clib/angel/sysapp.c 0x00000000 Number 0 sys_wrch.o ABSOLUTE
../clib/angel/sysapp.c 0x00000000 Number 0 sys_command.o ABSOLUTE
../clib/angel/sys.s 0x00000000 Number 0 sys_stackheap_outer.o ABSOLUTE
../clib/angel/sys.s 0x00000000 Number 0 libspace.o ABSOLUTE
../clib/angel/sysapp.c 0x00000000 Number 0 sys_exit.o ABSOLUTE
../clib/armsys.c 0x00000000 Number 0 no_argv.o ABSOLUTE
../clib/angel/sysapp.c 0x00000000 Number 0 sys_command.o ABSOLUTE
../clib/angel/sysapp.c 0x00000000 Number 0 sys_wrch.o ABSOLUTE
../clib/armsys.c 0x00000000 Number 0 argv_veneer.o ABSOLUTE
../clib/armsys.c 0x00000000 Number 0 no_argv.o ABSOLUTE
../clib/armsys.c 0x00000000 Number 0 argv_veneer.o ABSOLUTE
../clib/armsys.c 0x00000000 Number 0 _get_argv_nomalloc.o ABSOLUTE
../clib/heapalloc.c 0x00000000 Number 0 hrguard.o ABSOLUTE
../clib/heapaux.c 0x00000000 Number 0 heapauxi.o ABSOLUTE
../clib/libinit.s 0x00000000 Number 0 libinit2.o ABSOLUTE
../clib/libinit.s 0x00000000 Number 0 libinit.o ABSOLUTE
../clib/libinit.s 0x00000000 Number 0 libshutdown2.o ABSOLUTE
../clib/libinit.s 0x00000000 Number 0 libshutdown.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_general.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_other.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_abrt_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_pvfn_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_stak_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_rtred_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_fpe_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_rtmem_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_cppl_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_rtmem_outer.o ABSOLUTE
../clib/libinit.s 0x00000000 Number 0 libshutdown2.o ABSOLUTE
../clib/libinit.s 0x00000000 Number 0 libinit2.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_rtmem_formal.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_exit.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_abrt_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_general.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 __raise.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_rtmem_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_rtred_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_stak_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_pvfn_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_cppl_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_segv_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_other.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_exit.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_fpe_inner.o ABSOLUTE
../clib/signal.c 0x00000000 Number 0 defsig_rtmem_outer.o ABSOLUTE
../clib/signal.s 0x00000000 Number 0 defsig.o ABSOLUTE
../clib/stdlib.c 0x00000000 Number 0 exit.o ABSOLUTE
../fplib/fpinit.s 0x00000000 Number 0 fpinit.o ABSOLUTE
@ -674,43 +673,46 @@ Image Symbol Table
i.FSMC_NAND_WriteSmallPage 0x08000780 Section 0 fsmc_nand.o(i.FSMC_NAND_WriteSmallPage)
i.Fill_Buffer 0x08000848 Section 0 main.o(i.Fill_Buffer)
i.GPIO_Init 0x08000860 Section 0 stm32f10x_gpio.o(i.GPIO_Init)
i.GPIO_WriteBit 0x08000976 Section 0 stm32f10x_gpio.o(i.GPIO_WriteBit)
i.HardFault_Handler 0x08000980 Section 0 stm32f10x_it.o(i.HardFault_Handler)
i.MemManage_Handler 0x08000984 Section 0 stm32f10x_it.o(i.MemManage_Handler)
i.NMI_Handler 0x08000988 Section 0 stm32f10x_it.o(i.NMI_Handler)
i.NVIC_Configue 0x0800098a Section 0 main.o(i.NVIC_Configue)
i.NVIC_Init 0x080009ac Section 0 misc.o(i.NVIC_Init)
i.PendSV_Handler 0x08000a1c Section 0 stm32f10x_it.o(i.PendSV_Handler)
i.RCC_AHBPeriphClockCmd 0x08000a20 Section 0 stm32f10x_rcc.o(i.RCC_AHBPeriphClockCmd)
i.RCC_APB1PeriphClockCmd 0x08000a40 Section 0 stm32f10x_rcc.o(i.RCC_APB1PeriphClockCmd)
i.RCC_APB2PeriphClockCmd 0x08000a60 Section 0 stm32f10x_rcc.o(i.RCC_APB2PeriphClockCmd)
i.RCC_Configuration 0x08000a80 Section 0 main.o(i.RCC_Configuration)
i.SVC_Handler 0x08000a90 Section 0 stm32f10x_it.o(i.SVC_Handler)
i.SetSysClock 0x08000a92 Section 0 system_stm32f10x_1.o(i.SetSysClock)
SetSysClock 0x08000a93 Thumb Code 8 system_stm32f10x_1.o(i.SetSysClock)
i.SetSysClockTo72 0x08000a9c Section 0 system_stm32f10x_1.o(i.SetSysClockTo72)
SetSysClockTo72 0x08000a9d Thumb Code 214 system_stm32f10x_1.o(i.SetSysClockTo72)
i.SysTick_Handler 0x08000b7c Section 0 stm32f10x_it.o(i.SysTick_Handler)
i.SystemInit 0x08000b80 Section 0 system_stm32f10x_1.o(i.SystemInit)
i.TIM3_Configuration 0x08000be0 Section 0 main.o(i.TIM3_Configuration)
i.TIM3_IRQHandler 0x08000c34 Section 0 main.o(i.TIM3_IRQHandler)
i.TIM_ARRPreloadConfig 0x08000c6c Section 0 stm32f10x_tim.o(i.TIM_ARRPreloadConfig)
i.TIM_ClearITPendingBit 0x08000c84 Section 0 stm32f10x_tim.o(i.TIM_ClearITPendingBit)
i.TIM_Cmd 0x08000c8a Section 0 stm32f10x_tim.o(i.TIM_Cmd)
i.TIM_GetITStatus 0x08000ca2 Section 0 stm32f10x_tim.o(i.TIM_GetITStatus)
i.TIM_ITConfig 0x08000cc4 Section 0 stm32f10x_tim.o(i.TIM_ITConfig)
i.TIM_TimeBaseInit 0x08000cd8 Section 0 stm32f10x_tim.o(i.TIM_TimeBaseInit)
i.UsageFault_Handler 0x08000d7c Section 0 stm32f10x_it.o(i.UsageFault_Handler)
i.main 0x08000d80 Section 0 main.o(i.main)
.data 0x20000000 Section 36 main.o(.data)
x 0x20000020 Data 4 main.o(.data)
.bss 0x20000024 Section 2048 main.o(.bss)
.bss 0x20000824 Section 96 libspace.o(.bss)
HEAP 0x20000888 Section 512 startup_stm32f10x_hd.o(HEAP)
Heap_Mem 0x20000888 Data 512 startup_stm32f10x_hd.o(HEAP)
STACK 0x20000a88 Section 1024 startup_stm32f10x_hd.o(STACK)
Stack_Mem 0x20000a88 Data 1024 startup_stm32f10x_hd.o(STACK)
__initial_sp 0x20000e88 Data 0 startup_stm32f10x_hd.o(STACK)
i.HardFault_Handler 0x08000976 Section 0 stm32f10x_it.o(i.HardFault_Handler)
i.MemManage_Handler 0x0800097a Section 0 stm32f10x_it.o(i.MemManage_Handler)
i.NMI_Handler 0x0800097e Section 0 stm32f10x_it.o(i.NMI_Handler)
i.NVIC_Configue 0x08000980 Section 0 main.o(i.NVIC_Configue)
i.NVIC_Init 0x080009a0 Section 0 misc.o(i.NVIC_Init)
i.PendSV_Handler 0x08000a10 Section 0 stm32f10x_it.o(i.PendSV_Handler)
i.RCC_AHBPeriphClockCmd 0x08000a14 Section 0 stm32f10x_rcc.o(i.RCC_AHBPeriphClockCmd)
i.RCC_APB1PeriphClockCmd 0x08000a34 Section 0 stm32f10x_rcc.o(i.RCC_APB1PeriphClockCmd)
i.RCC_APB2PeriphClockCmd 0x08000a54 Section 0 stm32f10x_rcc.o(i.RCC_APB2PeriphClockCmd)
i.RCC_Configuration 0x08000a74 Section 0 main.o(i.RCC_Configuration)
i.RCC_GetClocksFreq 0x08000a84 Section 0 stm32f10x_rcc.o(i.RCC_GetClocksFreq)
i.SVC_Handler 0x08000b58 Section 0 stm32f10x_it.o(i.SVC_Handler)
i.SetSysClock 0x08000b5a Section 0 system_stm32f10x_1.o(i.SetSysClock)
SetSysClock 0x08000b5b Thumb Code 8 system_stm32f10x_1.o(i.SetSysClock)
i.SetSysClockTo72 0x08000b64 Section 0 system_stm32f10x_1.o(i.SetSysClockTo72)
SetSysClockTo72 0x08000b65 Thumb Code 214 system_stm32f10x_1.o(i.SetSysClockTo72)
i.SysTick_Handler 0x08000c44 Section 0 stm32f10x_it.o(i.SysTick_Handler)
i.SystemInit 0x08000c48 Section 0 system_stm32f10x_1.o(i.SystemInit)
i.TIM3_Configuration 0x08000ca8 Section 0 main.o(i.TIM3_Configuration)
i.TIM3_IRQHandler 0x08000ce8 Section 0 main.o(i.TIM3_IRQHandler)
i.TIM_ARRPreloadConfig 0x08000d18 Section 0 stm32f10x_tim.o(i.TIM_ARRPreloadConfig)
i.TIM_ClearFlag 0x08000d30 Section 0 stm32f10x_tim.o(i.TIM_ClearFlag)
i.TIM_Cmd 0x08000d36 Section 0 stm32f10x_tim.o(i.TIM_Cmd)
i.TIM_GetITStatus 0x08000d4e Section 0 stm32f10x_tim.o(i.TIM_GetITStatus)
i.TIM_ITConfig 0x08000d70 Section 0 stm32f10x_tim.o(i.TIM_ITConfig)
i.TIM_TimeBaseInit 0x08000d84 Section 0 stm32f10x_tim.o(i.TIM_TimeBaseInit)
i.UsageFault_Handler 0x08000e28 Section 0 stm32f10x_it.o(i.UsageFault_Handler)
i.main 0x08000e2c Section 0 main.o(i.main)
.data 0x20000000 Section 44 main.o(.data)
x 0x20000028 Data 4 main.o(.data)
.data 0x2000002c Section 20 stm32f10x_rcc.o(.data)
APBAHBPrescTable 0x2000002c Data 16 stm32f10x_rcc.o(.data)
ADCPrescTable 0x2000003c Data 4 stm32f10x_rcc.o(.data)
.bss 0x20000040 Section 2048 main.o(.bss)
.bss 0x20000840 Section 96 libspace.o(.bss)
HEAP 0x200008a0 Section 512 startup_stm32f10x_hd.o(HEAP)
Heap_Mem 0x200008a0 Data 512 startup_stm32f10x_hd.o(HEAP)
STACK 0x20000aa0 Section 1024 startup_stm32f10x_hd.o(STACK)
Stack_Mem 0x20000aa0 Data 1024 startup_stm32f10x_hd.o(STACK)
__initial_sp 0x20000ea0 Data 0 startup_stm32f10x_hd.o(STACK)
Global Symbols
@ -896,32 +898,32 @@ Image Symbol Table
FSMC_NAND_WriteSmallPage 0x08000781 Thumb Code 190 fsmc_nand.o(i.FSMC_NAND_WriteSmallPage)
Fill_Buffer 0x08000849 Thumb Code 24 main.o(i.Fill_Buffer)
GPIO_Init 0x08000861 Thumb Code 278 stm32f10x_gpio.o(i.GPIO_Init)
GPIO_WriteBit 0x08000977 Thumb Code 10 stm32f10x_gpio.o(i.GPIO_WriteBit)
HardFault_Handler 0x08000981 Thumb Code 4 stm32f10x_it.o(i.HardFault_Handler)
MemManage_Handler 0x08000985 Thumb Code 4 stm32f10x_it.o(i.MemManage_Handler)
NMI_Handler 0x08000989 Thumb Code 2 stm32f10x_it.o(i.NMI_Handler)
NVIC_Configue 0x0800098b Thumb Code 34 main.o(i.NVIC_Configue)
NVIC_Init 0x080009ad Thumb Code 100 misc.o(i.NVIC_Init)
PendSV_Handler 0x08000a1d Thumb Code 2 stm32f10x_it.o(i.PendSV_Handler)
RCC_AHBPeriphClockCmd 0x08000a21 Thumb Code 26 stm32f10x_rcc.o(i.RCC_AHBPeriphClockCmd)
RCC_APB1PeriphClockCmd 0x08000a41 Thumb Code 26 stm32f10x_rcc.o(i.RCC_APB1PeriphClockCmd)
RCC_APB2PeriphClockCmd 0x08000a61 Thumb Code 26 stm32f10x_rcc.o(i.RCC_APB2PeriphClockCmd)
RCC_Configuration 0x08000a81 Thumb Code 16 main.o(i.RCC_Configuration)
SVC_Handler 0x08000a91 Thumb Code 2 stm32f10x_it.o(i.SVC_Handler)
SysTick_Handler 0x08000b7d Thumb Code 2 stm32f10x_it.o(i.SysTick_Handler)
SystemInit 0x08000b81 Thumb Code 78 system_stm32f10x_1.o(i.SystemInit)
TIM3_Configuration 0x08000be1 Thumb Code 76 main.o(i.TIM3_Configuration)
TIM3_IRQHandler 0x08000c35 Thumb Code 44 main.o(i.TIM3_IRQHandler)
TIM_ARRPreloadConfig 0x08000c6d Thumb Code 24 stm32f10x_tim.o(i.TIM_ARRPreloadConfig)
TIM_ClearITPendingBit 0x08000c85 Thumb Code 6 stm32f10x_tim.o(i.TIM_ClearITPendingBit)
TIM_Cmd 0x08000c8b Thumb Code 24 stm32f10x_tim.o(i.TIM_Cmd)
TIM_GetITStatus 0x08000ca3 Thumb Code 34 stm32f10x_tim.o(i.TIM_GetITStatus)
TIM_ITConfig 0x08000cc5 Thumb Code 18 stm32f10x_tim.o(i.TIM_ITConfig)
TIM_TimeBaseInit 0x08000cd9 Thumb Code 122 stm32f10x_tim.o(i.TIM_TimeBaseInit)
UsageFault_Handler 0x08000d7d Thumb Code 4 stm32f10x_it.o(i.UsageFault_Handler)
main 0x08000d81 Thumb Code 188 main.o(i.main)
Region$$Table$$Base 0x08000e58 Number 0 anon$$obj.o(Region$$Table)
Region$$Table$$Limit 0x08000e78 Number 0 anon$$obj.o(Region$$Table)
HardFault_Handler 0x08000977 Thumb Code 4 stm32f10x_it.o(i.HardFault_Handler)
MemManage_Handler 0x0800097b Thumb Code 4 stm32f10x_it.o(i.MemManage_Handler)
NMI_Handler 0x0800097f Thumb Code 2 stm32f10x_it.o(i.NMI_Handler)
NVIC_Configue 0x08000981 Thumb Code 32 main.o(i.NVIC_Configue)
NVIC_Init 0x080009a1 Thumb Code 100 misc.o(i.NVIC_Init)
PendSV_Handler 0x08000a11 Thumb Code 2 stm32f10x_it.o(i.PendSV_Handler)
RCC_AHBPeriphClockCmd 0x08000a15 Thumb Code 26 stm32f10x_rcc.o(i.RCC_AHBPeriphClockCmd)
RCC_APB1PeriphClockCmd 0x08000a35 Thumb Code 26 stm32f10x_rcc.o(i.RCC_APB1PeriphClockCmd)
RCC_APB2PeriphClockCmd 0x08000a55 Thumb Code 26 stm32f10x_rcc.o(i.RCC_APB2PeriphClockCmd)
RCC_Configuration 0x08000a75 Thumb Code 16 main.o(i.RCC_Configuration)
RCC_GetClocksFreq 0x08000a85 Thumb Code 192 stm32f10x_rcc.o(i.RCC_GetClocksFreq)
SVC_Handler 0x08000b59 Thumb Code 2 stm32f10x_it.o(i.SVC_Handler)
SysTick_Handler 0x08000c45 Thumb Code 2 stm32f10x_it.o(i.SysTick_Handler)
SystemInit 0x08000c49 Thumb Code 78 system_stm32f10x_1.o(i.SystemInit)
TIM3_Configuration 0x08000ca9 Thumb Code 60 main.o(i.TIM3_Configuration)
TIM3_IRQHandler 0x08000ce9 Thumb Code 40 main.o(i.TIM3_IRQHandler)
TIM_ARRPreloadConfig 0x08000d19 Thumb Code 24 stm32f10x_tim.o(i.TIM_ARRPreloadConfig)
TIM_ClearFlag 0x08000d31 Thumb Code 6 stm32f10x_tim.o(i.TIM_ClearFlag)
TIM_Cmd 0x08000d37 Thumb Code 24 stm32f10x_tim.o(i.TIM_Cmd)
TIM_GetITStatus 0x08000d4f Thumb Code 34 stm32f10x_tim.o(i.TIM_GetITStatus)
TIM_ITConfig 0x08000d71 Thumb Code 18 stm32f10x_tim.o(i.TIM_ITConfig)
TIM_TimeBaseInit 0x08000d85 Thumb Code 122 stm32f10x_tim.o(i.TIM_TimeBaseInit)
UsageFault_Handler 0x08000e29 Thumb Code 4 stm32f10x_it.o(i.UsageFault_Handler)
main 0x08000e2d Thumb Code 238 main.o(i.main)
Region$$Table$$Base 0x08000f3c Number 0 anon$$obj.o(Region$$Table)
Region$$Table$$Limit 0x08000f5c Number 0 anon$$obj.o(Region$$Table)
NAND_ID 0x20000000 Data 4 main.o(.data)
GPIO_InitStructure 0x20000004 Data 4 main.o(.data)
WriteReadAddr 0x20000008 Data 6 main.o(.data)
@ -929,10 +931,11 @@ Image Symbol Table
WriteReadStatus 0x20000014 Data 4 main.o(.data)
status 0x20000018 Data 4 main.o(.data)
j 0x2000001c Data 4 main.o(.data)
TxBuffer 0x20000024 Data 1024 main.o(.bss)
RxBuffer 0x20000424 Data 1024 main.o(.bss)
__libspace_start 0x20000824 Data 96 libspace.o(.bss)
__temporary_stack_top$libspace 0x20000884 Data 0 libspace.o(.bss)
uTick 0x20000020 Data 8 main.o(.data)
TxBuffer 0x20000040 Data 1024 main.o(.bss)
RxBuffer 0x20000440 Data 1024 main.o(.bss)
__libspace_start 0x20000840 Data 96 libspace.o(.bss)
__temporary_stack_top$libspace 0x200008a0 Data 0 libspace.o(.bss)
@ -942,9 +945,9 @@ Memory Map of the image
Image Entry point : 0x08000131
Load Region LR_IROM1 (Base: 0x08000000, Size: 0x00000e9c, Max: 0x00080000, ABSOLUTE)
Load Region LR_IROM1 (Base: 0x08000000, Size: 0x00000f9c, Max: 0x00080000, ABSOLUTE)
Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000e78, Max: 0x00080000, ABSOLUTE)
Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00000f5c, Max: 0x00080000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
@ -1053,49 +1056,49 @@ Memory Map of the image
0x08000780 0x08000780 0x000000c8 Code RO 13 i.FSMC_NAND_WriteSmallPage fsmc_nand.o
0x08000848 0x08000848 0x00000018 Code RO 225 i.Fill_Buffer main.o
0x08000860 0x08000860 0x00000116 Code RO 655 i.GPIO_Init stm32f10x_gpio.o
0x08000976 0x08000976 0x0000000a Code RO 666 i.GPIO_WriteBit stm32f10x_gpio.o
0x08000980 0x08000980 0x00000004 Code RO 152 i.HardFault_Handler stm32f10x_it.o
0x08000984 0x08000984 0x00000004 Code RO 153 i.MemManage_Handler stm32f10x_it.o
0x08000988 0x08000988 0x00000002 Code RO 154 i.NMI_Handler stm32f10x_it.o
0x0800098a 0x0800098a 0x00000022 Code RO 226 i.NVIC_Configue main.o
0x080009ac 0x080009ac 0x00000070 Code RO 283 i.NVIC_Init misc.o
0x08000a1c 0x08000a1c 0x00000002 Code RO 155 i.PendSV_Handler stm32f10x_it.o
0x08000a1e 0x08000a1e 0x00000002 PAD
0x08000a20 0x08000a20 0x00000020 Code RO 776 i.RCC_AHBPeriphClockCmd stm32f10x_rcc.o
0x08000a40 0x08000a40 0x00000020 Code RO 777 i.RCC_APB1PeriphClockCmd stm32f10x_rcc.o
0x08000a60 0x08000a60 0x00000020 Code RO 779 i.RCC_APB2PeriphClockCmd stm32f10x_rcc.o
0x08000a80 0x08000a80 0x00000010 Code RO 227 i.RCC_Configuration main.o
0x08000a90 0x08000a90 0x00000002 Code RO 156 i.SVC_Handler stm32f10x_it.o
0x08000a92 0x08000a92 0x00000008 Code RO 2001 i.SetSysClock system_stm32f10x_1.o
0x08000a9a 0x08000a9a 0x00000002 PAD
0x08000a9c 0x08000a9c 0x000000e0 Code RO 2002 i.SetSysClockTo72 system_stm32f10x_1.o
0x08000b7c 0x08000b7c 0x00000002 Code RO 157 i.SysTick_Handler stm32f10x_it.o
0x08000b7e 0x08000b7e 0x00000002 PAD
0x08000b80 0x08000b80 0x00000060 Code RO 2004 i.SystemInit system_stm32f10x_1.o
0x08000be0 0x08000be0 0x00000054 Code RO 228 i.TIM3_Configuration main.o
0x08000c34 0x08000c34 0x00000038 Code RO 229 i.TIM3_IRQHandler main.o
0x08000c6c 0x08000c6c 0x00000018 Code RO 991 i.TIM_ARRPreloadConfig stm32f10x_tim.o
0x08000c84 0x08000c84 0x00000006 Code RO 998 i.TIM_ClearITPendingBit stm32f10x_tim.o
0x08000c8a 0x08000c8a 0x00000018 Code RO 1003 i.TIM_Cmd stm32f10x_tim.o
0x08000ca2 0x08000ca2 0x00000022 Code RO 1024 i.TIM_GetITStatus stm32f10x_tim.o
0x08000cc4 0x08000cc4 0x00000012 Code RO 1028 i.TIM_ITConfig stm32f10x_tim.o
0x08000cd6 0x08000cd6 0x00000002 PAD
0x08000cd8 0x08000cd8 0x000000a4 Code RO 1074 i.TIM_TimeBaseInit stm32f10x_tim.o
0x08000d7c 0x08000d7c 0x00000004 Code RO 158 i.UsageFault_Handler stm32f10x_it.o
0x08000d80 0x08000d80 0x000000d8 Code RO 230 i.main main.o
0x08000e58 0x08000e58 0x00000020 Data RO 2203 Region$$Table anon$$obj.o
0x08000976 0x08000976 0x00000004 Code RO 152 i.HardFault_Handler stm32f10x_it.o
0x0800097a 0x0800097a 0x00000004 Code RO 153 i.MemManage_Handler stm32f10x_it.o
0x0800097e 0x0800097e 0x00000002 Code RO 154 i.NMI_Handler stm32f10x_it.o
0x08000980 0x08000980 0x00000020 Code RO 226 i.NVIC_Configue main.o
0x080009a0 0x080009a0 0x00000070 Code RO 283 i.NVIC_Init misc.o
0x08000a10 0x08000a10 0x00000002 Code RO 155 i.PendSV_Handler stm32f10x_it.o
0x08000a12 0x08000a12 0x00000002 PAD
0x08000a14 0x08000a14 0x00000020 Code RO 776 i.RCC_AHBPeriphClockCmd stm32f10x_rcc.o
0x08000a34 0x08000a34 0x00000020 Code RO 777 i.RCC_APB1PeriphClockCmd stm32f10x_rcc.o
0x08000a54 0x08000a54 0x00000020 Code RO 779 i.RCC_APB2PeriphClockCmd stm32f10x_rcc.o
0x08000a74 0x08000a74 0x00000010 Code RO 227 i.RCC_Configuration main.o
0x08000a84 0x08000a84 0x000000d4 Code RO 787 i.RCC_GetClocksFreq stm32f10x_rcc.o
0x08000b58 0x08000b58 0x00000002 Code RO 156 i.SVC_Handler stm32f10x_it.o
0x08000b5a 0x08000b5a 0x00000008 Code RO 2001 i.SetSysClock system_stm32f10x_1.o
0x08000b62 0x08000b62 0x00000002 PAD
0x08000b64 0x08000b64 0x000000e0 Code RO 2002 i.SetSysClockTo72 system_stm32f10x_1.o
0x08000c44 0x08000c44 0x00000002 Code RO 157 i.SysTick_Handler stm32f10x_it.o
0x08000c46 0x08000c46 0x00000002 PAD
0x08000c48 0x08000c48 0x00000060 Code RO 2004 i.SystemInit system_stm32f10x_1.o
0x08000ca8 0x08000ca8 0x00000040 Code RO 228 i.TIM3_Configuration main.o
0x08000ce8 0x08000ce8 0x00000030 Code RO 229 i.TIM3_IRQHandler main.o
0x08000d18 0x08000d18 0x00000018 Code RO 991 i.TIM_ARRPreloadConfig stm32f10x_tim.o
0x08000d30 0x08000d30 0x00000006 Code RO 997 i.TIM_ClearFlag stm32f10x_tim.o
0x08000d36 0x08000d36 0x00000018 Code RO 1003 i.TIM_Cmd stm32f10x_tim.o
0x08000d4e 0x08000d4e 0x00000022 Code RO 1024 i.TIM_GetITStatus stm32f10x_tim.o
0x08000d70 0x08000d70 0x00000012 Code RO 1028 i.TIM_ITConfig stm32f10x_tim.o
0x08000d82 0x08000d82 0x00000002 PAD
0x08000d84 0x08000d84 0x000000a4 Code RO 1074 i.TIM_TimeBaseInit stm32f10x_tim.o
0x08000e28 0x08000e28 0x00000004 Code RO 158 i.UsageFault_Handler stm32f10x_it.o
0x08000e2c 0x08000e2c 0x00000110 Code RO 230 i.main main.o
0x08000f3c 0x08000f3c 0x00000020 Data RO 2203 Region$$Table anon$$obj.o
Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x08000e78, Size: 0x00000e88, Max: 0x00010000, ABSOLUTE)
Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x08000f5c, Size: 0x00000ea0, Max: 0x00010000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object
0x20000000 0x08000e78 0x00000024 Data RW 232 .data main.o
0x20000024 - 0x00000800 Zero RW 231 .bss main.o
0x20000824 - 0x00000060 Zero RW 2077 .bss c_w.l(libspace.o)
0x20000884 0x08000e9c 0x00000004 PAD
0x20000888 - 0x00000200 Zero RW 1992 HEAP startup_stm32f10x_hd.o
0x20000a88 - 0x00000400 Zero RW 1991 STACK startup_stm32f10x_hd.o
0x20000000 0x08000f5c 0x0000002c Data RW 232 .data main.o
0x2000002c 0x08000f88 0x00000014 Data RW 807 .data stm32f10x_rcc.o
0x20000040 - 0x00000800 Zero RW 231 .bss main.o
0x20000840 - 0x00000060 Zero RW 2077 .bss c_w.l(libspace.o)
0x200008a0 - 0x00000200 Zero RW 1992 HEAP startup_stm32f10x_hd.o
0x20000aa0 - 0x00000400 Zero RW 1991 STACK startup_stm32f10x_hd.o
==============================================================================
@ -1106,19 +1109,19 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug Object Name
368 50 0 0 0 11867 dma_stm32f10x.o
850 52 0 0 0 253462 fsmc_nand.o
430 48 0 36 2048 4021 main.o
850 52 0 0 0 262290 fsmc_nand.o
456 46 0 44 2048 4131 main.o
112 12 0 0 0 1248 misc.o
64 26 304 0 1536 808 startup_stm32f10x_hd.o
228 14 0 0 0 2223 stm32f10x_fsmc.o
288 0 0 0 0 2792 stm32f10x_gpio.o
278 0 0 0 0 2184 stm32f10x_gpio.o
26 0 0 0 0 3578 stm32f10x_it.o
96 18 0 0 0 1798 stm32f10x_rcc.o
270 42 0 0 0 4481 stm32f10x_tim.o
308 38 0 20 0 5298 stm32f10x_rcc.o
270 42 0 0 0 4469 stm32f10x_tim.o
328 28 0 0 0 2061 system_stm32f10x_1.o
----------------------------------------------------------------------
3090 290 336 36 3584 288339 Object Totals
3318 308 336 64 3584 300157 Object Totals
0 0 32 0 0 0 (incl. Generated)
30 0 0 0 0 0 (incl. Padding)
@ -1148,8 +1151,8 @@ Image component sizes
2 0 0 0 0 68 use_no_semi.o
----------------------------------------------------------------------
278 16 0 0 100 584 Library Totals
6 0 0 0 4 0 (incl. Padding)
278 16 0 0 96 584 Library Totals
6 0 0 0 0 0 (incl. Padding)
----------------------------------------------------------------------
@ -1158,7 +1161,7 @@ Image component sizes
272 16 0 0 96 584 c_w.l
----------------------------------------------------------------------
278 16 0 0 100 584 Library Totals
278 16 0 0 96 584 Library Totals
----------------------------------------------------------------------
@ -1167,15 +1170,15 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug
3368 306 336 36 3684 285643 Grand Totals
3368 306 336 36 3684 285643 ELF Image Totals
3368 306 336 36 0 0 ROM Totals
3596 324 336 64 3680 297461 Grand Totals
3596 324 336 64 3680 297461 ELF Image Totals
3596 324 336 64 0 0 ROM Totals
==============================================================================
Total RO Size (Code + RO Data) 3704 ( 3.62kB)
Total RW Size (RW Data + ZI Data) 3720 ( 3.63kB)
Total ROM Size (Code + RO Data + RW Data) 3740 ( 3.65kB)
Total RO Size (Code + RO Data) 3932 ( 3.84kB)
Total RW Size (RW Data + ZI Data) 3744 ( 3.66kB)
Total ROM Size (Code + RO Data + RW Data) 3996 ( 3.90kB)
==============================================================================

Binary file not shown.

View File

@ -125,7 +125,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)</Name>
<Name>(1010=868,138,1318,695,1)(1007=105,177,292,452,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)</Name>
</SetRegEntry>
<SetRegEntry>
<Number>0</Number>
@ -140,7 +140,7 @@
<SetRegEntry>
<Number>0</Number>
<Key>JL2CM3</Key>
<Name>-U20080643 -O14 -S6 -ZTIFSpeedSel500 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight JTAG-DP") -D00(3BA00477) -L00(4) -N01("Unknown JTAG device") -D01(06414041) -L01(5) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO7 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_512.FLM -FS08000000 -FL080000 -FP0($$Device:STM32F103ZE$Flash\STM32F10x_512.FLM)</Name>
<Name>-U20080643 -O14 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight JTAG-DP") -D00(3BA00477) -L00(4) -N01("Unknown JTAG device") -D01(06414041) -L01(5) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO7 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_512.FLM -FS08000000 -FL080000 -FP0($$Device:STM32F103ZE$Flash\STM32F10x_512.FLM)</Name>
</SetRegEntry>
<SetRegEntry>
<Number>0</Number>
@ -152,9 +152,9 @@
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>119</LineNumber>
<LineNumber>115</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134220846</Address>
<Address>134221344</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
@ -163,11 +163,107 @@
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\st_nand\std/main.c\119</Expression>
<Expression>\\st_nand\std/main.c\115</Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>110</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221284</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\st_nand\std/main.c\110</Expression>
</Bp>
<Bp>
<Number>2</Number>
<Type>0</Type>
<LineNumber>99</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221222</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\st_nand\std/main.c\99</Expression>
</Bp>
<Bp>
<Number>3</Number>
<Type>0</Type>
<LineNumber>97</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221210</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\st_nand\std/main.c\97</Expression>
</Bp>
<Bp>
<Number>4</Number>
<Type>0</Type>
<LineNumber>95</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221206</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\st_nand\std/main.c\95</Expression>
</Bp>
<Bp>
<Number>5</Number>
<Type>0</Type>
<LineNumber>94</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221202</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\st_nand\std/main.c\94</Expression>
</Bp>
<Bp>
<Number>6</Number>
<Type>0</Type>
<LineNumber>116</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134221362</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\st_nand\std/main.c\116</Expression>
</Bp>
<Bp>
<Number>7</Number>
<Type>0</Type>
<LineNumber>553</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
@ -182,9 +278,89 @@
<Expression></Expression>
</Bp>
<Bp>
<Number>2</Number>
<Number>8</Number>
<Type>0</Type>
<LineNumber>120</LineNumber>
<LineNumber>98</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>9</Number>
<Type>0</Type>
<LineNumber>100</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>10</Number>
<Type>0</Type>
<LineNumber>102</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>11</Number>
<Type>0</Type>
<LineNumber>113</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>12</Number>
<Type>0</Type>
<LineNumber>118</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\std\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>13</Number>
<Type>0</Type>
<LineNumber>119</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
@ -248,6 +424,10 @@
<pSingCmdsp></pSingCmdsp>
<pMultCmdsp></pMultCmdsp>
<SystemViewers>
<Entry>
<Name>System Viewer\EXTI</Name>
<WinId>35904</WinId>
</Entry>
<Entry>
<Name>System Viewer\TIM3</Name>
<WinId>35905</WinId>

View File

@ -44,21 +44,20 @@ NAND_ADDRESS WriteReadAddr;
uint8_t TxBuffer[BUFFER_SIZE], RxBuffer[BUFFER_SIZE];
__IO uint32_t PageNumber = 2, WriteReadStatus = 0, status= 0;
uint32_t j = 0;
uint64_t uTick = 0;
/* Private function prototypes -----------------------------------------------*/
void RCC_Configuration(void);
void Fill_Buffer(uint8_t *pBuffer, uint16_t BufferLenght, uint32_t Offset);
void TIM3_Configuration(void)
{
RCC->CFGR |= (uint32_t)RCC_CFGR_PPRE1_DIV2;
/*
((1+TIM_Prescaler )/72M)*(1+TIM_Period )=((1+35999)/72M)*(1+2000)=1 second
*/
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
TIM_TimeBaseStructure.TIM_Period = 5000;
TIM_TimeBaseStructure.TIM_Prescaler = 2000;
TIM_TimeBaseStructure.TIM_Period = 3;
TIM_TimeBaseStructure.TIM_Prescaler = 1;
TIM_TimeBaseStructure.TIM_ClockDivision = 0;
TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;
TIM_TimeBaseInit(TIM3, &TIM_TimeBaseStructure);
@ -76,6 +75,8 @@ void TIM3_Configuration(void)
*/
int main(void)
{
RCC_ClocksTypeDef get_rcc_clock;
uint64_t uTickOld;
/* System Clocks Configuration */
RCC_Configuration();
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_FSMC, ENABLE);
@ -91,9 +92,13 @@ int main(void)
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(GPIOC, &GPIO_InitStructure);
RCC_GetClocksFreq(&get_rcc_clock);
TIM3_Configuration();
NVIC_Configue();
/* Verify the NAND ID */
uTick = uTick;
if((NAND_ID.Maker_ID == NAND_ST_MakerID) && (NAND_ID.Device_ID == NAND_ST_DeviceID))
{
/* NAND memory address to write to */
@ -105,9 +110,13 @@ int main(void)
/* Write data to FSMC NAND memory */
/* Fill the buffer to send */
Fill_Buffer(TxBuffer, BUFFER_SIZE , 0x66);
uTickOld = uTick;
status = FSMC_NAND_WriteSmallPage(TxBuffer, WriteReadAddr, PageNumber);
/* Read back the written data */
status = FSMC_NAND_ReadSmallPage (RxBuffer, WriteReadAddr, PageNumber);
uTick = uTick -uTickOld;
uTick = uTick;
/* Verify the written data */
}
while(1)
@ -119,12 +128,11 @@ void TIM3_IRQHandler(void)
static int x = 0;
if (TIM_GetITStatus(TIM3, TIM_IT_Update) != RESET) {
/* Clear TIM3 update interrupt */
GPIO_WriteBit(GPIOC, GPIO_Pin_7, x);
x = ~x;
TIM_ClearFlag(TIM3, TIM_IT_Update);
//GPIO_WriteBit(GPIOC, GPIO_Pin_7, x);
//x = ~x;
}
TIM_ClearITPendingBit(TIM3, TIM_IT_Update);
uTick ++;
}
void NVIC_Configue(void)
{
@ -134,7 +142,7 @@ void NVIC_Configue(void)
/* Enable the TIM3 gloabal Interrupt*/
NVIC_InitStructure.NVIC_IRQChannel = TIM3_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
}